aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-05-03 20:49:28 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-05-03 20:49:28 +0000
commitadb75a7908bd19535ca6ba1d8cc6363a3a1530c8 (patch)
treed4b50e581d61cfe574ff164c848dae7000066642
parent0833f46a1926dfe84abf75ad21e8fdf2e1d0736f (diff)
downloadmgarepo-adb75a7908bd19535ca6ba1d8cc6363a3a1530c8.tar
mgarepo-adb75a7908bd19535ca6ba1d8cc6363a3a1530c8.tar.gz
mgarepo-adb75a7908bd19535ca6ba1d8cc6363a3a1530c8.tar.bz2
mgarepo-adb75a7908bd19535ca6ba1d8cc6363a3a1530c8.tar.xz
mgarepo-adb75a7908bd19535ca6ba1d8cc6363a3a1530c8.zip
Changed the configuration field ldap-format to ldap-resultformat, more
consistent with ldap-filterformat.
-rw-r--r--RepSys/plugins/ldapusers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/RepSys/plugins/ldapusers.py b/RepSys/plugins/ldapusers.py
index e3f696c..7eb6a09 100644
--- a/RepSys/plugins/ldapusers.py
+++ b/RepSys/plugins/ldapusers.py
@@ -26,7 +26,7 @@ options in the [global] section of repsys.conf:
(&(objectClass=inetOrgPerson)(uid=john))
- ldap-format [optional] [default: $cn <$mail>]
+ ldap-resultformat [optional] [default: $cn <$mail>]
This is a python template string. This string will be
formatted using one dict object containing the fields
returned in the LDAP search, for example:
@@ -90,7 +90,7 @@ def make_handler():
bindpw = config.get("global", "ldap-bindpw", "")
filterformat = config.get("global", "ldap-filterformat",
"(&(objectClass=inetOrgPerson)(uid=$username))", raw=1)
- format = config.get("global", "ldap-format", "$cn <$mail>", raw=1)
+ format = config.get("global", "ldap-resultformat", "$cn <$mail>", raw=1)
if server is None:
def dummy_wrapper(section, option=None, default=None, walk=False):
@@ -130,7 +130,7 @@ def make_handler():
if found:
dn, entry = found[0]
entry = strip_entry(entry)
- value = interpolate("ldap-format", format, entry)
+ value = interpolate("ldap-resultformat", format, entry)
else:
# issue a warning?
value = config.get(section, option, default, wrap=False)