summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_sid.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-03-13 17:35:47 +0000
committerVolker Lendecke <vlendec@samba.org>2004-03-13 17:35:47 +0000
commit9522e181d1537bb4ec5e1d39ee4fb5034d07be20 (patch)
tree5fc639e35ea6e969b0777022f5db4cb1ac33763a /source3/nsswitch/winbindd_sid.c
parentebd5fe9d02433c5bfe480ae09385ddd3f7e2364c (diff)
downloadsamba-9522e181d1537bb4ec5e1d39ee4fb5034d07be20.tar.gz
samba-9522e181d1537bb4ec5e1d39ee4fb5034d07be20.tar.bz2
samba-9522e181d1537bb4ec5e1d39ee4fb5034d07be20.zip
Add alias support to winbindd_passdb. Sorry, Simo, this does not leave too
much of your winbindd_passdb, users are currently not provided by that, only aliases. Currently the code to maintain that stuff is not yet in, this will be next, see my next posting to samba-technical. Volker (This used to be commit 9e0fb457ba77a55f8271b6acc91a07f0a8df3760)
Diffstat (limited to 'source3/nsswitch/winbindd_sid.c')
-rw-r--r--source3/nsswitch/winbindd_sid.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/source3/nsswitch/winbindd_sid.c b/source3/nsswitch/winbindd_sid.c
index 9fbf47046d..8ff6cfd271 100644
--- a/source3/nsswitch/winbindd_sid.c
+++ b/source3/nsswitch/winbindd_sid.c
@@ -30,10 +30,8 @@
enum winbindd_result winbindd_lookupsid(struct winbindd_cli_state *state)
{
- extern DOM_SID global_sid_Builtin;
enum SID_NAME_USE type;
- DOM_SID sid, tmp_sid;
- uint32 rid;
+ DOM_SID sid;
fstring name;
fstring dom_name;
@@ -50,15 +48,6 @@ enum winbindd_result winbindd_lookupsid(struct winbindd_cli_state *state)
return WINBINDD_ERROR;
}
- /* Don't look up BUILTIN sids */
-
- sid_copy(&tmp_sid, &sid);
- sid_split_rid(&tmp_sid, &rid);
-
- if (sid_equal(&tmp_sid, &global_sid_Builtin)) {
- return WINBINDD_ERROR;
- }
-
/* Lookup the sid */
if (!winbindd_lookup_name_by_sid(&sid, dom_name, name, &type)) {