Openldap 配置用户权限

新增示例:

change_olcAccess.ldif

dn: olcDatabase={2}hdb,cn=config
changetype: modify
add: olcAccess
olcAccess: to * 
    by dn.exact="uid=gitlab,dc=example,dc=com" read
    by dn.exact="uid=jenkins,dc=example,dc=com" read
    by self read
    by self write
    by * auth

ldapmodify -Y EXTERNAL -H ldapi:/// -f change_olcAccess.ldif

更新示例:
dn: olcDatabase={2}hdb,cn=config
changetype: modify
delete: olcAccess
olcAccess: {0}
olcAccess: {1}
-
add: olcAccess
olcAccess: to * by dn.exact="uid=gitlab,dc=example,dc=com" read by * auth
-
add: olcAccess
olcAccess: xxxxxxxx

参考:
https://www.openldap.org/doc/admin24/access-control.html
http://www.361way.com/ldap-adduser-grants/2825.html

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容