diff options
| author | Mark Murray <markm@FreeBSD.org> | 2001-07-14 08:38:24 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2001-07-14 08:38:24 +0000 |
| commit | 6fd676c9823d127fc3eaa454d1327a6e23dad32b (patch) | |
| tree | 904d2af18d4bafeb919e898f46c8282c9cc1fbfd /lib/libpam | |
| parent | 906123799906e58d0e61408a22b9452bc9926c2a (diff) | |
Notes
Diffstat (limited to 'lib/libpam')
| -rw-r--r-- | lib/libpam/modules/pam_opie/pam_opie.8 | 3 | ||||
| -rw-r--r-- | lib/libpam/modules/pam_opie/pam_opie.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpam/modules/pam_opie/pam_opie.8 b/lib/libpam/modules/pam_opie/pam_opie.8 index 3895eb557a3c..996d1d39f736 100644 --- a/lib/libpam/modules/pam_opie/pam_opie.8 +++ b/lib/libpam/modules/pam_opie/pam_opie.8 @@ -69,7 +69,7 @@ level. This option will require the user to authenticate themself as the user given by -.Xr getuid 2 , +.Xr getlogin 2 , not as the account they are attempting to access. This is primarily for services like .Xr su 1 , @@ -84,6 +84,7 @@ default OPIE password database. .El .Sh SEE ALSO .Xr passwd 1 , +.Xr getlogin 2 , .Xr opiechallenge 3 , .Xr syslog 3 , .Xr opie 4 , diff --git a/lib/libpam/modules/pam_opie/pam_opie.c b/lib/libpam/modules/pam_opie/pam_opie.c index 566a6949e0a4..dc5c8144fe24 100644 --- a/lib/libpam/modules/pam_opie/pam_opie.c +++ b/lib/libpam/modules/pam_opie/pam_opie.c @@ -74,7 +74,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv) user = NULL; if (pam_test_option(&options, PAM_OPT_AUTH_AS_SELF, NULL)) { - pwd = getpwuid(getuid()); + pwd = getpwnam(getlogin()); user = pwd->pw_name; } else { |
