summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-03-08 22:50:33 +0000
committerLuke Leighton <lkcl@samba.org>2000-03-08 22:50:33 +0000
commit2ad3dfb792b0f0d6c2bd2c76253007d36d59acbb (patch)
treefc15d2829e8015884e59e1240156db4acf956a2e
parente44f75049d97c9295f07b00fb77b9315b834160d (diff)
downloadsamba-2ad3dfb792b0f0d6c2bd2c76253007d36d59acbb.tar.gz
samba-2ad3dfb792b0f0d6c2bd2c76253007d36d59acbb.tar.xz
samba-2ad3dfb792b0f0d6c2bd2c76253007d36d59acbb.zip
james f. hranicky pointed out that a standalone workstation couldn't
do a net use \\samba-tng\share /user:tnguser you had to do net use \\samba-tng\share /user:samba-tngdomainname\tnguser i solved this by putting "if domain name is unrecognised, use local SAM" where domain name, by default on standalone workstations, is the name of the workstation itself.
-rw-r--r--source/rpc_client/msrpc_netlogon.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/rpc_client/msrpc_netlogon.c b/source/rpc_client/msrpc_netlogon.c
index a539d162bcc..d42406aaa4b 100644
--- a/source/rpc_client/msrpc_netlogon.c
+++ b/source/rpc_client/msrpc_netlogon.c
@@ -92,18 +92,12 @@ static uint32 domain_client_validate(const char *user, const char *domain,
fstrcpy(trust_acct, acct_name);
fstrcat(trust_acct, "$");
- /*
- * Check that the requested domain is not our own machine name.
- * If it is, we should never check the PDC here, we use our own local
- * password file.
- */
-
if (!get_any_dc_name(domain, srv_name))
{
DEBUG(3,
- ("domain_client_validate: could not find domain %s\n",
+ ("domain_client_validate: could not find domain %s, using local SAM\n",
domain));
- return NT_STATUS_ACCESS_DENIED;
+ fstrcpy(srv_name, "\\\\.");
}
if (acct_type == SEC_CHAN_DOMAIN)
@@ -249,11 +243,17 @@ uint32 check_domain_security(const char *orig_user, const char *domain,
(lp_security() == SEC_DOMAIN &&
strequal(domain, global_myworkgroup)))
{
+ /*
+ * security = user (pdc, bdc) or security = domain
+ */
fstrcpy(acct_name, global_myname);
acct_type = SEC_CHAN_WKSTA;
}
else
{
+ /*
+ * hm, must be a trusted domain name.
+ */
fstrcpy(acct_name, global_myworkgroup);
acct_type = SEC_CHAN_DOMAIN;
}