Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/openpam/lib Deal with the NUSER addition.
details: https://anonhg.NetBSD.org/src/rev/44901387cd17
branches: trunk
changeset: 574515:44901387cd17
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 03 02:07:07 2005 +0000
description:
Deal with the NUSER addition.
diffstat:
dist/openpam/lib/pam_get_item.c | 6 +++++-
dist/openpam/lib/pam_set_item.c | 1 +
2 files changed, 6 insertions(+), 1 deletions(-)
diffs (41 lines):
diff -r 55237b93d7aa -r 44901387cd17 dist/openpam/lib/pam_get_item.c
--- a/dist/openpam/lib/pam_get_item.c Thu Mar 03 02:06:42 2005 +0000
+++ b/dist/openpam/lib/pam_get_item.c Thu Mar 03 02:07:07 2005 +0000
@@ -54,7 +54,8 @@
"PAM_REPOSITORY",
"PAM_AUTHTOK_PROMPT",
"PAM_OLDAUTHTOK_PROMPT",
- "PAM_SOCKADDR"
+ "PAM_SOCKADDR",
+ "PAM_NUSER"
};
/*
@@ -87,6 +88,7 @@
case PAM_OLDAUTHTOK_PROMPT:
case PAM_REPOSITORY:
case PAM_SOCKADDR:
+ case PAM_NUSER:
*item = pamh->item[item_type];
RETURNC(PAM_SUCCESS);
/*NOTREACHED*/
@@ -140,6 +142,8 @@
* expired authentication token prior to changing it.
* =PAM_SOCKADDR:
* The sockaddr_storage of the applicants's host.
+ * =PAM_NUSER:
+ * The "nested" user if this is a login on top of a previous one.
*
* See =pam_start for a description of =struct pam_conv.
*
diff -r 55237b93d7aa -r 44901387cd17 dist/openpam/lib/pam_set_item.c
--- a/dist/openpam/lib/pam_set_item.c Thu Mar 03 02:06:42 2005 +0000
+++ b/dist/openpam/lib/pam_set_item.c Thu Mar 03 02:07:07 2005 +0000
@@ -75,6 +75,7 @@
case PAM_USER_PROMPT:
case PAM_AUTHTOK_PROMPT:
case PAM_OLDAUTHTOK_PROMPT:
+ case PAM_NUSER:
if (*slot != NULL)
osize = strlen(*slot) + 1;
if (item != NULL)
Home |
Main Index |
Thread Index |
Old Index