Cannot sign in anymore after enabling LDAP Application

Hello,

So we’ve had working LDAP Login on our XWiki already along with 2FA. However, recently, in addition to the Authenticator we already have, I installed the LDAP Application since it had a depency (the LDAP User Import Application) I needed.

Well, upon installing (and after some time has passed), I found that I could not log in anymore into the XWiki, even with the correct credentials that worked before. How can I fix this ? Also the login - interface looks different from the one we had setup earlier.

Hi @Elias,

What is the other authenticator you already have, is it the standard one? Please not that it is not possible in XWiki to use at the same time 2 different authenticators (rule doesn’t apply to the standard authentication which will be a fallback).
Then, if you enabled LDAP and you cannot login anymore with standard XWiki users, the cause may be that you didn’t specify in the LDAP config to follback on local users xwiki.authentication.ldap.trylocal=1.

Hope it helps,
Alex

Thank you,

the cause should indeed be that, what you mentioned. Our regular authentification is via KeyCloak. However, I’m still in need of a fix…

I managed to log in via a superadmin account, and deinstalled the Active Directory Application, which should have caused that problem, as you’ve stated. However, the problem still persists. Do you have any idea why ?

Make sure you completely uninstalled the AD, you can check for leftovers in the extension manager. There may still be AD tracks there.
If the authentication worked well before AD and failed after AD, then you should focus on cleaning the AD code.

1 Like