aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-05-03 20:48:13 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-05-03 20:48:13 +0000
commit566f7d59b539ae76271486c5deb2fab738e67bba (patch)
tree425349fef49413cc73d4e0de323ca1d89abf6ee8 /RepSys
parent2779c2048793ba84e291bffc6554f5cc5cbe39e2 (diff)
downloadmgarepo-566f7d59b539ae76271486c5deb2fab738e67bba.tar
mgarepo-566f7d59b539ae76271486c5deb2fab738e67bba.tar.gz
mgarepo-566f7d59b539ae76271486c5deb2fab738e67bba.tar.bz2
mgarepo-566f7d59b539ae76271486c5deb2fab738e67bba.tar.xz
mgarepo-566f7d59b539ae76271486c5deb2fab738e67bba.zip
Fixed the option "ldap-port", which was not being used.
Diffstat (limited to 'RepSys')
-rw-r--r--RepSys/plugins/ldapusers.py4
1 files 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: