Announcement Announcement Module
No announcement yet.
Nog able to create users or groups with a slash Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Nog able to create users or groups with a slash


    We're getting weird errors when we are trying to create LDAP entries (users or groups) with a slash.
    Unfortunatly, we receive these names from different parties, so we're not able to change the names easily.

    org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - No Such Object]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'uid=M16452test/,ou=People,o=MAK16452,' LdapException( org.springframework.ldap.core.LdapTemplate.execute WithContext( org.springframework.ldap.core.LdapTemplate.execute ReadWrite( org.springframework.ldap.core.LdapTemplate.bind(Ld com.gudrun.gdp3000.permission.dao.ldap.PermissionD AOLdapImpl.createUser( 62) com.gudrun.gdp3000.permission.admin.PermissionAdmi nServiceImpl.createUser(PermissionAdminServiceImpl .java:209) com.gudrun.gdp3000.permission.usecase.PermissionUs eCaseImpl.createUser( 6) sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

    Our code is as simple as this:
    public void createUser(UserImpl user) {
    Attributes attributes = new UserImplContextMapper().mapFromObject(user, false);
    ldapTemplate.bind(user.getId(), null, attributes);

    This works fine with other chars such as an ampersand, a comma or a back-slash. Only the forward slash gives us trouble.

    With our older product, which uses ldapsdk, this works without problems. We're using spring-ldap-1.3.1.RELEASE.ALL.jar with JBoss 5.1.2 EAP and an old version of Sun's LDAP server.

    Anyone has some clues?