diff options
author | Luke Leighton <lkcl@samba.org> | 2000-04-09 07:24:44 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-04-09 07:24:44 +0000 |
commit | 12237eaa8f69a9bae1501ee199031495884c8bc3 (patch) | |
tree | 1efd93d91a09412e71d6b356d0c5ba606240aaa3 | |
parent | 38f4a23eee4af49d119591435d5915010b92b52e (diff) | |
download | samba-12237eaa8f69a9bae1501ee199031495884c8bc3.tar.gz samba-12237eaa8f69a9bae1501ee199031495884c8bc3.tar.xz samba-12237eaa8f69a9bae1501ee199031495884c8bc3.zip |
making sure that a local authentication request (specifying hostname
as domain name) works.
-rw-r--r-- | source/netlogond/srv_netlogon_nt.c | 1 | ||||
-rw-r--r-- | source/rpc_client/msrpc_netlogon.c | 7 |
2 files changed, 3 insertions, 5 deletions
diff --git a/source/netlogond/srv_netlogon_nt.c b/source/netlogond/srv_netlogon_nt.c index 2cef530523a..85feb61238f 100644 --- a/source/netlogond/srv_netlogon_nt.c +++ b/source/netlogond/srv_netlogon_nt.c @@ -248,7 +248,6 @@ static uint32 remote_interactive(const NET_ID_INFO_1 * id1, DEBUG(5, ("END remote_interactive: %x\n", status)); - status = check_domain_security(user, domain, if (status != 0x0) { return status; diff --git a/source/rpc_client/msrpc_netlogon.c b/source/rpc_client/msrpc_netlogon.c index 2e4c6a6dd6d..fa69f222ead 100644 --- a/source/rpc_client/msrpc_netlogon.c +++ b/source/rpc_client/msrpc_netlogon.c @@ -244,12 +244,11 @@ uint32 check_domain_security(const char *orig_user, const char *domain, domain = global_myworkgroup; } - if (lp_security() == SEC_USER || - (lp_security() == SEC_DOMAIN && - strequal(domain, global_myworkgroup))) + if (strequal(domain, global_myworkgroup) || + strequal(domain, global_myname)) { /* - * security = user (pdc, bdc) or security = domain + * local */ fstrcpy(acct_name, global_myname); acct_type = SEC_CHAN_WKSTA; |