I’m trying to setup the LDAP authentication process but without any luck.
Here under is my config:
xwiki.authentication.authclass=org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl
xwiki.authentication.ldap=1
xwiki.authentication.ldap.server=
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.bind_DN=cn=staging\SVC_XWIKI
xwiki.authentication.ldap.bind_pass=
xwiki.authentication.ldap.base_DN=DC=staging,DC=,DC=com
xwiki.authentication.ldap.UID_attr=sAMAccountName
xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
xwiki.authentication.ldap.update_user=1
xwiki.authentication.ldap.trylocal=1
Don’t find any error in Catalina’s logs.
Also did a trace to find out for LDAP but sounds like the search does’t try to query the LDAP.
Thank you for your answer.
If I use that one
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
I have this issue :
Failed to initialize AuthService com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl using Reflection, trying default implementations using ‘new’.
You must use xwiki.authentication.authclass=org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl
instead and of course install “LDAP Authenticator” extension with extension manager and restart Tomcat.
Thank you, I found the issue with your help ! xwiki.authentication.ldap.bind_DN=cn=staging\SVC_XWIKI is no correct, I changed to xwiki.authentication.ldap.bind_DN=SVC_XWIKI