From bb28432a1586891f9edb791729d6027676e05231 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Fri, 4 May 2007 14:15:27 +0000 Subject: The option ldap-port was not being converted to integer. Fixed. --- RepSys/plugins/ldapusers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RepSys/plugins/ldapusers.py b/RepSys/plugins/ldapusers.py index 371a2a8..b43862b 100644 --- a/RepSys/plugins/ldapusers.py +++ b/RepSys/plugins/ldapusers.py @@ -96,7 +96,11 @@ def used_attributes(format): def make_handler(): server = config.get("global", "ldap-server") - port = config.get("global", "ldap-port", 389) + try: + port = int(config.get("global", "ldap-port", 389)) + except ValueError: + raise Error, "the option ldap-port requires an integer, please "\ + "check your configuration files" basedn = config.get("global", "ldap-base") binddn = config.get("global", "ldap-binddn") bindpw = config.get("global", "ldap-bindpw", "") -- cgit v1.2.1