Repository: mina-sshd
Updated Branches:
  refs/heads/master 4914247b8 -> c951aa2e1


[SSHD-705] GSSAPI auth is broken after changing username with getUserName()


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/c951aa2e
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/c951aa2e
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/c951aa2e

Branch: refs/heads/master
Commit: c951aa2e108e1fcf64bcef8921086a10b17ff5a4
Parents: 4914247
Author: 软件工程师李飛 <li...@7v1.net>
Authored: Thu Oct 13 18:52:12 2016 +0300
Committer: Lyor Goldstein <lyor.goldst...@gmail.com>
Committed: Thu Oct 13 18:52:12 2016 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/sshd/server/auth/gss/UserAuthGSS.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/c951aa2e/sshd-core/src/main/java/org/apache/sshd/server/auth/gss/UserAuthGSS.java
----------------------------------------------------------------------
diff --git 
a/sshd-core/src/main/java/org/apache/sshd/server/auth/gss/UserAuthGSS.java 
b/sshd-core/src/main/java/org/apache/sshd/server/auth/gss/UserAuthGSS.java
index b8b314a..1b43e51 100644
--- a/sshd-core/src/main/java/org/apache/sshd/server/auth/gss/UserAuthGSS.java
+++ b/sshd-core/src/main/java/org/apache/sshd/server/auth/gss/UserAuthGSS.java
@@ -131,7 +131,7 @@ public class UserAuthGSS extends AbstractUserAuth {
 
                 
msgbuf.putBytes(ValidateUtils.checkNotNullAndNotEmpty(session.getSessionId(), 
"No current session ID"));
                 msgbuf.putByte(SshConstants.SSH_MSG_USERAUTH_REQUEST);
-                msgbuf.putString(getUsername());
+                msgbuf.putString(super.getUsername());
                 msgbuf.putString(getService());
                 msgbuf.putString(getName());
 

Reply via email to