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