Ldap Command Test ldapsearch-h192.168.1.10-D & quot; uidenlaizhou, ouPeople, dcexample, dccom & quot;-W-B & quot; ouPeople, dcexample, dccom & quot; ldapmodify-a-f/tmp/c-h192.168.1.10-D & ldap command initial test ldapsearch-h 192.168.1.10-D "uid = enlaizhou, ou = People, dc = example, dc = com "-W-B" ou = People, dc = example, dc = com "ldapmodify-a-f/tmp/c-h 192.168.1.10-D" uid = enlaizhou, ou = People, dc = example, dc = com "-W in addition, libnss-ldap provides the sample ldap configuration file:/u Sr/share/doc/libnss-ldap/examples/groups. ldif/usr/share/doc/libnss-ldap/examples/people. ldif is not clear about permission configuration. The following is the acl. ldif: # Allow LdapUserAdmin Group to change anyone's passwordolcAccess: to attrs = userPassword by self write by anonymous auth by dn. base = "uid = admin, ou = People, dc = example, dc = com" write by set = "[cn = LdapUserAdmin, ou = Group, dc = example, dc = com]/memberUid & user/uid "write by * none # Allow LdapGroupAdmin Group to change membership & main groupolcAccess: to attrs = memberUid, gidNumber by set = "[cn = LdapGroupAdmin, ou = Group, dc = example, dc = com]/memberUid & user/uid "write by * read # Allow LdapUserAdmin Group to create/delete userolcAccess: to dn =" ou = People, dc = example, dc = com "attrs = children by set =" [cn = LdapUserAdmin, ou = Group, dc = example, dc = com]/memberUid & user/uid "write by * breakolcAccess: to dn. subtree = "ou = People, dc = example, dc = com" attrs = entry by set = "[cn = LdapUserAdmin, ou = Group, dc = example, dc = com]/memberUid & user/uid "write by * break # Allow LdapGroupAdmin Group to create/delete groupolcAccess: to dn =" ou = Group, dc = example, dc = com "attrs = children by set =" [cn = LdapGroupAdmin, ou = Group, dc = example, dc = com]/memberUid & user/uid "write by * breakolcAccess: to dn. subtree = "ou = Group, dc = example, dc = com" attrs = entry by set = "[cn = LdapGroupAdmin, ou = Group, dc = example, dc = com]/memberUid & user/uid "write by * break # Allow UserInfoMgmt Group to modify user info # Allow users to change their own recordolcAccess: to attrs = sn, gn, mail, mobile, manager, title, telephoneNumber, homePhone, pager by set = "[cn = UserInfoMgmt, ou = Group, dc = example, dc = com]/memberUid & user/uid "write by self write by * read # Allow anyone to read directoryolcAccess: to * by self write by dn. base = "uid = admin, ou = People, dc = example, dc = com" write by * read
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.