r89629 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89628‎ | r89629 | r89630 >
Date:07:28, 7 June 2011
Author:laner
Status:ok
Tags:
Comment:
Keywords in /etc/ldap/ldap.conf and /etc/ldap.conf aren't case sensitive, ensure we parse in a case insensitive way.
Modified paths:
  • /trunk/tools/subversion/user-management/ldapsupportlib.py (modified) (history)

Diff [purge]

Index: trunk/tools/subversion/user-management/ldapsupportlib.py
@@ -83,7 +83,7 @@
8484 def getLdapInfo(self, attr, conffile="/etc/ldap.conf"):
8585 f = open(conffile)
8686 for line in f:
87 - if line.split()[0] == attr:
 87+ if line.split()[0].lower() == attr.lower():
8888 return line.split(None, 1)[1].strip()
8989 break
9090

Status & tagging log