ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r1429602 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java
Date Sun, 06 Jan 2013 21:46:33 GMT
Author: antoine
Date: Sun Jan  6 21:46:32 2013
New Revision: 1429602

URL: http://svn.apache.org/viewvc?rev=1429602&view=rev
Log:
PR 53437prevent ssh tasks from prompting for kerberos username/password under Java 7

Modified:
    ant/core/trunk/WHATSNEW
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java

Modified: ant/core/trunk/WHATSNEW
URL: http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=1429602&r1=1429601&r2=1429602&view=diff
==============================================================================
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Sun Jan  6 21:46:32 2013
@@ -1,4 +1,4 @@
-Changes from Ant 1.8.4 TO Ant 1.9.0
+    Changes from Ant 1.8.4 TO Ant 1.9.0
 ===================================
 
 Changes that could break older environments:
@@ -59,6 +59,9 @@ Fixed bugs:
  * <get> now supports HTTP redirects using status code 307.
    Bugzilla Report 54374.
 
+ * ssh tasks prompt for kerberos username/password under Java 7
+   Bugzilla Report 53437.
+
 Other changes:
 --------------
 

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java?rev=1429602&r1=1429601&r2=1429602&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHBase.java Sun Jan
 6 21:46:32 2013
@@ -218,6 +218,8 @@ public abstract class SSHBase extends Ta
         }
 
         Session session = jsch.getSession(userInfo.getName(), host, port);
+        session.setConfig("PreferredAuthentications",
+                "publickey,keyboard-interactive,password");
         session.setUserInfo(userInfo);
         log("Connecting to " + host + ":" + port);
         session.connect();



Mime
View raw message