nsswitch: Remove fallback setting of WINBINDD_SOCKET_DIR
authorAndrew Bartlett <abartlet@samba.org>
Tue, 18 Feb 2014 22:39:46 +0000 (11:39 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 5 Mar 2014 17:34:48 +0000 (18:34 +0100)
This is the original cause of the wbc NT_STATUS_OBJECT_NAME_NOT_FOUND issues in recent git master, as the
build was able to progress without the correct path being set as an override.

Andrew Bartlett

Change-Id: I1dbc7350695756356e869199b589eb781eb5c673
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Mar  5 18:34:48 CET 2014 on sn-devel-104

nsswitch/winbind_struct_protocol.h
source3/wscript_build

index 69728b6231a08f384d78f57e015a138d61088fcb..fc7aa6c93ddde766ec83853ee9ce9858aa446ec2 100644 (file)
@@ -25,12 +25,16 @@ typedef char fstring[FSTRING_LEN];
 
 #define WINBINDD_SOCKET_NAME "pipe"            /* Name of PF_UNIX socket */
 
-/* Let the build environment override the public winbindd socket location. This
- * is needed for launchd support -- jpeach.
+/* We let the build environment set the public winbindd socket
+ * location. Therefore we no longer set
+ *
+ * #define WINBINDD_SOCKET_DIR "/tmp/.winbindd"
+ *
+ * A number of different distributions set different paths, and so it
+ * needs to come from configure in Samba.  External users of this header will
+ * need to know where the path is on their system by some other
+ * mechanism.
  */
-#ifndef WINBINDD_SOCKET_DIR
-#define WINBINDD_SOCKET_DIR  "/tmp/.winbindd"  /* Name of PF_UNIX dir */
-#endif
 
 /*
  * when compiled with socket_wrapper support
index 9d3071a74cd6eee21b430c7e124caa00d4977012..ad833180aa7cd9761a515f1e913db2cb3506fb23 100755 (executable)
@@ -1231,6 +1231,7 @@ bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3,
                  NDR_OPEN_FILES
                  idmap
                  ''',
+                 cflags='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
                  install=False)
 
 bld.SAMBA3_BINARY('smbconftort',