From 11f7553c7495ecae3e918d8329107174c2ce0149 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 5 May 1996 11:25:07 +0000 Subject: turn on KEEP_PASSWORD_SERVER_OPEN by default (This used to be commit d2676cdd0b44fc4fc825118e510bac2c3f1e40d9) --- source3/include/local.h | 3 +++ source3/smbd/password.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/include/local.h b/source3/include/local.h index 2775453e15..fba7955902 100644 --- a/source3/include/local.h +++ b/source3/include/local.h @@ -163,5 +163,8 @@ /* shall we support browse requests via a FIFO to nmbd? */ #define ENABLE_FIFO 1 +/* keep the password server open, this uses up a aocket, but is needed + by many apps */ +#define KEEP_PASSWORD_SERVER_OPEN 1 #endif diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 863032df87..fcfe1b4a2c 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -1241,7 +1241,7 @@ BOOL check_hosts_equiv(char *user) } -static int password_client = -1; +int password_client = -1; static fstring pserver; /**************************************************************************** @@ -1405,7 +1405,7 @@ BOOL server_validate(char *buf) DEBUG(3,("password server %s accepted the password\n",pserver)); -#ifndef KEEP_PASSWORD_SERVER_OPEN +#if !KEEP_PASSWORD_SERVER_OPEN close(password_client); password_client= -1; #endif -- cgit