aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/plugins
diff options
context:
space:
mode:
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", "")