mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-12 17:07:23 +01:00
Allow the nextcloud service account to be able to change user account passwords.
This should be removed once Nextcloud Server iss 18406 is fixed.
This commit is contained in:
@@ -579,6 +579,15 @@ apply_access_control() {
|
||||
ldapmodify -Q -Y EXTERNAL -H ldapi:/// >/dev/null <<EOF
|
||||
dn: $cdn
|
||||
replace: olcAccess
|
||||
# the next line is for nextcloud to be able to change user account
|
||||
# passwords. remove it when nextcloud server issue #18406 is fixed
|
||||
olcAccess: to dn.subtree="${LDAP_USERS_BASE}" attrs=userPassword
|
||||
by dn.exact="cn=management,${LDAP_SERVICES_BASE}" write
|
||||
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read
|
||||
by dn.exact="cn=nextcloud,${LDAP_SERVICES_BASE}" write
|
||||
by self =wx
|
||||
by anonymous auth
|
||||
by * none
|
||||
olcAccess: to attrs=userPassword
|
||||
by dn.exact="cn=management,${LDAP_SERVICES_BASE}" write
|
||||
by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read
|
||||
|
||||
Reference in New Issue
Block a user