mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add a new objectclass, ipaObject, that will add a UUID to many IPA objects
ipaObject is defined as an auxiliary objectclass so it is up to the plugin author to ensure that the objectclass is included an a UUID generated. ipaUniqueId is a MUST attribute so if you include the objectclass you must ensure that the uuid is generated. This also fixes up some unrelated unit test failures.
This commit is contained in:
committed by
Jason Gerard DeRose
parent
dbeb409ebd
commit
c781e8a57d
@@ -69,9 +69,9 @@ class netgroup_add(basegroup_add):
|
||||
ldap = self.api.Backend.ldap2
|
||||
|
||||
entry_attrs = self.args_options_2_entry(cn, **kw)
|
||||
entry_attrs['ipauniqueid'] = str(uuid.uuid1())
|
||||
entry_attrs['objectclass'] = ['top', 'ipaassociation', _default_class]
|
||||
entry_attrs['objectclass'] = ['top', 'ipaobject', 'ipaassociation', _default_class]
|
||||
entry_attrs.setdefault('nisdomainname', self.api.env.domain)
|
||||
entry_attrs['ipauniqueid'] = str(uuid.uuid1())
|
||||
|
||||
dn = ldap.make_dn(entry_attrs, 'ipauniqueid', _container_dn)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user