diff options
author | Jr Aquino <jr.aquino@citrix.com> | 2011-08-30 17:48:15 -0700 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-08-31 09:49:43 +0200 |
commit | d05ace8fba6ea4a61c1070d5e5687aaa5d2aee2b (patch) | |
tree | 5b6daf95a33876a416c8e1ed8453b437a305c76b /ipalib/plugins/user.py | |
parent | 6b19b2dc895b862d00eaf1eb4f047282418f598c (diff) | |
download | freeipa-d05ace8fba6ea4a61c1070d5e5687aaa5d2aee2b.tar.gz freeipa-d05ace8fba6ea4a61c1070d5e5687aaa5d2aee2b.tar.xz freeipa-d05ace8fba6ea4a61c1070d5e5687aaa5d2aee2b.zip |
34 Create FreeIPA CLI Plugin for the 389 Auto Membership plugin
Added new container in etc to hold the automembership configs.
Modified constants to point to the new container
Modified dsinstance to create the container
Created automember.py to add the new commands
Added xmlrpc test to verify functionality
Added minor fix to user.py for constant behavior between memberof
and automember
https://fedorahosted.org/freeipa/ticket/1272
Diffstat (limited to 'ipalib/plugins/user.py')
-rw-r--r-- | ipalib/plugins/user.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index d728ad47c..92a026d0a 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -391,6 +391,9 @@ class user_add(LDAPCreate): def_primary_group = config.get('ipadefaultprimarygroup') group_dn = self.api.Object['group'].get_dn(def_primary_group) ldap.add_entry_to_group(dn, group_dn) + if self.api.env.wait_for_attr: + newentry = wait_for_value(ldap, dn, 'memberOf', def_primary_group) + entry_from_entry(entry_attrs, newentry) self.obj._convert_manager(entry_attrs, **options) # delete description attribute NO_UPG_MAGIC if present if options.get('noprivate', False): |