Works better with xwiki.authentication.ldap.trylocal=1, thanks . However I don't see any LDAP debug logs. I have the following logs in /usr/local/tomcat/logs/*: - catalina.2017-05-10.log - host-manager.2017-05-10.log - localhost.2017-05-10.log - localhost_access_log.2017-05-10.txt - manager.2017-05-10.log http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging states that Tomcat on unix will capture stdout and add logs to the tomcat/logs/catalina.out file. However made a find on "catalina.out" but nothing. Any clues where to find those LDAP logs? Thanks, Lester -----Original Message----- From: users [mailto:[email protected]] On Behalf Of Thomas Mortagne Sent: mercredi 10 mai 2017 17:38 To: XWiki Users <[email protected]> Subject: Re: [xwiki-users] XWiki Docker in Prod On Wed, May 10, 2017 at 5:25 PM, Lester Marc Dizon (ITX) <[email protected]> wrote:
Thank you for your responses. I'm new to this community and happy to see you guys are very responsive.
@Thomas, I have followed your wiki pages. The moment I add "xwiki.authentication.authclass=org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl" in xwiki.cfg , I can't login anymore even with the local admin account. I get a 401 http status code in "/usr/local/tomcat/logs/localhost_access_log.2017-05-10.txt".
This is because by default the LDAP authenticator does not fallback on standard XWiki auth. See xwiki.authentication.ldap.trylocal property in the documentation.
Can you tell me where and which logfile I should check when I've added <logger name="org.xwiki.contrib.ldap" level="trace"/> in "WEB-INF/classes/logback.xml"?
Whatever is the application server log file in the docker image. Vincent should know better.
@Vincent, running with Docker seems to work very well except for my issues with LDAP. Also, I can ping the LDAP Server inside the XWiki container. I really need to check a logfile to know where it is failing but I don't know where to find it.
Thanks, Lester