summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-04-23 22:59:19 +0000
committerJeremy Allison <jra@samba.org>1998-04-23 22:59:19 +0000
commit30675f81f60bab24f47758baab8316d4467709ef (patch)
treed65307f62b3b061e717188662dc91d3863dd1704 /source3/smbd
parentd5114f624591c55a75d86a1efec3378fd4c9ef5a (diff)
downloadsamba-30675f81f60bab24f47758baab8316d4467709ef.tar.gz
samba-30675f81f60bab24f47758baab8316d4467709ef.tar.bz2
samba-30675f81f60bab24f47758baab8316d4467709ef.zip
Makefile: Added nterr.c into the mix.
clientgen.c: Added nt_error as an entry in the struct client_state. password.c: Open the netlogon pipe. smb.h: Added nt_error as an entry in the struct client_state. lib/rpc/parse/parse_net.c: Added comments on net logon. lib/rpc/server/srv_netlog.c: Added comments on net logon. Jeremy. (This used to be commit 899a9f0dce50c73e03c8da2ebe920957491c8ad7)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/password.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index d627edf1cd..11ffe4afd1 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -1886,6 +1886,7 @@ BOOL domain_client_validate( char *user, char *domain,
struct in_addr dest_ip;
struct cli_state cli;
BOOL connected_ok = False;
+ int fnum;
/*
* Check that the requested domain is not our own machine name.
@@ -2037,6 +2038,18 @@ Error was : %s.\n", remote_machine, cli_errstr(&cli) ));
* Now start the NT Domain stuff :-).
*/
+ /*
+ * First, open the pipe to \PIPE\NETLOGON.
+ */
+
+ if((fnum = cli_open(&cli, PIPE_NETLOGON, O_CREAT, DENY_NONE)) == -1) {
+ DEBUG(0,("domain_client_validate: cli_open on %s on machine %s failed. Error was :%s.\n",
+ PIPE_NETLOGON, remote_machine, cli_errstr(&cli)));
+ cli_ulogoff(&cli);
+ cli_shutdown(&cli);
+ return False;
+ }
+
return False;
}
#endif /* DOMAIN_CLIENT */