diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-03-27 22:01:22 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-03-27 22:01:22 +0000 |
commit | 560d83be393eadaa885f03ce17286c897913897f (patch) | |
tree | ca72cd524837f3b4f3a1b2abf01bc5be464060ec /source3/smbd | |
parent | 26482ffad50c6cf0b7d53bbad5cce1cff020a22d (diff) | |
download | samba-560d83be393eadaa885f03ce17286c897913897f.tar.gz samba-560d83be393eadaa885f03ce17286c897913897f.tar.bz2 samba-560d83be393eadaa885f03ce17286c897913897f.zip |
pdb_ldap may require ROOT privilages to access the group mapping. (yes, it's ugly :-)
Andrew Bartlett
(This used to be commit 12579a62945d0d475b53c4ab49761a01be9e8394)
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); |