Hi Nicolas, On Mon, Dec 1, 2008 at 1:29 PM, Cazottes Nicolas <[email protected]> wrote:
Hello,
I am trying to use Penrose LDAP virtual server (http://docs.safehaus.org/display/PENROSE/Home) as an LDAP source to manage authentification of my xwiki instance. The connection to the server works fine but when xwiki tries to search for my user, it stops with the following exception : 2008-12-01 10:06:38,921 [http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [P1-19] DEBUG ldap.XWikiLDAPUtils - Searching for the user in LDAP: user:nca base: query:(uid=nca) uid:uid 2008-12-01 10:06:39,921 [http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [P1-19] DEBUG ldap.XWikiLDAPConnection - LDAP Search failed LDAPException: Client request timed out (85) LDAP Timeout at com.novell.ldap.Message$Timeout.run(Unknown Source) 2008-12-01 10:06:39,921 [http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [P1-19] DEBUG LDAP.XWikiLDAPAuthServiceImpl - Local LDAP authentication failed.
After searching in the xwiki source code, I found there is a timeout of 1s for a search query to execute (in XWikiLDAPConnection line 292). It may explains the error I imagine. Is it possible to make this timeout defined via a configuration key in xwiki.cfg ?
I just created http://jira.xwiki.org/jira/browse/XWIKI-2912
Another point related to xwiki LDAP logs : I don't like very much to have the password sent to xwiki writen clearly in the log file when LDAP debug is activated. Is it possible to have stars instead of the real value of the password ?
and http://jira.xwiki.org/jira/browse/XWIKI-2913
If someone can do these modifications to the code, I will be pleased to test them. I would like to test it by myself but, currently, I did not manage to build xwiki with maven after checking out the source.
I you already checkouted the sources you just need to execute "mvn install" (after installing maven of course) in xwiki-core folder (where is located the LDAP code) and replace the xwiki-core-<version>.jar in your web app by the generated one. You can look at http://dev.xwiki.org/xwiki/bin/view/Community/Building for more details (I guess you already looked here but never knows ;)). You can comment or even add a patch in theses two issues if you have some time ;)
Thank you for your help.
Nicolas CAZOTTES _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne