Hello,
I’m trying to setup LDAP authentication to trial XWiki as a replacement for TWiki at my workplace. I have the “LDAP Authenticator” and “LDAP Admin” extensions installed.
The admin guide says that all I need to do is add the below to my xwiki.cfg
and I should be able to configure it via the admin interface:
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
After making this change and restarting XWiki the admin interface tells me LDAP isn’t enabled.
This forum post says to use a slightly different setting:
xwiki.authentication.authclass=org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl
When I do this I can no longer log in with either the default Admin account or my personal account which I created.
In order for it to work as expected I had to make these changes before enabling LDAP in xwiki.cfg
:
- Go to the
Other - LDAP
section inXWikiPreferences
- Set
LDAP
to either “yes” or “no” (by default it is “—”) - Set “Try Local Login” to “Yes” (by default it is “—”)
After these changes, everything seems to work as expected.
I’m happy to update the documentation, but given that I’m brand new here I’d like to make sure that my understanding is correct before perhaps misleading others!
Adam.