Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-10452

Setting role's DN to rolesCtxDN causes javax.naming.InvalidNameException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • EAP_EWP 5.3.0.GA
    • EAP_EWP 5.1.2, EAP 6.0.0
    • Security
    • None
    • EAP 5.1.2, 6.0.0

    • Hide

      1. Set role's DN as follow

      login-config.xml:-

              <module-option name="rolesCtxDN">CN=Domain Admins,CN=Users,DC=domain1,DC=winlab,DC=fab,DC=redhat,DC=com</module-option>
      

      2. log in application

      3. see server.log:-

      2012-11-27 14:05:16,417 DEBUG [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-3) Bad password for username=hokuda2
      javax.naming.InvalidNameException: ,CN=Domain Admins,CN=Users,DC=domain1,DC=winlab,DC=fab,DC=redhat,DC=com: [LDAP: error code 34 - 0000208F: NameErr: DSID-031001D1, problem 2006 (BAD_NAME), data 8350, best match of:
      	',CN=Domain Admins,CN=Users,DC=domain1,DC=winlab,DC=fab,DC=redhat,DC=com'
      

      Notice it has a "comma" preceding it in the error.

      Show
      1. Set role's DN as follow login-config.xml:- <module-option name= "rolesCtxDN" >CN=Domain Admins,CN=Users,DC=domain1,DC=winlab,DC=fab,DC=redhat,DC=com</module-option> 2. log in application 3. see server.log:- 2012-11-27 14:05:16,417 DEBUG [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-3) Bad password for username=hokuda2 javax.naming.InvalidNameException: ,CN=Domain Admins,CN=Users,DC=domain1,DC=winlab,DC=fab,DC=redhat,DC=com: [LDAP: error code 34 - 0000208F: NameErr: DSID-031001D1, problem 2006 (BAD_NAME), data 8350, best match of: ',CN=Domain Admins,CN=Users,DC=domain1,DC=winlab,DC=fab,DC=redhat,DC=com' Notice it has a "comma" preceding it in the error.
    • Release Notes
    • Workaround Exists
    • Hide

      Set role's container DN.

      Show
      Set role's container DN.
    • Not Yet Documented
    • NEW

    Description

      Setting role's DN to rolesCtxDN causes javax.naming.InvalidNameException. This occurs in EAP6 as well.

      Attachments

        Issue Links

          Activity

            People

              jboss-set_jira JBoss SET
              rhn-support-hokuda Hisanobu Okuda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: