File: 54dse.t

package info (click to toggle)
libnet-ldap-perl 1%3A0.4400-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,484 kB
  • sloc: perl: 13,645; sh: 16; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!perl

BEGIN {
  require "t/common.pl";
  start_server(version => 3);
}

print "1..4\n";

$ldap = client();
ok($ldap, "client");

$dse = $ldap->root_dse;
ok($dse, "dse");

$dse->dump if $dse and $ENV{TEST_VERBOSE};

my @extn = $dse->get_value('supportedExtension');

ok($dse->supported_extension(@extn), 'supported_extension');

ok(!$dse->supported_extension('foobar'), 'extension foobar');