Blame SOURCES/authconfig-6.2.8-altfiles.patch

ee2f06
diff -up authconfig-6.2.8/authinfo.py.altfiles authconfig-6.2.8/authinfo.py
ee2f06
--- authconfig-6.2.8/authinfo.py.altfiles	2014-09-29 15:27:57.000000000 +0200
ee2f06
+++ authconfig-6.2.8/authinfo.py	2014-09-29 15:31:41.371715194 +0200
ee2f06
@@ -1333,6 +1333,9 @@ class AuthInfo:
ee2f06
 		self.preferDNSinHosts = None
ee2f06
 		self.enableSSSD = None
ee2f06
 		self.enableIPAv2 = None
ee2f06
+                # This one we don't have a config entry, we just
ee2f06
+                # preserve the entry if we see it.
ee2f06
+		self.enableAltfiles = None
ee2f06
 
ee2f06
 		# Authentication setup.
ee2f06
 		self.enableAFS = None
ee2f06
@@ -2042,7 +2045,7 @@ class AuthInfo:
ee2f06
 		if nssconfig:
ee2f06
 			nssmap = (('Compat', 'compat'), ('DB', 'db'),
ee2f06
 				  ('Directories', 'directories'), ('Hesiod', 'hesiod'),
ee2f06
-				  ('LDAP', 'ldap'), ('NIS', 'nis'),
ee2f06
+				  ('LDAP', 'ldap'), ('NIS', 'nis'), ('Altfiles', 'altfiles'),
ee2f06
 				  ('NIS3', 'nisplus'), ('Winbind', 'winbind'))
ee2f06
 			for attr, nssentry in nssmap:
ee2f06
 				if checkNSS(nssconfig, nssentry):
ee2f06
@@ -3583,6 +3586,8 @@ class AuthInfo:
ee2f06
 			if self.enableDB:
ee2f06
 				normal += " db"
ee2f06
 			normal += " files"
ee2f06
+                        if self.enableAltfiles:
ee2f06
+                                normal += " altfiles"
ee2f06
 			services = normal
ee2f06
 			if self.enableDirectories:
ee2f06
 				normal += " directories"