[Obm] obm-sync

Pierrick Perrigault pperrigault at yahoo.fr
Mon Feb 15 12:43:35 CET 2010


Bonjour,

je viens a vous car en passant d'obm-sync version 2.3.0-1 en version 2.3.1.1 j'ai rencontré quelques problèmes :

Dans un premier temps l'authentification ne passe pas voici les logs :
2010-02-15 11:26:13,176 [sync] ERROR - Servlet.service() for servlet sync threw exception
java.lang.NullPointerException
        at fr.aliacom.obm.ldap.LDAPAuthConfig.<init>(LDAPAuthConfig.java:37)
        at fr.aliacom.obm.ldap.LDAPAuthService.<init>(LDAPAuthService.java:54)
        at fr.aliacom.obm.ldap.LDAPAuthService.<clinit>(LDAPAuthService.java:50)
        at org.obm.sync.server.auth.AuthentificationServiceFactory.get(AuthentificationServiceFactory.java:40)
        at fr.aliacom.obm.common.UserManagement.login(UserManagement.java:142)
        at org.obm.sync.login.LoginBindingImpl.logUserIn(LoginBindingImpl.java:27)
        at org.obm.sync.server.LoginHandler.doLogin(LoginHandler.java:73)
        at org.obm.sync.server.LoginHandler.handle(LoginHandler.java:49)
        at org.obm.sync.server.SyncServlet.handleQuery(SyncServlet.java:86)
        at org.obm.sync.server.SyncServlet.service(SyncServlet.java:63)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
        at java.lang.Thread.run(Thread.java:619)

Ensuite je me suis dit que c'était du au fait qu'il attendait le fichier /etc/obm/ldap-auth.xml : Erreur d'authentification
Voici les logs :

2010-02-15 11:35:11,032 LoginHandler INFO - method: doLogin
2010-02-15 11:35:11,082 LoginHandler INFO - method: doLogin
2010-02-15 11:35:11,132 LDAPAuthService ERROR - null (with password lebail2008 and dn: null)
java.lang.NullPointerException
        at javax.naming.InitialContext.getURLScheme(InitialContext.java:269)
        at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:318)
        at javax.naming.directory.InitialDirContext.getURLOrDefaultInitDirCtx(InitialDirContext.java:87)
        at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
        at fr.aliacom.obm.ldap.LDAPUtils.findResultByFilter(LDAPUtils.java:139)
        at fr.aliacom.obm.ldap.LDAPAuthService.doBindAuth(LDAPAuthService.java:125)
        at fr.aliacom.obm.ldap.LDAPAuthService.doAuth(LDAPAuthService.java:89)
        at fr.aliacom.obm.common.UserManagement.login(UserManagement.java:162)
        at org.obm.sync.login.LoginBindingImpl.logUserIn(LoginBindingImpl.java:27)
        at org.obm.sync.server.LoginHandler.doLogin(LoginHandler.java:73)
        at org.obm.sync.server.LoginHandler.handle(LoginHandler.java:49)
        at org.obm.sync.server.SyncServlet.handleQuery(SyncServlet.java:86)
        at org.obm.sync.server.SyncServlet.service(SyncServlet.java:63)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
        at java.lang.Thread.run(Thread.java:619)

Voici le fichier /etc/obm/ldap-auth.xml

<?xml version="1.0" encoding="utf-8"?>
<!-- login %u, domain %d -->
<ldapAuth>

  <!-- performs auth using a bind on the directory   -->
  <directory>
    <!--<uri>ldap://ldap.aliacom.local</uri>-->
    <uri>ldap://10.0.11.242</uri>

    <!-- obmDomain is optional, for single domain installs -->
    <!--<obmDomain>aliasource.fr</obmDomain>-->
    <obmDomain>habitat-humanisme.org</obmDomain>

    <userPattern>uid=%u,ou=users,dc=%d,dc=org</userPattern>
  </directory>
</ldapAuth>

Je suis repassé en version précédente pour le moment, le temps de trouver d'où cela vient

Bien cordialement.

Pierrick PERRIGAULT



      


More information about the Obm mailing list