mirror of
https://github.com/samba-team/samba.git
synced 2024-12-30 13:18:05 +03:00
local_gid_to_sid() could use pdb_ldap, which for now requires ROOT.
(This used to be commit a51ce67e32
)
This commit is contained in:
parent
11db21cc1c
commit
75d4193e63
@ -781,7 +781,9 @@ DOM_SID *gid_to_sid(DOM_SID *psid, gid_t gid)
|
||||
}
|
||||
|
||||
/* Make sure we report failure, (when psid == NULL) */
|
||||
become_root();
|
||||
psid = local_gid_to_sid(psid, gid);
|
||||
unbecome_root();
|
||||
DEBUG(10,("gid_to_sid: local %u -> %s\n", (unsigned int)gid, sid_to_string(sid, psid)));
|
||||
if (psid)
|
||||
store_gid_sid_cache(psid, SID_NAME_DOM_GRP, gid);
|
||||
|
Loading…
Reference in New Issue
Block a user