Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (22 sloc) 0.783 kb
#!perl
BEGIN {
require "t/common.pl";
start_server();
}
my $num_tests = @URL * 5 + 7;
print "1..$num_tests\n";
$ldap = client();
ok($ldap, "client");
$mesg = $ldap->bind($MANAGERDN, password => $PASSWD);
ok(!$mesg->code, "bind: " . $mesg->code . ": " . $mesg->error);
ok(ldif_populate($ldap, "data/50-in.ldif"), "data/50-in.ldif");
$mesg = $ldap->search(base => $BASEDN, filter => 'objectclass=*');
ok(!$mesg->code, "search: " . $mesg->code . ": " . $mesg->error);
compare_ldif("50",$mesg,$mesg->sorted);
for my $url (@URL) {
$ldap = client(url => $url);
ok($ldap, "$url client");
$mesg = $ldap->search(base => $BASEDN, filter => 'objectclass=*');
ok(!$mesg->code, "search: " . $mesg->code . ": " . $mesg->error);
compare_ldif("50",$mesg,$mesg->sorted);
}
Jump to Line
Something went wrong with that request. Please try again.