aboutsummaryrefslogtreecommitdiff
path: root/t/003direct.t
diff options
context:
space:
mode:
Diffstat (limited to 't/003direct.t')
-rw-r--r--t/003direct.t22
1 files changed, 22 insertions, 0 deletions
diff --git a/t/003direct.t b/t/003direct.t
new file mode 100644
index 0000000..a134eec
--- /dev/null
+++ b/t/003direct.t
@@ -0,0 +1,22 @@
+# -*- perl -*-
+use lib qw(lib);
+use strict;
+use Test;
+use Config::Parser::ldap;
+use File::Basename;
+
+plan(tests => 3);
+
+my $cf = new Config::Parser::ldap(filename => basename($0),
+ fh => \*main::DATA);
+
+ok($cf->base,q{dc=example,dc=com});
+ok($cf->TLS_REQCERT,q{allow});
+ok(!$cf->tls_cert);
+
+__DATA__
+BASE dc=example,dc=com
+URI ldap://ldap.example.com ldap://ldap-master.example.com:666
+TLS_REQCERT allow
+DEREF never
+

Return to:

Send suggestions and report system problems to the System administrator.