Ldap a temporary repair record

problem

An account to pull yapi group, log display can not find the user name, user attribute comparison (with the normal login account) is found in ldap platform memberOf attribute missing

solve

Login Server Authentication

ldapsearch -h yourhost -p 389 -x -b "ou=xxx,dc=xxxxx,dc=xxx" -D "cn=aaa,dc=bbb,dc=ccc" "(&(objectClass=inetOrgPerson)(cn=xxx))" -w yourpassword memberOf

Use ldapmodify directly to the user to increase the memberOf attribute

ldapmodify -x -D "cn=aaa,dc=bbb,dc=ccc" -w password -h yourhost -p 389 -f test.ldif

File format is as follows:

dn: cn=xxx,ou=People,dc=xxx,dc=xxx
changetype: modify
add: memberOf
memberOf: xxxx
memberOf: xxxx

Guess you like

Origin www.cnblogs.com/fragmentshadow/p/11265513.html