Hi Lester, you should configure the XWIKI logging. Then you can find ldap logging information in the XWIKI log file. I did the following steps: a) Set up the XWIKI logging configuration in WEB-INF\classes\logback.xml by adding a RollingFileAppender <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>/var/lib/tomcat8/logs/xwiki.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <!-- daily rollover --> <fileNamePattern>xwiki.%d{yyyy-MM-dd}.log</fileNamePattern> <!-- keep 30 days' worth of history --> <maxHistory>30</maxHistory> </rollingPolicy> <encoder> <pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern> </encoder> </appender> b) Extend the root level logging: <root level="info"> <appender-ref ref="stdout"/> <appender-ref ref="FILE"/> </root> c) Activation of the ldap logging (debugging) in WEB-INF\classes\logback.xml <!-- LDAP debugging --> <logger name="org.xwiki.contrib.ldap" level="trace"/> With kind regards Thomas -----Ursprüngliche Nachricht----- Von: users [mailto:[email protected]] Im Auftrag von Lester Marc Dizon (ITX) Gesendet: Mittwoch, 10. Mai 2017 18:45 An: XWiki Users <[email protected]> Betreff: Re: [xwiki-users] XWiki Docker in Prod 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