mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
s4-python: Fix formatting, import of FLG_NOSYNC.
This commit is contained in:
@ -2584,7 +2584,6 @@ void initldb(void)
|
||||
PyModule_AddObject(m, "FLG_RECONNECT", PyInt_FromLong(LDB_FLG_RECONNECT));
|
||||
PyModule_AddObject(m, "FLG_NOMMAP", PyInt_FromLong(LDB_FLG_NOMMAP));
|
||||
|
||||
|
||||
PyModule_AddObject(m, "__docformat__", PyString_FromString("restructuredText"));
|
||||
|
||||
PyExc_LdbError = PyErr_NewException(discard_const_p(char, "_ldb.LdbError"), NULL, NULL);
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user