diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-06-18 09:27:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:57:20 -0500 |
commit | 5b08e6688edf8a297ff374b4675ac95c97a3d6a1 (patch) | |
tree | 6927e48c1fc71da3f6ee0a87b2b0b52d89a4ce53 /source3/passdb | |
parent | 3b1f21b812be54d4ed334e23161e6d9a54f9977f (diff) | |
download | samba-5b08e6688edf8a297ff374b4675ac95c97a3d6a1.tar.gz samba-5b08e6688edf8a297ff374b4675ac95c97a3d6a1.tar.bz2 samba-5b08e6688edf8a297ff374b4675ac95c97a3d6a1.zip |
r7718: Remove some unused code
(This used to be commit 10606be0509743b1acfcafbf826b1a02765db158)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/lookup_sid.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index 6fcd4582f2..4cd9516dd1 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -112,45 +112,6 @@ BOOL lookup_sid(const DOM_SID *sid, fstring dom_name, fstring name, enum SID_NAM return True; } -BOOL sid_to_local_user_name(const DOM_SID *sid, fstring username) -{ - fstring dom_name; - fstring name; - enum SID_NAME_USE type; - - if (!sid_check_is_in_our_domain(sid)) - return False; - - if (!lookup_sid(sid, dom_name, name, &type)) - return False; - - if (type != SID_NAME_USER) - return False; - - fstrcpy(username, name); - return True; -} - -BOOL sid_to_local_dom_grp_name(const DOM_SID *sid, fstring groupname) -{ - fstring dom_name; - fstring name; - enum SID_NAME_USE type; - - if (!sid_check_is_in_our_domain(sid)) - return False; - - if (!lookup_sid(sid, dom_name, name, &type)) - return False; - - if (type != SID_NAME_DOM_GRP) - return False; - - fstrcpy(groupname, name); - return True; -} - - /***************************************************************** Id mapping cache. This is to avoid Winbind mappings already seen by smbd to be queried too frequently, keeping winbindd |