PAM may change the user name during the authentication process;
ensure that we deal with this so that SRA authenticated logins will pass the changed user name to login(1).
This commit is contained in:
parent
260edcc4db
commit
f4ee085480
@ -32,7 +32,7 @@
|
||||
#ifdef notdef
|
||||
__FBSDID("$FreeBSD: src/contrib/telnet/libtelnet/sra.c,v 1.16 2002/05/06 09:48:02 markm Exp $");
|
||||
#else
|
||||
__RCSID("$NetBSD: sra.c,v 1.4 2005/05/05 02:20:45 lukem Exp $");
|
||||
__RCSID("$NetBSD: sra.c,v 1.5 2005/05/05 22:43:56 lukem Exp $");
|
||||
#endif
|
||||
|
||||
#ifdef SRA
|
||||
@ -210,6 +210,8 @@ sra_is(Authenticator *ap, unsigned char *data, int cnt)
|
||||
valid = check_user(user,pass);
|
||||
|
||||
if(valid) {
|
||||
/* PAM (via check_user()) may have changed 'user' */
|
||||
auth_encrypt_user(user);
|
||||
Data(ap, SRA_ACCEPT, (void *)0, 0);
|
||||
skey.data = ck;
|
||||
skey.type = SK_DES;
|
||||
|
Loading…
Reference in New Issue
Block a user