Version 7.2
I’m having trouble getting sAMAccountName to be the login used to gain entry into xwiki. So far, only cn works. If I try to change cn to sAMAccountName, it just doesnt authenticate. cn doesn’t work for us since it contains spaces require middle names. thank you!
Hi tngo,
I assume you connect to a windows LDAP server.
I’m not quite sure about the LDAP configuration in 7.2 as in later . But I used “Ldap UID Attributname” for . And I had to use only LDAPBASE_DN to specify the particular user group in our environment.
bind_DN should be the name of a user having at least read access to the LDAP server to read the corresponding tree and bind_pass the password for that user.
Hope that helps, Wolfgang
I configured in 7.4.5 and later to connect to windows active directory server (LDAP), my configuration:
xwiki.authentication.ldap=1
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
xwiki.authentication.ldap.server=your LDAP servername
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.bind_DN=Name of user having read access to LDAP-server
xwiki.authentication.ldap.bind_pass=password for bind_DN
xwiki.authentication.ldap.base_DN=spefication for user group in LDAP server
xwiki.authentication.ldap.UID_attr=sAMAccountName
LDAP field mapping (optional)
XWIKI -> LDAP
email -> mail
first_name -> givenName
last_name -> last_name