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

  • Nog able to create users or groups with a slash

    Hi,

    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,o=gdp3000.com' org.springframework.ldap.support.LdapUtils.convert LdapException(LdapUtils.java:174) org.springframework.ldap.core.LdapTemplate.execute WithContext(LdapTemplate.java:810) org.springframework.ldap.core.LdapTemplate.execute ReadWrite(LdapTemplate.java:802) org.springframework.ldap.core.LdapTemplate.bind(Ld apTemplate.java:1010) com.gudrun.gdp3000.permission.dao.ldap.PermissionD AOLdapImpl.createUser(PermissionDAOLdapImpl.java:2 62) com.gudrun.gdp3000.permission.admin.PermissionAdmi nServiceImpl.createUser(PermissionAdminServiceImpl .java:209) com.gudrun.gdp3000.permission.usecase.PermissionUs eCaseImpl.createUser(PermissionUseCaseImpl.java:10 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?

    Thanks,
    Stefaan.
Working...
X