Do SSL when connecting to the ldap server.
[mirror/userdir-ldap.git] / ud-host
diff --git a/ud-host b/ud-host
index e186e9a..97af1ef 100755 (executable)
--- a/ud-host
+++ b/ud-host
@@ -241,9 +241,9 @@ for (switch, val) in options:
       FingerPrints = 1
 
 if (BindUser != ""):
-   l = passwdAccessLDAP(LDAPServer, BaseDn, BindUser)
+   l = passwdAccessLDAP(BaseDn, BindUser)
 else:
-   l = ldap.open(LDAPServer);
+   l = connectLDAP()
    l.simple_bind_s("","")
 
 if ListMode == 1: