Repository: mina-sshd Updated Branches: refs/heads/master b3d255464 -> 1a0409ee8
Do not replace username with identity in UserAuthGSS Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/1a0409ee Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/1a0409ee Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/1a0409ee Branch: refs/heads/master Commit: 1a0409ee887907c07082170d5af294d8b2183d71 Parents: b3d2554 Author: Dmitry Litvintsev <[email protected]> Authored: Sun May 27 10:51:40 2018 +0300 Committer: Goldstein Lyor <[email protected]> Committed: Sun May 27 10:52:00 2018 +0300 ---------------------------------------------------------------------- .../java/org/apache/sshd/server/auth/gss/UserAuthGSS.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/1a0409ee/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 c47e432..988e829 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 @@ -130,7 +130,7 @@ public class UserAuthGSS extends AbstractUserAuth { Buffer msgbuf = new ByteArrayBuffer(); msgbuf.putBytes(ValidateUtils.checkNotNullAndNotEmpty(session.getSessionId(), "No current session ID")); msgbuf.putByte(SshConstants.SSH_MSG_USERAUTH_REQUEST); - msgbuf.putString(super.getUsername()); + msgbuf.putString(getUsername()); msgbuf.putString(getService()); msgbuf.putString(getName()); @@ -180,11 +180,6 @@ public class UserAuthGSS extends AbstractUserAuth { } } - @Override - public String getUsername() { - return identity != null ? identity : super.getUsername(); - } - /** * Free any system resources used by the module. */
