summaryrefslogtreecommitdiffstats
path: root/selftest/selftest.pl
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-03-04 13:52:52 +0100
committerStefan Metzmacher <metze@samba.org>2014-04-17 14:56:06 +0200
commit5d7609cd789ceac98f1543d22c40201dde71f7a1 (patch)
treea2fe06c84128462160b9d4538715867ddfcbd2cb /selftest/selftest.pl
parent11e87cdbb694cf542f3b7633326005abd49e43f1 (diff)
downloadsamba-5d7609cd789ceac98f1543d22c40201dde71f7a1.tar.gz
samba-5d7609cd789ceac98f1543d22c40201dde71f7a1.tar.xz
samba-5d7609cd789ceac98f1543d22c40201dde71f7a1.zip
selftest: Disable loading ldb modules with RTLD_DEEPBIND.
This is needed in order to allow the ldb_*ldap module to work with a preloaded socket wrapper. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'selftest/selftest.pl')
-rwxr-xr-xselftest/selftest.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index 3c07841a7b..10cc9fd9b1 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -367,6 +367,12 @@ print "LD_PRELOAD=$ENV{LD_PRELOAD}\n";
# Enable uid_wrapper globally
$ENV{UID_WRAPPER} = 1;
+# Disable RTLD_DEEPBIND hack for Samba bind dlz module
+#
+# This is needed in order to allow the ldb_*ldap module
+# to work with a preloaded socket wrapper.
+$ENV{LDB_MODULES_DISABLE_DEEPBIND} = 1;
+
my $socket_wrapper_dir;
if ($opt_socket_wrapper) {
$socket_wrapper_dir = SocketWrapper::setup_dir("$prefix_abs/w", $opt_socket_wrapper_pcap);