Announcement Announcement Module
Collapse
No announcement yet.
Error when using ldap-server tag Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error when using ldap-server tag

    Hi All,

    I am trying to use LDAP authentication but whenever I include the ldap-server tag or the ldap-authentication-provider tag I get an error (below) when deploying to Tomcat. If I don't use either of these tags spring security works fine. Anyone have any suggestions? My applicationContext-security configuration is also included below.

    Thanks,

    Ed

    spring context:

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:security="http://www.springframework.org/schema/security"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schem...-beans-2.5.xsd
    http://www.springframework.org/schema/security
    http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">

    <security:http entry-point-ref="entryPoint">
    <security:intercept-url pattern="/app/editProgram" access="ROLE_ADMIN, ROLE_DUS"/>
    <security:intercept-url pattern="/app/viewCourses" access="ROLE_INSTR" />
    <security:intercept-url pattern="/**" access="ROLE_INSTR" />
    </security:http>

    <security:ldap-server
    id="cimpLdapServer"
    url="ldap://localhost:10389"
    manager-dn="uid=admin,ou=system"
    manager-password="secret" />

    <security:ldap-authentication-provider
    server-ref="cimpLdapServer"
    user-dn-pattern="uid={0},ou=people"
    group-search-filter="uniqueMember={0}"
    group-role-attribute="cn"
    group-search-base="ou=groups,dc=cimp,dc=sfas,dc=yale,dc=edu"
    role-prefix="ROLE_" />

    <bean id="rmsSecurityAdapterFilter"
    class="edu.yale.sfas.cimp.web.filter.RmsSecurityAd aptorFilter">
    <security:custom-filter after="SESSION_CONTEXT_INTEGRATION_FILTER"/>
    </bean>

    <bean id="entryPoint"
    class="org.springframework.security.ui.basicauth.B asicProcessingFilterEntryPoint">
    <property name="realmName" value="cimp"/>
    </bean>

    </beans>

    Tomcat Error:

    SEVERE: Context [/cimp] startup failed due to previous errors
    log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
    Jun 19, 2009 1:55:58 PM org.apache.catalina.core.StandardContext processTlds
    SEVERE: Error reading tld listeners java.lang.NullPointerException
    java.lang.NullPointerException
    at org.apache.log4j.Category.isEnabledFor(Category.ja va:749)
    at org.apache.commons.logging.impl.Log4JLogger.isTrac eEnabled(Log4JLogger.java:333)
    at org.apache.catalina.startup.TldConfig.tldScanResou rcePaths(TldConfig.java:581)
    at org.apache.catalina.startup.TldConfig.execute(TldC onfig.java:282)
    at org.apache.catalina.core.StandardContext.processTl ds(StandardContext.java:4307)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4144)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:760)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:740)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:544)
    at org.apache.catalina.startup.HostConfig.deployDirec tory(HostConfig.java:927)
    at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.java:890)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1150)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:120)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1022)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:736)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1014)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:448)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:700)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:552)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:295)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:433)
Working...
X