Ldap error code 32

后端 未结 4 1266
时光取名叫无心
时光取名叫无心 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 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;
    }
    

提交回复
热议问题