aboutsummaryrefslogtreecommitdiff
path: root/t/101canonical.t
diff options
context:
space:
mode:
Diffstat (limited to 't/101canonical.t')
-rw-r--r--t/101canonical.t23
1 files changed, 23 insertions, 0 deletions
diff --git a/t/101canonical.t b/t/101canonical.t
new file mode 100644
index 0000000..c698307
--- /dev/null
+++ b/t/101canonical.t
@@ -0,0 +1,23 @@
+# -*- perl -*-
+use lib qw(t lib);
+use strict;
+use Test;
+use TestLDAP;
+
+plan(tests => 1);
+
+my $cf = new TestLDAP;
+
+ok($cf->canonical(delim => ' '),
+ q{base="dc=example,dc=com" deref="never" tls_reqcert="allow" uri="ldap://ldap.example.com ldap://ldap-master.example.com:666"});
+
+
+__DATA__
+# Test config
+
+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.