summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-04-08 20:28:11 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-04-08 23:20:36 +0200
commitcc6e2b8a819c6a1da4e6214be9607aab2de270bb (patch)
treeb7e23031a21be39c314f162e3eb5af80b4e1fdde /source4/scripting/python
parentd7a46ee129c455cba95126e9c0f409522127894e (diff)
downloadsamba-cc6e2b8a819c6a1da4e6214be9607aab2de270bb.tar.gz
samba-cc6e2b8a819c6a1da4e6214be9607aab2de270bb.tar.bz2
samba-cc6e2b8a819c6a1da4e6214be9607aab2de270bb.zip
s4-python: Fix formatting, import of FLG_NOSYNC.
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/__init__.py2
-rw-r--r--source4/scripting/python/samba/provision.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py
index fc369290f9..a513541da8 100644
--- a/source4/scripting/python/samba/__init__.py
+++ b/source4/scripting/python/samba/__init__.py
@@ -103,7 +103,7 @@ class Ldb(_Ldb):
if lp is not None:
nosync_p = lp.get("nosync", "ldb")
if nosync_p is not None and nosync_p == True:
- flags |= FLG_NOSYNC
+ flags |= ldb.FLG_NOSYNC
self.set_create_perms()
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index eb89ee9f3a..71c04cfef9 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -493,13 +493,13 @@ def setup_name_mappings(samdb, idmap, sid, domaindn, root_uid, nobody_uid,
:param nobody_uid: uid of the UNIX nobody user.
:param users_gid: gid of the UNIX users group.
:param wheel_gid: gid of the UNIX wheel group."""
-
idmap.setup_name_mapping("S-1-5-7", idmap.TYPE_UID, nobody_uid)
idmap.setup_name_mapping("S-1-5-32-544", idmap.TYPE_GID, wheel_gid)
idmap.setup_name_mapping(sid + "-500", idmap.TYPE_UID, root_uid)
idmap.setup_name_mapping(sid + "-513", idmap.TYPE_GID, users_gid)
+
def setup_samdb_partitions(samdb_path, setup_path, message, lp, session_info,
provision_backend, names, schema,
serverrole,