Ldap error code 32

后端 未结 4 1240
时光取名叫无心
时光取名叫无心 2021-02-13 19:33

I\'m trying to synchronize OpenLDAP and Active directory together. To do so I\'m using a program called LSC-Project which is specified to do this sort of thing.

I have

相关标签:
4条回答
  • 2021-02-13 19:57

    The baseDn should be the distinguished name of the base object of the search, for example, ou=users,dc=domname,dc=com.

    see also

    • LDAP: Mastering Search Filters
    • LDAP: Search best practices
    • LDAP: Programming practices
    0 讨论(0)
  • 2021-02-13 19:57

    In Active Directory: Users catalog is container class, not OrganizationalUnit, so you should use: cn=users,dc=domname,dc=com

    0 讨论(0)
  • 2021-02-13 20:02

    In case of Spring-ldap, we used to get this error when we specify the baseDn in the context file(LdapContextSource bean) and also in createUser code to build userDn.we need not specify the dc again in the buildUserDn()

    protected Name buildUserDn(String userName) {
       DistinguishedName dn = new DistinguishedName();
    
       //only cn is required as the base dn is already specified in context file
    
       dn.add("cn", userName); 
    
       return dn;
    }
    
    0 讨论(0)
  • 2021-02-13 20:21

    The main reason for NameNotFoundException is that the object which you're searching doesn't exist or the container in which you are searching is not correct.

    0 讨论(0)
提交回复
热议问题