From 706a998c1fd0f384a51901e2d0a179e54d48f169 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 20 Jun 2012 11:48:11 +1000 Subject: s4-provision: Remove last unused remenants of the 'sid generator' configuration This was part of the now-abandoned S4 AD LDAP backend project. Andrew Bartlett --- source4/scripting/python/samba/provision/__init__.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'source4') diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py index 0ec072c392..0c529c8435 100644 --- a/source4/scripting/python/samba/provision/__init__.py +++ b/source4/scripting/python/samba/provision/__init__.py @@ -591,7 +591,7 @@ def guess_names(lp=None, hostname=None, domain=None, dnsdomain=None, def make_smbconf(smbconf, hostname, domain, realm, targetdir, - serverrole=None, sid_generator=None, eadb=False, use_ntvfs=False, lp=None, + serverrole=None, eadb=False, use_ntvfs=False, lp=None, global_param=None): """Create a new smb.conf file based on a couple of basic settings. """ @@ -605,9 +605,6 @@ def make_smbconf(smbconf, hostname, domain, realm, targetdir, if serverrole is None: serverrole = "standalone server" - if sid_generator is None: - sid_generator = "internal" - assert domain is not None domain = domain.upper() @@ -1630,10 +1627,6 @@ def provision(logger, session_info, credentials, smbconf=None, else: domainsid = security.dom_sid(domainsid) - sid_generator = "internal" - if backend_type == "fedora-ds": - sid_generator = "backend" - root_uid = findnss_uid([root or "root"]) nobody_uid = findnss_uid([nobody or "nobody"]) users_gid = findnss_gid([users or "users", 'users', 'other', 'staff']) @@ -1679,11 +1672,11 @@ def provision(logger, session_info, credentials, smbconf=None, if data is None or data == "": make_smbconf(smbconf, hostname, domain, realm, targetdir, serverrole=serverrole, - sid_generator=sid_generator, eadb=useeadb, use_ntvfs=use_ntvfs, + eadb=useeadb, use_ntvfs=use_ntvfs, lp=lp, global_param=global_param) else: make_smbconf(smbconf, hostname, domain, realm, targetdir, - serverrole=serverrole, sid_generator=sid_generator, + serverrole=serverrole, eadb=useeadb, use_ntvfs=use_ntvfs, lp=lp, global_param=global_param) if lp is None: -- cgit