aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/plugins
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-05-04 14:15:27 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-05-04 14:15:27 +0000
commitbb28432a1586891f9edb791729d6027676e05231 (patch)
tree3a9d82b9e699af6039e02b81deec079e09703da6 /RepSys/plugins
parentdfa646e76fee3922bc4590296008772233546f1d (diff)
downloadmgarepo-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.py6
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", "")