diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-11-01 12:05:53 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-11-19 13:47:09 -0500 |
commit | 53d15537553e20a732d041ebddfd4ba69d5bb8dd (patch) | |
tree | 34fa2e91f2e34a231e1952fce3086b352f27a680 /ipalib/plugins/baseldap.py | |
parent | 5c4dc1c2e95749559dac9c625859f4e1ced5a6e1 (diff) | |
download | freeipa-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.py | 4 |
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 |