Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libtelnet PAM may change the user name during the authen...



details:   https://anonhg.NetBSD.org/src/rev/b41b88cfdc5c
branches:  trunk
changeset: 580717:b41b88cfdc5c
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu May 05 22:43:56 2005 +0000

description:
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).

diffstat:

 lib/libtelnet/sra.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r c16e49ca952b -r b41b88cfdc5c lib/libtelnet/sra.c
--- a/lib/libtelnet/sra.c       Thu May 05 22:31:13 2005 +0000
+++ b/lib/libtelnet/sra.c       Thu May 05 22:43:56 2005 +0000
@@ -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 @@
                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;



Home | Main Index | Thread Index | Old Index