From 30675f81f60bab24f47758baab8316d4467709ef Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 23 Apr 1998 22:59:19 +0000 Subject: 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) --- source3/smbd/password.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source3/smbd/password.c') 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 */ -- cgit