Blame SOURCES/authconfig-6.2.8-ldapbase.patch
|
|
bf4f0e |
diff -up authconfig-6.2.8/authinfo.py.ldapbase authconfig-6.2.8/authinfo.py
|
|
|
bf4f0e |
--- authconfig-6.2.8/authinfo.py.ldapbase 2014-09-29 15:15:55.000000000 +0200
|
|
|
bf4f0e |
+++ authconfig-6.2.8/authinfo.py 2014-09-29 15:27:57.504661297 +0200
|
|
|
bf4f0e |
@@ -188,6 +188,13 @@ def checkDN(value):
|
|
|
bf4f0e |
return False
|
|
|
bf4f0e |
return True
|
|
|
bf4f0e |
|
|
|
bf4f0e |
+def matchBaseLine(line, key):
|
|
|
bf4f0e |
+ value = matchKey(line, key)
|
|
|
bf4f0e |
+ if value:
|
|
|
bf4f0e |
+ return checkDN(value)
|
|
|
bf4f0e |
+ else:
|
|
|
bf4f0e |
+ return False
|
|
|
bf4f0e |
+
|
|
|
bf4f0e |
# Check for a string in an nss configuration line.
|
|
|
bf4f0e |
def checkNSS(configuration, candidate):
|
|
|
bf4f0e |
lst = configuration.split(":",1)
|
|
|
bf4f0e |
@@ -2636,7 +2643,7 @@ class AuthInfo:
|
|
|
bf4f0e |
elif matchLine(ls, host):
|
|
|
bf4f0e |
if self.ldapServer:
|
|
|
bf4f0e |
output += "#" + line
|
|
|
bf4f0e |
- elif matchLine(ls, base):
|
|
|
bf4f0e |
+ elif matchBaseLine(ls, base):
|
|
|
bf4f0e |
# If it's a 'base' line, insert ours instead.
|
|
|
bf4f0e |
if not wrotebasedn and self.ldapBaseDN:
|
|
|
bf4f0e |
output += base + " "
|