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

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