summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/baseldap.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-11-01 12:05:53 -0400
committerRob Crittenden <rcritten@redhat.com>2010-11-19 13:47:09 -0500
commit53d15537553e20a732d041ebddfd4ba69d5bb8dd (patch)
tree34fa2e91f2e34a231e1952fce3086b352f27a680 /ipalib/plugins/baseldap.py
parent5c4dc1c2e95749559dac9c625859f4e1ced5a6e1 (diff)
downloadfreeipa-53d15537553e20a732d041ebddfd4ba69d5bb8dd.tar.gz
freeipa-53d15537553e20a732d041ebddfd4ba69d5bb8dd.tar.xz
freeipa-53d15537553e20a732d041ebddfd4ba69d5bb8dd.zip
Give a detached group a full set of group objectclasses.
The UUID plugin handles adding ipaUniqueId for us as well as the access control for it. ticket 250
Diffstat (limited to 'ipalib/plugins/baseldap.py')
-rw-r--r--ipalib/plugins/baseldap.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
index d742a791e..61fedd98a 100644
--- a/ipalib/plugins/baseldap.py
+++ b/ipalib/plugins/baseldap.py
@@ -234,6 +234,10 @@ class LDAPObject(Object):
if parent_obj.primary_key:
yield parent_obj.primary_key.clone(query=True)
+ def has_objectclass(self, classes, objectclass):
+ oc = map(lambda x:x.lower(),classes)
+ return objectclass.lower() in oc
+
def convert_attribute_members(self, entry_attrs, *keys, **options):
if options.get('raw', False):
return