turn on KEEP_PASSWORD_SERVER_OPEN by default
authorAndrew Tridgell <tridge@samba.org>
Sun, 5 May 1996 11:25:07 +0000 (11:25 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 5 May 1996 11:25:07 +0000 (11:25 +0000)
(This used to be commit d2676cdd0b44fc4fc825118e510bac2c3f1e40d9)

source3/include/local.h
source3/smbd/password.c

index 2775453e15097a66bf03a6f7ca9e5ebba580afed..fba795590214d6f9caf383881105245e2872554b 100644 (file)
 /* 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
index 863032df8728afbad40a14a7daa6e157e034b46b..fcfe1b4a2ceed66aa2b6c063f3ed82a78508a24a 100644 (file)
@@ -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