1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r24503: Make 'make test TEST_LDAP=yes' pass on Fedora 7, by trying more

combinations of modules.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2007-08-17 05:22:58 +00:00 committed by Gerald (Jerry) Carter
parent fb1e1eebda
commit 481a3f0b2a

View File

@ -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");