After the successful integration of AD with moin moin , I was trying to integrate moin moin with ldap . After making small changes to the AD integration configuration I was able to authenticating moin moin wiki using ldap credentials.
# LDAP authentication
from MoinMoin.auth.ldap_login import LDAPAuth
ldap_authenticator1 = LDAPAuth (
bind_dn = ‘cn=Manager,dc=adminlogs,dc=info’,
bind_pw = ‘password’,
base_dn = ‘dc=adminlogs,dc=info’,
scope = ldap.SCOPE_SUBTREE,
referrals = 0,
search_filter = ‘(uid=%(username)s)’,
givenname_attribute = ‘cn’,
surname_attribute = ‘sn’,
aliasname_attribute = ‘cn’,
email_attribute = ‘mail’,
email_callback = None,
coding = ‘utf-8’,
timeout = 10,
autocreate = True,
auth = [ldap_authenticator1, ]
cookie_lifetime = (1, 1)
# no anon user sessions, 1h session lifetime for logged-in users
Here also I have used the ldap manager user to query LDAP .
Add the above lines in your moin moin configuration file ( wikiconfig.py ) and restart Apache .