selftest: Bind rfc2307 tests to exactly one server
authorAndrew Bartlett <abartlet@samba.org>
Sat, 1 Jul 2017 09:44:38 +0000 (21:44 +1200)
committerStefan Metzmacher <metze@samba.org>
Sun, 2 Jul 2017 15:35:20 +0000 (17:35 +0200)
The tests make changes to the DC, do not wait for replication, then expect
those to be reflected in the client.  If they bind to another server this
will not hold true.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
selftest/target/Samba3.pm

index 68b98287f220b2da7cd570bb3875560bcf36720e..abf1b7b2e40dace485de651412511e12f6969739 100755 (executable)
@@ -530,6 +530,8 @@ sub setup_admember_rfc2307($$$$)
         idmap config $dcvars->{DOMAIN} : ldap_server = ad
         idmap config $dcvars->{DOMAIN} : bind_path_user = ou=idmap,dc=samba,dc=example,dc=com
         idmap config $dcvars->{DOMAIN} : bind_path_group = ou=idmap,dc=samba,dc=example,dc=com
+
+        password server = $dcvars->{SERVER}
 ";
 
        my $ret = $self->provision($prefix, $dcvars->{DOMAIN},