diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-11-26 20:28:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:35 -0500 |
commit | add1493a86d62c298f4a9e0686e8e81deab70c57 (patch) | |
tree | c7faa0d24ff01d5bc40bccec25a6aa9c15cf2c5d /source3/passdb/util_sam_sid.c | |
parent | 5976053f05c20fd2d010ec7949202e365fb701ee (diff) | |
download | samba-add1493a86d62c298f4a9e0686e8e81deab70c57.tar.gz samba-add1493a86d62c298f4a9e0686e8e81deab70c57.tar.bz2 samba-add1493a86d62c298f4a9e0686e8e81deab70c57.zip |
r11919: The generic mappings in srv_samr_nt.c are only used there -- make them
static.
One long overdue simplification: Change local_lookup_sid to local_lookup_rid
its responsible for "our" domain only, in fact it checked for it.
Volker
(This used to be commit 35ba5e083cddfa5ddba5ad84233262fadfbe87b2)
Diffstat (limited to 'source3/passdb/util_sam_sid.c')
-rw-r--r-- | source3/passdb/util_sam_sid.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/passdb/util_sam_sid.c b/source3/passdb/util_sam_sid.c index 42e4b6df96..afbc2edcde 100644 --- a/source3/passdb/util_sam_sid.c +++ b/source3/passdb/util_sam_sid.c @@ -91,7 +91,7 @@ static struct sid_name_map_info special_domains[] = { Turns a domain SID into a name, returned in the nt_domain argument. ***************************************************************************/ -BOOL map_domain_sid_to_name(DOM_SID *sid, fstring nt_domain) +BOOL map_domain_sid_to_name(const DOM_SID *sid, fstring nt_domain) { fstring sid_str; int i = 0; @@ -100,11 +100,6 @@ BOOL map_domain_sid_to_name(DOM_SID *sid, fstring nt_domain) DEBUG(5,("map_domain_sid_to_name: %s\n", sid_str)); - if (sid_check_is_domain(sid)) { - fstrcpy(nt_domain, get_global_sam_name()); - return True; - } - while (special_domains[i].sid != NULL) { DEBUG(5,("map_domain_sid_to_name: compare: %s\n", sid_string_static(special_domains[i].sid))); |