Below is my xwiki.cfg in /usr/lib/xwiki/WEB-INF
xwiki.authentication.authclass=org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl
xwiki.authentication.ldap.trylocal=1
xwiki.authentication.ldap=1
xwiki.authentication.ldap.server=ip address of domain controller
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.base_DN=dc=domain,dc=com
xwiki.authentication.ldap.bind_DN=cn=ldap service account name,ou=organizational unit,dc=domain,dc=com
xwiki.authentication.ldap.bind_pass=password for ldap service account
xwiki.authentication.ldap.UID_attr=sAMAccountName
xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=sn,first_name=GivenName,email=mail,ldap_dn=dn
xwiki.authentication.ldap.update_user=0
From all that I have read, this configuration should work, but when we try to authenticate with xwiki using username and password or domain\username and password or username@domain.com and password, we keep getting “Error: invalid credentials”. We tried setting up the account in xwiki first and same results. Even if we register and then try, same results.
Do not know how to enable logging for LDAP so if someone can post a link or any documentation would be helpful, but maybe someone knows or has an idea of what could be wrong.
UPDATE:
I found the following post: Unable to configure LDAPS Authentication with xwiki, and searched for the org.xwiki.contrib.ldap log (Administer xwiki > other > logging > search for org.xwiki.contrib.ldap ) but this returned no results so presume something more has to be installed.
UPDATE:
Found the following article regarding LDAP debugging: LDAP Authenticator (XWiki.org)