diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/selftest/env/Samba4.pm | 16 | ||||
-rw-r--r-- | source4/setup/slapd.conf | 6 |
2 files changed, 16 insertions, 6 deletions
diff --git a/source4/selftest/env/Samba4.pm b/source4/selftest/env/Samba4.pm index 0cd9c2e2be..b074252c59 100644 --- a/source4/selftest/env/Samba4.pm +++ b/source4/selftest/env/Samba4.pm @@ -216,7 +216,7 @@ sub mk_openldap($$$) system("$self->{bindir}/ad2oLschema $configuration --option=convert:target=openldap -H $ldapdir/schema-tmp.ldb -I $self->{setupdir}/schema-map-openldap-2.3 -O $ldapdir/backend-schema.schema >&2") == 0 or die("schema conversion for OpenLDAP failed"); my $oldpath = $ENV{PATH}; - $ENV{PATH} = "/usr/local/sbin:/usr/sbin:/sbin:$ENV{PATH}"; + $ENV{PATH} = "$ENV{OPENLDAP_PATH}/usr/local/sbin:/usr/sbin:/sbin:$ENV{PATH}"; unlink($modconf); open(CONF, ">$modconf"); close(CONF); @@ -225,8 +225,18 @@ sub mk_openldap($$$) open(CONF, ">$modconf"); # enable slapd modules print CONF " +moduleload back_hdb +moduleload syncprov +"; + close(CONF); + } + + if (system("slaptest -u -f $slapd_conf >&2") != 0) { + open(CONF, ">$modconf"); + # enable slapd modules + print CONF " modulepath /usr/lib/ldap -moduleload back_bdb +moduleload back_hdb moduleload syncprov "; close(CONF); @@ -412,7 +422,7 @@ my @provision_options = ("$self->{bindir}/smbscript", "$self->{setupdir}/provisi push (@provision_options, split(' ', $configuration)); push (@provision_options, "--host-name=$netbiosname"); push (@provision_options, "--host-ip=$ifaceipv4"); -# push (@provision_options, "--quiet"); + push (@provision_options, "--quiet"); push (@provision_options, "--domain=$domain"); push (@provision_options, "--realm=$realm"); push (@provision_options, "--adminpass=$password"); diff --git a/source4/setup/slapd.conf b/source4/setup/slapd.conf index 34896d04b9..15e3610e3a 100644 --- a/source4/setup/slapd.conf +++ b/source4/setup/slapd.conf @@ -21,7 +21,7 @@ include ${LDAPDIR}/modules.conf defaultsearchbase ${DOMAINDN} -backend bdb +backend hdb database bdb suffix ${SCHEMADN} directory ${LDAPDIR}/db/schema @@ -32,7 +32,7 @@ index objectCategory eq index lDAPDisplayName eq index subClassOf eq -database bdb +database hdb suffix ${CONFIGDN} directory ${LDAPDIR}/db/config index objectClass eq @@ -45,7 +45,7 @@ index subClassOf eq index dnsRoot eq index nETBIOSName eq pres -database bdb +database hdb suffix ${DOMAINDN} rootdn ${LDAPMANAGERDN} rootpw ${LDAPMANAGERPASS} |