ldap命令初試

來源:互聯網
上載者:User

ldap命令初試 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  另外libnss-ldap提供了樣本的ldap設定檔: /usr/share/doc/libnss-ldap/examples/groups.ldif/usr/share/doc/libnss-ldap/examples/people.ldif 關於其中的許可權配置我還是不大清楚。以下是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
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.