Hi,

> On 10 May 2017, at 18:44, Lester Marc Dizon (ITX) <lmdi...@itx-ge.com> wrote:
> 
> 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

^^ I guess it’s this one then.

Seems this Tomcat is configured to use log4j: 
https://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j

# Define all the appenders
log4j.appender.CATALINA=org.apache.log4j.DailyRollingFileAppender
log4j.appender.CATALINA.File=${catalina.base}/logs/catalina.
log4j.appender.CATALINA.Append=true
log4j.appender.CATALINA.Encoding=UTF-8
# Roll-over the log once per day
log4j.appender.CATALINA.DatePattern='.'yyyy-MM-dd'.log'
log4j.appender.CATALINA.layout = org.apache.log4j.PatternLayout
log4j.appender.CATALINA.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

Thanks
-Vincent


> - 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:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> Sent: mercredi 10 mai 2017 17:38
> To: XWiki Users <users@xwiki.org>
> Subject: Re: [xwiki-users] XWiki Docker in Prod
> 
> On Wed, May 10, 2017 at 5:25 PM, Lester Marc Dizon (ITX) <lmdi...@itx-ge.com> 
> 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
>> 

Reply via email to