diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-05-04 14:15:27 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-05-04 14:15:27 +0000 |
commit | bb28432a1586891f9edb791729d6027676e05231 (patch) | |
tree | 3a9d82b9e699af6039e02b81deec079e09703da6 /RepSys/plugins | |
parent | dfa646e76fee3922bc4590296008772233546f1d (diff) | |
download | mgarepo-bb28432a1586891f9edb791729d6027676e05231.tar mgarepo-bb28432a1586891f9edb791729d6027676e05231.tar.gz mgarepo-bb28432a1586891f9edb791729d6027676e05231.tar.bz2 mgarepo-bb28432a1586891f9edb791729d6027676e05231.tar.xz mgarepo-bb28432a1586891f9edb791729d6027676e05231.zip |
The option ldap-port was not being converted to integer. Fixed.
Diffstat (limited to 'RepSys/plugins')
-rw-r--r-- | RepSys/plugins/ldapusers.py | 6 |
1 files changed, 5 insertions, 1 deletions
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", "") |