From c54699faf2796e1e8acbb2215fab835a6d86318e Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 29 Jan 2010 16:05:22 -0600 Subject: s4:provision - Moved default FDS SASL mappings deletion from post_setup() to init(). Signed-off-by: Andrew Bartlett --- source4/scripting/python/samba/provisionbackend.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/provisionbackend.py b/source4/scripting/python/samba/provisionbackend.py index 75e00979df..1919c5d81c 100644 --- a/source4/scripting/python/samba/provisionbackend.py +++ b/source4/scripting/python/samba/provisionbackend.py @@ -721,14 +721,7 @@ class FDSBackend(LDAPBackend): def post_setup(self): ldapi_db = Ldb(self.ldapi_uri, credentials=self.credentials) - # delete default SASL mappings - res = ldapi_db.search(expression="(!(cn=samba-admin mapping))", base="cn=mapping,cn=sasl,cn=config", scope=SCOPE_ONELEVEL, attrs=["dn"]) - # configure in-directory access control on Fedora DS via the aci attribute (over a direct ldapi:// socket) - for i in range (0, len(res)): - dn = str(res[i]["dn"]) - ldapi_db.delete(dn) - aci = """(targetattr = "*") (version 3.0;acl "full access to all by samba-admin";allow (all)(userdn = "ldap:///CN=samba-admin,%s");)""" % self.sambadn m = ldb.Message() -- cgit