Blame SOURCES/authconfig-6.2.8-initgroups.patch

977b74
diff -up authconfig-6.2.8/authinfo.py.initgroups authconfig-6.2.8/authinfo.py
977b74
--- authconfig-6.2.8/authinfo.py.initgroups	2016-06-29 18:01:35.000000000 +0200
977b74
+++ authconfig-6.2.8/authinfo.py	2016-08-31 12:31:26.880677634 +0200
977b74
@@ -2030,6 +2030,7 @@ class AuthInfo:
977b74
 		# Open the file.  Bail if it's not there or there's some problem
977b74
 		# reading it.
977b74
 		nssconfig = ""
977b74
+		initgroups = ""
977b74
 
977b74
 		try:
977b74
 			f = open(all_configs[CFG_NSSWITCH].origPath, "r")
977b74
@@ -2038,7 +2039,7 @@ class AuthInfo:
977b74
 
977b74
 		for line in f:
977b74
 			line = line.strip()
977b74
-			
977b74
+
977b74
 			value = matchKey(line, "passwd:")
977b74
 			if value:
977b74
 				nssconfig = value
977b74
@@ -2059,6 +2060,10 @@ class AuthInfo:
977b74
 					dnspos = checkNSS(value, "dns")
977b74
 					if nispos != None and dnspos != None:
977b74
 						self.setParam("preferDNSinHosts", dnspos < nispos, ref)
977b74
+				else:
977b74
+					value = matchKey(line, "initgroups:")
977b74
+					if value:
977b74
+						initgroups = value
977b74
 
977b74
 		if nssconfig:
977b74
 			nssmap = (('Compat', 'compat'), ('DB', 'db'),
977b74
@@ -2068,6 +2073,8 @@ class AuthInfo:
977b74
 			for attr, nssentry in nssmap:
977b74
 				if checkNSS(nssconfig, nssentry):
977b74
 					self.setParam('enable' + attr, True, ref)
977b74
+			if initgroups and checkNSS(nssconfig, 'sss') and not checkNSS(initgroups, 'sss'):
977b74
+				self.inconsistentAttrs.append('implicitSSSD')
977b74
 
977b74
 			self.setParam("implicitSSSD", bool(checkNSS(nssconfig, "sss")), ref)
977b74
 		f.close()