Using LDAP with Nuxeo

How many files does I have to create in order to allow users to connect to Nuxeo with LDAP login/pwd ?

I follow the documentation here http://doc.nuxeo.com/display/ADMINDOC/Using+a+LDAP+directory .

I am using the Ubuntu VM Nuxeo/tomcat 5.5.

So I created a file called default-ldap-users-directory-config.xml in /var/lib/nuxeo/server/nxserver/config with my LDAP information and reboot the server.

During the server startup, there is no error nor success message in the server.log saying that the mapping LDAP is OK or that the XML as been found or anything (…).

And when I try to login I got the following error :

2012-07-20 14:08:05,895 INFO  [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Login failed for yohann
2012-07-20 14:46:21,308 ERROR [org.nuxeo.ecm.directory.ldap.LDAPDirectory] javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1ateIdentity(NuxeoLoginModule.java:299)
at org.nuxeo.ecm.platform.login.NuxeoLoginModule.validateUserIdentity(NuxeoLoginModule.java:359)
at org.nuxeo.ecm.platform.login.NuxeoLoginModule.getPrincipal(NuxeoLoginModule.java:209)
at org.nuxeo.ecm.platform.login.NuxeoLoginModule.login(NuxeoLoginModule.java:262)
at org.nuxeo.runtime.api.LoginModuleWrapper.login(LoginModuleWrapper.java:77)
at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)
...
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: javax.naming.AuthenticationException. message: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1rnCode(LdapCtx.java:2780)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2694)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:306)
...

I do not know where is the problem, if nuxeo succesfully access the LDAP but didn't find my name OR if nuxeo failed to connect to the LDAP …

I spend the entire day trying different settings in the xml i created, searching through the few documentation available (apparently for nuxeo/jboss, it needs more than one xml (http://community.nuxeo.com/5.3/books/nuxeo-book/html/admin-ldap-configuration.html) maybe it is the same on tomcat for the 5.5 ? ).

Thank you for your help.

0 votes

2 answers

5433 views

ANSWER

The "data 52e" means "invalid credentials", ie incorrect username or password.
07/21/2012

This information is not really helpfull because as I said : I do not know if nuxeo succesfully access the LDAP but didn't find my name (wrong subtree…) OR if nuxeo failed to connect to the LDAP … The login I used are of course correct but I may have miss some parameters in the default-ldap-users-directory-config.xml. Thank you for your help
07/30/2012



Look at the Debug information chapter on the page you linked: activating the DEBUG logs will allow you to follow in details what is done and which step fails (connection, name search, …).

0 votes



Hello, I'm not an expert Nuxeo but I try help you because I had the same problem some days ago. I want connection with LDAP and Nuxeo base.
Here the files I create in nuxeo/templates/common/config :

  • default-sql-directories-bundle.xml : define your sqlUserDirectory and your sqlGroupDirectory
  • default-ldap-users-directory-bundle.xml : define your ldapUserDirectory
  • default-ldap-groups-directory-bundle.xml : define your ldapGroupDirectory
  • default-multi-users-directory-bundle.xml : define your userDirectory and groupDirectory with sqlUserDirectory+ldapUserDirectory and sqlGroupDirectory+ldapGroupDirectory
    I try to create virtual group but it doesn't work. So if someone has a solution …
    Last question : what is the difference Group and Virtual Group ? Thanks for help !

ps: sorry for my bad english …

0 votes