[SCM] Samba Shared Repository - branch master updated - tevent-0-9-8-132-gc0efa51
Andrew Tridgell
tridge at samba.org
Wed Sep 9 20:43:41 MDT 2009
The branch, master has been updated
via c0efa5192956cfa7b53da54851409ec5cac07b8d (commit)
from 22c4ffa398a4c4855f79c36e75fdf467cdd47184 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit c0efa5192956cfa7b53da54851409ec5cac07b8d
Author: Andrew Tridgell <tridge at samba.org>
Date: Thu Sep 10 12:42:57 2009 +1000
s4/provision: another fix for breakage from b1dabb1133
-----------------------------------------------------------------------
Summary of changes:
source4/scripting/python/samba/provision.py | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index dafccb3..ca38a85 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -1114,6 +1114,7 @@ def provision(setup_dir, message, session_info,
# Now use the backend credentials to access the databases
credentials = provision_backend.credentials
secrets_credentials = provision_backend.adminCredentials
+ ldapi_url = provision_backend.ldapi_uri
# only install a new shares config db if there is none
if not os.path.exists(paths.shareconf):
@@ -1219,17 +1220,18 @@ def provision(setup_dir, message, session_info,
message("A Kerberos configuration suitable for Samba 4 has been generated at %s" % paths.krb5conf)
- ldapi_db = Ldb(provision_backend.ldapi_uri, lp=lp, credentials=credentials)
+ if provision_backend is not None:
+ ldapi_db = Ldb(provision_backend.ldapi_uri, lp=lp, credentials=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"])
+ # 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"])
- for i in range (0, len(res)):
+ for i in range (0, len(res)):
dn = str(res[i]["dn"])
ldapi_db.delete(dn)
- # configure aci
- if ldap_backend_type == "fedora-ds":
+ # configure aci
+ if ldap_backend_type == "fedora-ds":
aci = """(targetattr = "*") (version 3.0;acl "full access to all by samba-admin";allow (all)(userdn = "ldap:///CN=samba-admin,%s");)""" % names.sambadn
--
Samba Shared Repository
More information about the samba-cvs
mailing list