Ladp problem with samaccountname authentication

Hi, i have same issues with ldap authentication. It’s work great, but for logging use users’s cn.
I try change it in xwiki.cfg like this https://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/UseCases/ for logging with sAMAccountName, but it does not work.

xwiki 11.7 ver
ldap ext 9.4 ver
AD server with ldap protocol

xwiki.authentication.ldap.server=*****.local.htc-cs.com
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.base_DN=dc=local,dc=****,dc=com
xwiki.authentication.ldap.bind_DN={0}
xwiki.authentication.ldap.bind_pass={1}
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

Will need more details than “it does not work”.

You should enable debug log to see step by step what exactly the authenticator is doing and what answer it get from the LDAP server. See https://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/#HEnableLDAPdebuglog

1 Like