Announcement Announcement Module
Collapse
No announcement yet.
Embedded LDAP gives pooling exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Embedded LDAP gives pooling exception

    A basic setup with the embedded LDAP server throws an exception involving pooling, before authenticating successfully. When re-running this in Eclipse, without "removing all terminated" it does not throw; something from the previous run has been initialized. I eventually want to use pooling, and PasswordAuthenticator, not BindAuthenticator, and a custom userDetailsContextMapper, all commented out for now. Config follows, stack trace beneath that. Thanks for any advice.

    <sec:ldap-server id="testCtx" root="dc=xyzcorp,dc=com" ldif="classpath:xyzcorp.ldif" />

    <sec:authentication-manager alias="authenticationManager">
    <sec:authentication-provider ref="ldapProvider"/>
    </sec:authentication-manager>

    <bean id="ldapProvider" class="org.springframework.security.ldap.authentic ation.LdapAuthenticationProvider">
    <constructor-arg>
    <!--<bean class="org.springframework.security.ldap.authentic ation.PasswordComparisonAuthenticator">-->
    <bean class="org.springframework.security.ldap.authentic ation.BindAuthenticator">
    <constructor-arg ref="testCtx" />
    <property name="userSearch">
    <bean id="userSearch" class="org.springframework.security.ldap.search.Fi lterBasedLdapUserSearch">
    <constructor-arg index="0" value="ou=people"/>
    <constructor-arg index="1" value="(uid={0})"/>
    <constructor-arg index="2" ref="testCtx" />
    </bean>
    </property>
    </bean>
    </constructor-arg>
    <constructor-arg>
    <bean class="org.springframework.security.ldap.userdetai ls.DefaultLdapAuthoritiesPopulator">
    <constructor-arg ref="testCtx" />
    <constructor-arg value="ou=groups" />
    <property name="groupSearchFilter" value="(member={0})"/>
    <property name="rolePrefix" value="ROLE_"/>
    <property name="searchSubtree" value="true"/>
    <property name="convertToUpperCase" value="true"/>
    </bean>
    </constructor-arg>
    <!--<property name="userDetailsContextMapper">
    <bean class="com.kve.requisitions.main.VanguardUserDetai lsMapper" />
    </property>-->
    </bean>

    2375 [pool-3-thread-1] WARN org.apache.directory.server.ldap.LdapProtocolHandl er - Unexpected exception forcing session to close: sending disconnect notice to client.
    java.lang.NullPointerException
    at org.apache.directory.server.ldap.handlers.LdapRequ estHandler.handleMessage(LdapRequestHandler.java:1 29)
    at org.apache.directory.server.ldap.handlers.LdapRequ estHandler.handleMessage(LdapRequestHandler.java:5 6)
    at org.apache.mina.handler.demux.DemuxingIoHandler.me ssageReceived(DemuxingIoHandler.java:232)
    at org.apache.directory.server.ldap.LdapProtocolHandl er.messageReceived(LdapProtocolHandler.java:194)
    at org.apache.mina.core.filterchain.DefaultIoFilterCh ain$TailFilter.messageReceived(DefaultIoFilterChai n.java:721)
    at org.apache.mina.core.filterchain.DefaultIoFilterCh ain.callNextMessageReceived(DefaultIoFilterChain.j ava:433)
    at org.apache.mina.core.filterchain.DefaultIoFilterCh ain.access$1200(DefaultIoFilterChain.java:47)
    at org.apache.mina.core.filterchain.DefaultIoFilterCh ain$EntryImpl$1.messageReceived(DefaultIoFilterCha in.java:801)
    at org.apache.mina.core.filterchain.IoFilterEvent.fir e(IoFilterEvent.java:71)
    at org.apache.mina.core.session.IoEvent.run(IoEvent.j ava:63)
    at org.apache.mina.filter.executor.UnorderedThreadPoo lExecutor$Worker.runTask(UnorderedThreadPoolExecut or.java:480)
    at org.apache.mina.filter.executor.UnorderedThreadPoo lExecutor$Worker.run(UnorderedThreadPoolExecutor.j ava:434)
    at java.lang.Thread.run(Thread.java:717)
    2375 [pool-3-thread-2] WARN org.apache.directory.server.schema.registries.Defa ultOidRegistry - OID for name 'javaremotelocation' was not found within the OID registry
    2375 [pool-3-thread-1] WARN org.apache.directory.server.ldap.LdapProtocolHandl er - Null LdapSession given to cleanUpSession.
    2375 [pool-3-thread-2] WARN org.apache.directory.server.core.interceptor.conte xt.SearchingOperationContext - Requested attribute javaremotelocation does not exist in the schema, it will be ignored

  • #2
    It seems to be fixed in ApacheDS 1.5.6: https://issues.apache.org/jira/browse/DIRSERVER-1404 (which unfortunately seems to be not very compatible with 1.5.5).

    Comment

    Working...
    X