1 Reply Latest reply on Oct 29, 2001 10:38 AM by J. Wolfgang Kaltz

    Ldap authentication problem

    saliot Newbie

      I have a secured servlet in JBoss-2.4.1_Tomcat-3.2.3. I am authenticated when i use the auth.conf with parameters :
      example1 {
      org.jboss.security.auth.spi.UsersRolesLoginModule required;
      }

      and the two files roles.properties and users.properties.



      Then when i want to be authenticated with a ldap server, i have these errors :
      java.lang.SecurityException: Configuration Error:
      Line 33: expected 'controlFlag' , found 'null'
      at com.sun.security.auth.login.ConfigFile.getAppConfigurationEntry(ConfigFile.java:221)
      ......


      Here are my configuration files :
      example1 {
      org.jboss.security.plugins.samples.LdapLoginModule required;
      principalDNPrefix=cn=
      uidAttributeID=cn
      roleAttributeID=uniqueMember
      principalDNSuffix=,ou=Persons,dc=MyPlace,dc=fr
      rolesCtxDN=ou=Roles,dc=MyPlace,dc=fr
      }

      and my LDAP entries :
      +localhost
      +dc=MyPlace,dc=fr
      +ou=Persons
      | +cn=userA
      | +cn=userB
      +ou=Roles
      +cn=admin
      +cn=user

      I have this parameters for admin and user :
      dn: cn=admin, ou=Roles, dc=MyPlace, dc=fr
      objectclass: groupOfUniqueNames
      uniqueMember: cn=userA, ou=Persons, dc=Myplace, dc=fr
      cn: admin

      dn: cn=user, ou=Roles, dc=MyPlace, dc=fr
      objectclass: groupOfUniqueNames
      uniqueMember: cn=userA, ou=Persons, dc=Myplace, dc=fr
      uniqueMember: cn=userB, ou=Persons, dc=Myplace, dc=fr
      cn: user

      thanks