1
0
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:
Andrew Bartlett 2003-03-27 12:54:50 +00:00
parent 11db21cc1c
commit 75d4193e63

View File

@ -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);