From adb75a7908bd19535ca6ba1d8cc6363a3a1530c8 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Thu, 3 May 2007 20:49:28 +0000 Subject: Changed the configuration field ldap-format to ldap-resultformat, more consistent with ldap-filterformat. --- RepSys/plugins/ldapusers.py | 6 +++--- 1 file 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) -- cgit v1.2.1