summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-06-21 12:54:34 +0200
committerSumit Bose <sbose@redhat.com>2012-06-26 09:03:21 +0200
commita9576c275b8477564b0f40861ed77801623757a4 (patch)
treebc25aa1f5673292550070038eb6b9e099e764d4f /ipaserver
parent16cc94c7c4bf757a322f6605da33230f34b7a41e (diff)
downloadfreeipa-a9576c275b8477564b0f40861ed77801623757a4.tar.gz
freeipa-a9576c275b8477564b0f40861ed77801623757a4.tar.xz
freeipa-a9576c275b8477564b0f40861ed77801623757a4.zip
Add sidgen postop and task
A postop plugin is added to create the SID for new created users and groups. A directory server task allows to set the SID for existing users and groups. Fixes https://fedorahosted.org/freeipa/ticket/2825
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/adtrustinstance.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipaserver/install/adtrustinstance.py b/ipaserver/install/adtrustinstance.py
index 602a36201..3e3c433bf 100644
--- a/ipaserver/install/adtrustinstance.py
+++ b/ipaserver/install/adtrustinstance.py
@@ -229,6 +229,13 @@ class ADTRUSTInstance(service.Service):
except:
pass
+ def __add_sidgen_module(self):
+ try:
+ self._ldap_mod("ipa-sidgen-conf.ldif", self.sub_dict)
+ self._ldap_mod("ipa-sidgen-task-conf.ldif", self.sub_dict)
+ except:
+ pass
+
def __write_smb_registry(self):
template = os.path.join(ipautil.SHARE_DIR, "smb.conf.template")
conf = ipautil.template_file(template, self.sub_dict)
@@ -442,6 +449,7 @@ class ADTRUSTInstance(service.Service):
self.step("adding admin(group) SIDs", self.__add_admin_sids)
self.step("activating CLDAP plugin", self.__add_cldap_module)
self.step("activating extdom plugin", self.__add_extdom_module)
+ self.step("activating sidgen plugin and task", self.__add_sidgen_module)
self.step("configuring smbd to start on boot", self.__enable)
if not self.no_msdcs:
self.step("adding special DNS service records", \