Blame SOURCES/authconfig-6.2.8-joinpassword.patch

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