diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2014-09-19 16:20:42 +0300 |
---|---|---|
committer | Alexander Bokovoy <abokovoy@redhat.com> | 2014-09-24 15:20:43 +0300 |
commit | 1756629835efb677244cb4e77760a1784485a069 (patch) | |
tree | 6cc88ff037fc32eeb5195c8607c860785499ff03 /ipalib/plugins | |
parent | c78fee3b1623666a7dd2b091d4f71906efec3c8d (diff) | |
download | freeipa-1756629835efb677244cb4e77760a1784485a069.tar.gz freeipa-1756629835efb677244cb4e77760a1784485a069.tar.xz freeipa-1756629835efb677244cb4e77760a1784485a069.zip |
WIP: support idviews in compat treeviews
Diffstat (limited to 'ipalib/plugins')
-rw-r--r-- | ipalib/plugins/group.py | 10 | ||||
-rw-r--r-- | ipalib/plugins/user.py | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py index 8d2e69f06..620bb1111 100644 --- a/ipalib/plugins/group.py +++ b/ipalib/plugins/group.py @@ -212,6 +212,16 @@ class group(LDAPObject): 'objectclass', 'cn', 'memberuid', 'gidnumber', }, }, + 'System: Read Group Views Compat Tree': { + 'non_object': True, + 'ipapermbindruletype': 'anonymous', + 'ipapermlocation': api.env.basedn, + 'ipapermtarget': DN('cn=groups', 'cn=*', 'cn=views', 'cn=compat', api.env.basedn), + 'ipapermright': {'read', 'search', 'compare'}, + 'ipapermdefaultattr': { + 'objectclass', 'cn', 'memberuid', 'gidnumber', + }, + }, } label = _('User Groups') diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index f95b4fd4a..e20628924 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -435,6 +435,17 @@ class user(LDAPObject): 'homedirectory', 'loginshell', }, }, + 'System: Read User Views Compat Tree': { + 'non_object': True, + 'ipapermbindruletype': 'anonymous', + 'ipapermlocation': api.env.basedn, + 'ipapermtarget': DN('cn=users', 'cn=*', 'cn=views', 'cn=compat', api.env.basedn), + 'ipapermright': {'read', 'search', 'compare'}, + 'ipapermdefaultattr': { + 'objectclass', 'uid', 'cn', 'gecos', 'gidnumber', 'uidnumber', + 'homedirectory', 'loginshell', + }, + }, } label = _('Users') |