diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-03-27 12:54:50 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-03-27 12:54:50 +0000 |
commit | 75d4193e6397e4a42343f09fb4de608605753d01 (patch) | |
tree | 1b2d483ea21406f4b38be5a0ff555fb594184ecf /source3/smbd | |
parent | 11db21cc1c00d63c6b23ec6b3a3bdb48728b2b64 (diff) | |
download | samba-75d4193e6397e4a42343f09fb4de608605753d01.tar.gz samba-75d4193e6397e4a42343f09fb4de608605753d01.tar.bz2 samba-75d4193e6397e4a42343f09fb4de608605753d01.zip |
local_gid_to_sid() could use pdb_ldap, which for now requires ROOT.
(This used to be commit a51ce67e322f91a56acb9e358ee8b2254b2e7792)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/uid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index 6ac3528b1a..b9cf0de3bd 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -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); |