Update the provision scripts and selftest for LDAP
[samba.git] / source / selftest / target / Samba4.pm
index 48fda1759930477d67ff9f2d53c6c29e8084a1e2..2b94135355d02d854a0d737927e18e25ad9f7e24 100644 (file)
@@ -617,6 +617,14 @@ sub provision($$$$$$)
        read only = no
        ntvfs handler = simple
 
+[sysvol]
+       path = $lockdir/sysvol
+       read only = yes
+
+[netlogon]
+       path = $lockdir/sysvol/$dnsname/scripts
+       read only = no
+
 [cifsposix]
        copy = simple
        ntvfs handler = cifsposix   
@@ -746,7 +754,7 @@ nogroup:x:65534:nobody
        if (defined($self->{ldap})) {
 
                 push (@provision_options, "--ldap-backend=$ldap_uri");
-               system("$self->{bindir}/smbscript $self->{setupdir}/provision-backend $configuration --ldap-manager-pass=$password --root=$unix_name --realm=$realm --host-name=$netbiosname --ldap-backend-type=$self->{ldap}>&2") == 0 or die("backend provision failed");
+               system("$self->{bindir}/smbpython $self->{setupdir}/provision-backend $configuration --ldap-manager-pass=$password --root=$unix_name --realm=$realm --domain=$domain --host-name=$netbiosname --ldap-backend-type=$self->{ldap}>&2") == 0 or die("backend provision failed");
 
                if ($self->{ldap} eq "openldap") {
                       ($ret->{SLAPD_CONF}, $ret->{OPENLDAP_PIDFILE}) = $self->mk_openldap($ldapdir, $configuration) or die("Unable to create openldap directories");