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

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