Do SSL when connecting to the ldap server.
[mirror/userdir-ldap.git] / ud-info
diff --git a/ud-info b/ud-info
index d099c46..e05cb86 100755 (executable)
--- a/ud-info
+++ b/ud-info
@@ -315,7 +315,7 @@ if (BindUser != ""):
    Password = getpass(BindUser + "'s password: ");
 
 # Connect to the ldap server
-l = ldap.open(LDAPServer);
+l = connectLDAP()
 UserDn = "uid=" + BindUser + "," + BaseDn;
 if (BindUser != ""):
    l.simple_bind_s(UserDn,Password);