Announcement Announcement Module
Collapse
No announcement yet.
ldap authentication: bad credentials Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ldap authentication: bad credentials

    Hi,
    Has anybody implemented jasperserver with ldap.
    I have tried almost every possible documentation and almost every fourum topics for it , but in real terms nothing is helping me here.
    In my scenario authentication is implementation using novell edirectory
    I hvae ldap://10.21.21.10:389 and o=ros There are several OUs under this.
    when I try to login it gives me bad credentials error. whereas I have checked everything is right as far as login name and password is concerened.

    Please come forward to help me please........ If you need I'll post the whole applicationcontext-security.xml , just to keep space limitation in mind I m pasting ldap portion of it.

    Thanks
    Amit

    --------------------------------------------------------------------

    <bean id="initialDirContextFactory"
    class="org.acegisecurity.ldap.DefaultInitialDirCon textFactory">
    <constructor-arg value="ldap://10.21.21.10:389/o=ros"/>
    <property name="managerDn"><value>cn=test,o=ros</value></property>
    <property name="managerPassword"><value>password</value></property>
    </bean>
    <bean id="userSearch"
    class="org.acegisecurity.ldap.search.FilterBasedLd apUserSearch">
    <constructor-arg index="0">
    <value></value>
    </constructor-arg>
    <constructor-arg index="1">
    <value>(uid={0})</value>
    </constructor-arg>
    <constructor-arg index="2">
    <ref local="initialDirContextFactory" />
    </constructor-arg>
    <property name="searchSubtree">
    <value>true</value>
    </property>
    </bean>
    <bean id="ldapAuthencationProvider"
    class="org.acegisecurity.providers.ldap.LdapAuthen ticationProvider">
    <constructor-arg>
    <bean class="org.acegisecurity.providers.ldap.authentica tor.BindAuthenticator">
    <constructor-arg><ref local="initialDirContextFactory"/></constructor-arg>
    <property name="userDnPatterns"><list><value>uid={0},ou=sft</value></list></property>
    </bean>
    </constructor-arg>
    <constructor-arg>
    <bean class="org.acegisecurity.providers.ldap.populator. DefaultLdapAuthoritiesPopulator">
    <constructor-arg><ref local="initialDirContextFactory"/></constructor-arg>
    <constructor-arg><value>ou=groups</value></constructor-arg>
    <property name="groupRoleAttribute"><value>ou</value></property>
    </bean>
    </constructor-arg>
    </bean>

  • #2
    You should enclose your code or configuration with these tags: [code][/code]. That'll make it easier to read.

    You should post Acegi questions to the Acegi Security forum, since they have their own LDAP integration. They're not using Spring LDAP.

    Comment


    • #3
      hi ulsa

      here is the change :
      Code:
      <bean id="initialDirContextFactory"
      class="org.acegisecurity.ldap.DefaultInitialDirCon textFactory">
      <constructor-arg value="ldap://10.21.21.10:389/o=ros"/>
      <property name="managerDn"><value>cn=test,o=ros</value></property>
      <property name="managerPassword"><value>password</value></property>
      </bean>
      <bean id="userSearch"
      class="org.acegisecurity.ldap.search.FilterBasedLd apUserSearch">
      <constructor-arg index="0">
      <value></value>
      </constructor-arg>
      <constructor-arg index="1">
      <value>(uid={0})</value>
      </constructor-arg>
      <constructor-arg index="2">
      <ref local="initialDirContextFactory" />
      </constructor-arg>
      <property name="searchSubtree">
      <value>true</value>
      </property>
      </bean>
      <bean id="ldapAuthencationProvider"
      class="org.acegisecurity.providers.ldap.LdapAuthen ticationProvider">
      <constructor-arg>
      <bean class="org.acegisecurity.providers.ldap.authentica tor.BindAuthenticator">
      <constructor-arg><ref local="initialDirContextFactory"/></constructor-arg>
      <property name="userDnPatterns"><list><value>uid={0},ou=sft</value></list></property>
      </bean>
      </constructor-arg>
      <constructor-arg>
      <bean class="org.acegisecurity.providers.ldap.populator. DefaultLdapAuthoritiesPopulator">
      <constructor-arg><ref local="initialDirContextFactory"/></constructor-arg>
      <constructor-arg><value>ou=groups</value></constructor-arg>
      <property name="groupRoleAttribute"><value>ou</value></property>
      </bean>
      </constructor-arg>
      </bean>
      Now can you help me?
      Thanks
      Amit

      Comment


      • #4
        You are using Acegi Security for your authentication. This is the Spring LDAP forum. They are not the same. The LDAP integration used in Acegi Security is not based on Spring LDAP. You should post to the Acegi Security forum.

        Be sure to include the complete stack trace you got. That will help them to pinpoint the problem.

        You should also take the time to not only enclose the code with tags, but also format it so it becomes readable. It will be easier to spot typos and mistakes that way.

        Comment

        Working...
        X