diff options
author | Volker Lendecke <vl@samba.org> | 2010-01-10 17:57:00 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-01-10 20:56:16 +0100 |
commit | 48251c3370ed24aecd677d923d109ed7eda07388 (patch) | |
tree | c3487e26e4ed537d96690141b8c47867e02b307f /source3/passdb | |
parent | 3ea64e0ad86c35e5f0018ac60571e7a31a968543 (diff) | |
download | samba-48251c3370ed24aecd677d923d109ed7eda07388.tar.gz samba-48251c3370ed24aecd677d923d109ed7eda07388.tar.bz2 samba-48251c3370ed24aecd677d923d109ed7eda07388.zip |
s3: Use sid_check_is_in_our_domain instead of a direct sid_peek_check_rid
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/lookup_sid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index 4421d89c3a..6149f974ac 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -1187,9 +1187,8 @@ static void legacy_gid_to_sid(DOM_SID *psid, gid_t gid) static bool legacy_sid_to_uid(const DOM_SID *psid, uid_t *puid) { enum lsa_SidType type; - uint32 rid; - if (sid_peek_check_rid(get_global_sam_sid(), psid, &rid)) { + if (sid_check_is_in_our_domain(psid)) { union unid_t id; bool ret; @@ -1230,7 +1229,6 @@ done: static bool legacy_sid_to_gid(const DOM_SID *psid, gid_t *pgid) { - uint32 rid; GROUP_MAP map; union unid_t id; enum lsa_SidType type; @@ -1252,7 +1250,7 @@ static bool legacy_sid_to_gid(const DOM_SID *psid, gid_t *pgid) return false; } - if (sid_peek_check_rid(get_global_sam_sid(), psid, &rid)) { + if (sid_check_is_in_our_domain(psid)) { bool ret; become_root(); |