diff options
author | Michael Adam <obnox@samba.org> | 2009-11-14 01:06:35 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-11-14 01:28:50 +0100 |
commit | 30ab3a762e644f5825adf4aef82e00d20e7228fb (patch) | |
tree | 977f665a9f7603bae7be30ecc4f83a5e803b921f /source3/passdb/lookup_sid.c | |
parent | 3b7448de1468dd86d101972bce40e4931fa2d1c3 (diff) | |
download | samba-30ab3a762e644f5825adf4aef82e00d20e7228fb.tar.gz samba-30ab3a762e644f5825adf4aef82e00d20e7228fb.tar.bz2 samba-30ab3a762e644f5825adf4aef82e00d20e7228fb.zip |
s3:passdb: remove the uid_to_rid method - we only need uid_to_sid
Michael
Diffstat (limited to 'source3/passdb/lookup_sid.c')
-rw-r--r-- | source3/passdb/lookup_sid.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index 1fcd94c059..a197c51ac8 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -1129,19 +1129,16 @@ void store_gid_sid_cache(const DOM_SID *psid, gid_t gid) static void legacy_uid_to_sid(DOM_SID *psid, uid_t uid) { - uint32 rid; bool ret; ZERO_STRUCTP(psid); become_root(); - ret = pdb_uid_to_rid(uid, &rid); + ret = pdb_uid_to_sid(uid, psid); unbecome_root(); if (ret) { /* This is a mapped user */ - sid_copy(psid, get_global_sam_sid()); - sid_append_rid(psid, rid); goto done; } |