summaryrefslogtreecommitdiff
path: root/source4/selftest
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-08-17 05:22:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:02 -0500
commit20e9fe6b503aaba9367ee82a1d4435c1b68097ce (patch)
tree5b4b6e195fad072028e74aa573c90511cded43eb /source4/selftest
parent1133678c346d51f669892973a4c99982c7b28f86 (diff)
downloadsamba-20e9fe6b503aaba9367ee82a1d4435c1b68097ce.tar.gz
samba-20e9fe6b503aaba9367ee82a1d4435c1b68097ce.tar.bz2
samba-20e9fe6b503aaba9367ee82a1d4435c1b68097ce.zip
r24503: Make 'make test TEST_LDAP=yes' pass on Fedora 7, by trying more
combinations of modules. Andrew Bartlett (This used to be commit 481a3f0b2ac217b0db2f481479d655910514b56c)
Diffstat (limited to 'source4/selftest')
-rw-r--r--source4/selftest/env/Samba4.pm20
1 files changed, 20 insertions, 0 deletions
diff --git a/source4/selftest/env/Samba4.pm b/source4/selftest/env/Samba4.pm
index 597cc5d50c..11afc0e6f3 100644
--- a/source4/selftest/env/Samba4.pm
+++ b/source4/selftest/env/Samba4.pm
@@ -232,6 +232,26 @@ moduleload syncprov
close(CONF);
}
+ if (system("slaptest -u -f $slapd_conf >&2") != 0) {
+ open(CONF, ">$modconf");
+ # enable slapd modules (Fedora layout)
+ print CONF "
+modulepath /usr/lib/openldap
+moduleload syncprov
+";
+ close(CONF);
+ }
+
+ if (system("slaptest -u -f $slapd_conf >&2") != 0) {
+ open(CONF, ">$modconf");
+ # enable slapd modules (Fedora x86_64 layout)
+ print CONF "
+modulepath /usr/lib64/openldap
+moduleload syncprov
+";
+ close(CONF);
+ }
+
system("slaptest -u -f $slapd_conf") == 0 or die("slaptest still fails after adding modules");