summaryrefslogtreecommitdiffstats
path: root/install/updates/20-aci.update
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2011-12-07 02:47:29 -0500
committerRob Crittenden <rcritten@redhat.com>2012-02-13 22:20:23 -0500
commit9b6baf9beeb733d77883f4ed32e553265ee15543 (patch)
tree6a7879c423daf647641bf76f3244e79f36d9a953 /install/updates/20-aci.update
parent63ea0a304ec734a64d28e7c9b0f2b172224155d6 (diff)
downloadfreeipa-9b6baf9beeb733d77883f4ed32e553265ee15543.tar.gz
freeipa-9b6baf9beeb733d77883f4ed32e553265ee15543.tar.xz
freeipa-9b6baf9beeb733d77883f4ed32e553265ee15543.zip
Add LDAP ACIs for SSH public key schema.
https://fedorahosted.org/freeipa/ticket/754
Diffstat (limited to 'install/updates/20-aci.update')
-rw-r--r--install/updates/20-aci.update10
1 files changed, 10 insertions, 0 deletions
diff --git a/install/updates/20-aci.update b/install/updates/20-aci.update
index 41d35da35..3f27eb844 100644
--- a/install/updates/20-aci.update
+++ b/install/updates/20-aci.update
@@ -6,3 +6,13 @@ add:aci: '(targetfilter = "(objectClass=mepManagedEntry)")(targetattr = "*")(ver
# We can do a query on a DN to see if an attribute exists.
dn: cn=accounts,$SUFFIX
add:aci: (targetattr="userPassword || krbPrincipalKey")(version 3.0; acl "Search existence of password and kerberos keys"; allow(search) userdn = "ldap:///all";)
+
+# SSH public keys
+dn: $SUFFIX
+add:aci:'(targetattr = "ipasshpubkey")(version 3.0;acl "selfservice:Users can manage their own SSH public keys";allow (write) userdn = "ldap:///self";)'
+
+dn: cn=computers,cn=accounts,$SUFFIX
+add:aci:'(targetattr="ipasshpubkey")(version 3.0; acl "Hosts can modify their own SSH public keys"; allow(write) userdn = "ldap:///self";)'
+
+dn: cn=computers,cn=accounts,$SUFFIX
+add:aci:'(targetattr="ipasshpubkey")(version 3.0; acl "Hosts can manage other host SSH public keys"; allow(write) userattr = "parent[0,1].managedby#USERDN";)'