From c39f698dde98de9b6be40a6c81e669dcd7696b3a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 7 Mar 2004 08:23:06 +0000 Subject: [PATCH] Get us a little closer to Windows LSA semantics. A windows DC does not reply to DCNAME\\Administrator, only to DOMAIN\\Administrator. Fix that. Without winbind we are wrong as domain members, we should forward the request DOMAIN\\Username to the DC on behalf of the asking client. Winbind fixes that nicely. Volker --- source/passdb/lookup_sid.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/source/passdb/lookup_sid.c b/source/passdb/lookup_sid.c index 425c9b87f10..83d2cd28ac6 100644 --- a/source/passdb/lookup_sid.c +++ b/source/passdb/lookup_sid.c @@ -36,16 +36,7 @@ BOOL lookup_name(const char *domain, const char *name, DOM_SID *psid, enum SID_N /* If we are looking up a domain user, make sure it is for the local machine only */ - if (strequal(global_myname(), domain)) { - local_lookup = True; - } else if (lp_server_role() == ROLE_DOMAIN_PDC || - lp_server_role() == ROLE_DOMAIN_BDC) { - if (strequal(domain, lp_workgroup())) { - local_lookup = True; - } - } - - if (local_lookup) { + if (strequal(domain, get_global_sam_name())) { if (local_lookup_name(name, psid, name_type)) { DEBUG(10, ("lookup_name: (local) [%s]\\[%s] -> SID %s (type %s: %u)\n", -- 2.11.4.GIT