mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Be explicit about setting perms for the ldb. Helps others who may use this api.
Jeremy.
This commit is contained in:
parent
73f54df7fe
commit
f0ea0f3502
@ -60,6 +60,9 @@ static bool init_group_mapping(void)
|
||||
ldb = ldb_init(NULL);
|
||||
if (ldb == NULL) goto failed;
|
||||
|
||||
/* Ensure this db is created read/write for root only. */
|
||||
ldb_set_create_perms(ldb, 0600);
|
||||
|
||||
existed = file_exist(db_path, NULL);
|
||||
|
||||
if (lp_parm_bool(-1, "groupmap", "nosync", False)) {
|
||||
|
Loading…
Reference in New Issue
Block a user