summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-03-07 08:22:06 +0000
committerVolker Lendecke <vlendec@samba.org>2004-03-07 08:22:06 +0000
commitb3b93aaa3f3aee9bc48edea4c00613b5f8fe9f73 (patch)
treeb634833257f8d0f5e0011f9e2beb3e8a2cc86fa2 /source3
parentf52b1acb742c44224c0dd318d1aad87ffcd24803 (diff)
downloadsamba-b3b93aaa3f3aee9bc48edea4c00613b5f8fe9f73.tar.gz
samba-b3b93aaa3f3aee9bc48edea4c00613b5f8fe9f73.tar.bz2
samba-b3b93aaa3f3aee9bc48edea4c00613b5f8fe9f73.zip
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 (This used to be commit 7ed61edbbedbdee25f750aa30c13479764aa1af2)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/lookup_sid.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c
index 425c9b87f1..83d2cd28ac 100644
--- a/source3/passdb/lookup_sid.c
+++ b/source3/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",