diff options
author | Rob Crittenden <rcritten@redhat.com> | 2012-02-20 19:36:21 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-02-20 19:38:49 +0100 |
commit | ffd39503c1e4c1b7a309953e232d4727551a58c3 (patch) | |
tree | 0b2f5ed17a6bf66041d7314a308fc0a045928792 /install/updates/40-delegation.update | |
parent | efb37739ab1b3a7c9d87af7a2d8ed57a1d0d5abe (diff) | |
download | freeipa-ffd39503c1e4c1b7a309953e232d4727551a58c3.tar.gz freeipa-ffd39503c1e4c1b7a309953e232d4727551a58c3.tar.xz freeipa-ffd39503c1e4c1b7a309953e232d4727551a58c3.zip |
Limit the change password permission so it can't change admin passwords
We don't want those in the helpdesk role to be able to reset
administrators passwords.
https://fedorahosted.org/freeipa/ticket/2271
Diffstat (limited to 'install/updates/40-delegation.update')
-rw-r--r-- | install/updates/40-delegation.update | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/install/updates/40-delegation.update b/install/updates/40-delegation.update index 6384f8eb7..74d882bd3 100644 --- a/install/updates/40-delegation.update +++ b/install/updates/40-delegation.update @@ -326,3 +326,8 @@ add:aci:'(targetattr = "ipasshpubkey")(target = "ldap:///uid=*,cn=users,cn=accou dn: $SUFFIX add:aci:'(targetattr = "ipasshpubkey")(target = "ldap:///fqdn=*,cn=computers,cn=accounts,$SUFFIX")(version 3.0;acl "permission:Manage Host SSH Public Keys";allow (write) groupdn = "ldap:///cn=Manage Host SSH Public Keys,cn=permissions,cn=pbac,$SUFFIX";)' + +# Limit the change password permission so it can't change the passwords +# of administrators +dn: $SUFFIX +replace:aci:'(target = "ldap:///uid=*,cn=users,cn=accounts,$SUFFIX")(targetattr = "userpassword || krbprincipalkey || sambalmpassword || sambantpassword || passwordhistory")(version 3.0;acl "permission:Change a user password";allow (write) groupdn = "ldap:///cn=Change a user password,cn=permissions,cn=pbac,$SUFFIX";)::(targetfilter = "(!(memberOf=cn=admins,cn=groups,cn=accounts,$SUFFIX))")(target = "ldap:///uid=*,cn=users,cn=accounts,$SUFFIX")(targetattr = "userpassword || krbprincipalkey || sambalmpassword || sambantpassword || passwordhistory")(version 3.0;acl "permission:Change a user password";allow (write) groupdn = "ldap:///cn=Change a user password,cn=permissions,cn=pbac,$SUFFIX";)' |