Blame SOURCES/authconfig-6.2.8-sssd-smartcard-2.patch

977b74
From 14f70ded1115f82d689b2fb08accf572f52c52ed Mon Sep 17 00:00:00 2001
977b74
From: Sumit Bose <sbose@redhat.com>
977b74
Date: Sun, 5 Mar 2017 15:07:23 +0100
977b74
Subject: [PATCH 6/7]  Show a warning if --enablerequiresmartcard is used with
977b74
 --smartcardmodule=sssd
977b74
977b74
---
977b74
 authconfig.py | 4 ++++
977b74
 1 file changed, 4 insertions(+)
977b74
977b74
diff --git a/authconfig.py b/authconfig.py
977b74
index 35b29997c2a004d786d66a0c52f6fd4fc9edd08d..ca7cfe5d51fb3483f6822b4ca24c49072d5f9adf 100755
977b74
--- a/authconfig.py
977b74
+++ b/authconfig.py
977b74
@@ -538,6 +538,10 @@ class Authconfig:
977b74
 				self.printError(_("Bad smart card removal action specified."))
977b74
 				self.info.smartcardAction = ""
977b74
 
977b74
+		if self.options.enablerequiresmartcard and self.options.smartcardmodule == "sssd":
977b74
+			self.printError(_("--enablerequiresmartcard is not supported for module 'sssd', option is ignored."))
977b74
+			self.options.enablerequiresmartcard = False
977b74
+
977b74
 		if not self.options.passalgo:
977b74
 			if self.options.enablemd5:
977b74
 				self.info.passwordAlgorithm = "md5"
977b74
-- 
977b74
2.9.3
977b74