1 Reply Latest reply: Mar 15, 2011 5:07 PM by 847700 RSS

    Error: Authenticating With LDAP for SUN Role Manager

    AMAR PATIL
      Hi Team,
      I was trying Authentication using LDAP in SRM.
      Ref: http://wikis.sun.com/display/Srm503Docs/Authenticating+With+LDAP

      I'm getting error as following when I try login with ldap user:
      ERROR [LdapPasswordAuthenticationDao] javax.naming.AuthenticationException: [LDAP: error code 32 - No Such Object]
      ERROR [MultipleChainablePasswordDaoAuthenticationProvider] ERROR: Bad Credentials
      org.springframework.security.BadCredentialsException: Invalid username, password or context; nested exception is javax.naming.AuthenticationException: [LDAP: error code 32 - No Such Object]
      Following the customised Ldap properties file:
      # Properties file with ldap authenticaton related settings
      ldapAuthentication.defaultRole=ROLE_AUTHENTICATED_PRINCIPAL
      
      ldapAuthentication.enabled=true
      ldapAuthentication.tryNextProviderIfNoAuthenticated=false
      ldapAuthentication.stopIfCommunicationError=true
      
      ldapAuthentication.url=ldap://10.227.36.136:389/DC=cts,DC=com
      ldapAuthentication.rootContext=DC=cts,DC=com
      
      ldapAuthentication.securityPrincipal=CN=Directory Manager,DC=cts,DC=com
      ldapAuthentication.securityCredential=password
      
      ldapAuthentication.userContextPrefix=cts\\
      
      ldapAuthentication.keepContextPrefix=false
      ldapAuthentication.isAD=false
      
      ldapAuthentication.userContext={0}
      
      ldapAuthentication.userAccountSearchKey=cn
      ldapAuthentication.firstNameSearchKey=givenName
      ldapAuthentication.lastNameSearchKey=sn
      Kindly let me the errors in my configuration or solutions if any,

      Thanks in advance.

      Cheers:
      Amar
        • 1. Re: Error: Authenticating With LDAP for SUN Role Manager
          847700
          Hi, I´m having a similar problem

          Amar, Can you solved your problem?

          this is the error I´m getting when I tried to login with a LDAP user(of course I´m writing fine the user and pass)

          16:51:26,003 ERROR [LdapPasswordAuthenticationDao] javax.naming.AuthenticationNotSupportedException: [LDAP: error code 48 - Inappropriate Authentication]
          16:51:26,003 ERROR [MultipleChainablePasswordDaoAuthenticationProvider] ERROR: Bad Credentials
          org.springframework.security.BadCredentialsException: Invalid username, password or context; nested exception is javax.naming.AuthenticationNotSupportedException: [LDAP: error code 48 - Inappropriate Authentication]


          this is my ldap.properties

          ldapAuthentication.defaultRole=ROLE_AUTHENTICATED_PRINCIPAL

          ldapAuthentication.url=ldap\://directory.xxxxxx.com:389/ou\=people,o\=xxxxx.com
          ldapAuthentication.enabled=true
          ldapAuthentication.tryNextProviderIfNoAuthenticated=false
          ldapAuthentication.stopIfCommunicationError=true
          ldapAuthentication.keepContextPrefix=false
          ldapAuthentication.rootContext=ou\=people,o\=xxxxx.com
          ldapAuthentication.isAD=false
          ldapAuthentication.userContext=uid\={0},ou\=people,o\=xxxxx.com
          ldapAuthentication.userAccountSearchKey=uid <--The UID is fine


          Thanks in advance,


          Agustin