From 566f7d59b539ae76271486c5deb2fab738e67bba Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Thu, 3 May 2007 20:48:13 +0000 Subject: Fixed the option "ldap-port", which was not being used. --- RepSys/plugins/ldapusers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RepSys/plugins/ldapusers.py b/RepSys/plugins/ldapusers.py index 3b83ae2..34551ea 100644 --- a/RepSys/plugins/ldapusers.py +++ b/RepSys/plugins/ldapusers.py @@ -80,7 +80,7 @@ def interpolate(optname, format, data): def make_handler(): server = config.get("global", "ldap-server") - port = config.get("global", "ldap-port") + port = config.get("global", "ldap-port", 389) basedn = config.get("global", "ldap-base") binddn = config.get("global", "ldap-binddn") bindpw = config.get("global", "ldap-bindpw", "") @@ -111,7 +111,7 @@ def make_handler(): return value try: - l = ldap.open(server) + l = ldap.open(server, port) if binddn: l.bind(binddn, bindpw) except ldap.LDAPError, e: -- cgit v1.2.1