美文网首页
Openldap 配置用户权限

Openldap 配置用户权限

作者: ZhiXiong | 来源:发表于2020-05-17 09:55 被阅读0次
    新增示例:

    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

    相关文章

      网友评论

          本文标题:Openldap 配置用户权限

          本文链接:https://www.haomeiwen.com/subject/uzecuhtx.html