Blame SOURCES/authconfig-6.2.8-joinpassword.patch

ee2f06
diff -up authconfig-6.2.8/authinfo.py.joinpassword authconfig-6.2.8/authinfo.py
ee2f06
--- authconfig-6.2.8/authinfo.py.joinpassword	2015-07-03 12:47:44.993864700 +0200
ee2f06
+++ authconfig-6.2.8/authinfo.py	2015-07-03 12:53:21.451618592 +0200
ee2f06
@@ -4296,11 +4296,12 @@ class AuthInfo:
ee2f06
 			
ee2f06
 			if echo:
ee2f06
 				sys.stderr.write("[%s]\n" % cmd)
ee2f06
+			if self.joinPassword or not echo:
ee2f06
+				status, error = feedFork(cmd, echo, "sword:", self.joinPassword)
ee2f06
+			else:
ee2f06
 				child = Popen([cmd], shell=True)
ee2f06
 				child.communicate()
ee2f06
 				status = child.returncode
ee2f06
-			else:
ee2f06
-				status, error = feedFork(cmd, echo, "sword:", self.joinPassword)
ee2f06
 			if echo:
ee2f06
 				if status != 0:
ee2f06
 					self.messageCB(_("Winbind domain join was not successful."))