Bugzilla – Attachment 2080 Details for
Bug 937
ssh2 pubkey auth broken by user:style syntax
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Support Pubkeys with :style loginname
stylesupport.patch (text/plain), 1.07 KB, created by
Patric Stout
on 2011-09-10 18:25:49 AEST
(
hide
)
Description:
Support Pubkeys with :style loginname
Filename:
MIME Type:
Creator:
Patric Stout
Created:
2011-09-10 18:25:49 AEST
Size:
1.07 KB
patch
obsolete
>--- auth2.c 2011-09-10 08:16:50.000000000 +0200 >+++ orig/auth2.c 2011-09-10 08:09:29.000000000 +0200 >@@ -229,6 +229,8 @@ > debug("userauth-request for user %s service %s method %s", user, service, method); > debug("attempt %d failures %d", authctxt->attempt, authctxt->failures); > >+ if (authctxt->attempt == 0) authctxt->user = xstrdup(user); >+ > if ((role = strchr(user, '/')) != NULL) > *role++ = 0; > >@@ -240,7 +242,6 @@ > if (authctxt->attempt++ == 0) { > /* setup auth context */ > authctxt->pw = PRIVSEP(getpwnamallow(user)); >- authctxt->user = xstrdup(user); > if (authctxt->pw && strcmp(service, "ssh-connection")==0) { > authctxt->valid = 1; > debug2("input_userauth_request: setting up authctxt for %s", user); >@@ -263,7 +264,7 @@ > if (use_privsep) > mm_inform_authserv(service, style, role); > userauth_banner(); >- } else if (strcmp(user, authctxt->user) != 0 || >+ } else if (strcmp(user, authctxt->pw->pw_name) != 0 || > strcmp(service, authctxt->service) != 0) { > packet_disconnect("Change of username or service not allowed: " > "(%s,%s) -> (%s,%s)",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 937
:
2080
|
2081