LDAP not working and no error logs


I’m trying to configure LDAP authentication for my XWiki 10.11.4 system but I can’t get it working.
System is running on Windows 10 x64 and Apache Tomcat 9.0.17
I installed LDAP Application 9.3.6 via extension manager

I tried to configure it but I wasn’t successful. For me it’s also a problem that I can’t find any log files why it’s not working even I enabled LDAP debug log in WEB-INF/classes/logback.xml:

Of course I restarted XWiki (Tomcat).


Can you help me please?

This is your problem. Some old xwiki.cfg file you kept ?

You can find the right one at the beginning of https://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/#HGenericLDAPconfiguration.

Thank you for the answer but I made a mistake. I just copied the wrong row. I already had:

#-# LDAP authentication service

I can’t find any log files

It would help a lot. In standard Tomcat the file is usually named catalina.out so you might want to try to search this file name in general.

You’re right. Without log files it’s very hard.
In Tomcat folder I only find catalina.2019-04-18.log and if I open it I find nothing regarding ldap.

But do you find XWiki stuff ?

No in logfile is nothing about XWiki
XWiki is in C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\webapps\xwiki

OK so it’s definitely not the right file then. XWiki always log a few information at startup at the very least.

Are you running with the Xwiki docker image? If so you can use « docker logs ».

This configuration line looks incorrect:


I believe you need to double the \\; e.g.:


This is because \ is a string ‘escape’ character.

Hi Julian,

it might help to have a look to this thread: Difficulty getting sAMAccountName as login, where I wrote what I configured a our system with a Windows LDAP-server.


Do you where the logfiles could be?

Thanks but it could not solve my Problem :frowning:

Do you have any log files on your System for LDAP and where they are?