summaryrefslogtreecommitdiff
path: root/lib/libpam
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2010-05-03 07:39:51 +0000
committerMartin Matuska <mm@FreeBSD.org>2010-05-03 07:39:51 +0000
commit54c7282725e84db4062a1aa3756a47b5574e1968 (patch)
treee169c005406f2479f960299e185af2d90ba1a6bf /lib/libpam
parente50d35e6c6c68e83fa329aff043d53ab84982fd3 (diff)
Notes
Diffstat (limited to 'lib/libpam')
-rw-r--r--lib/libpam/modules/pam_krb5/pam_krb5.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/libpam/modules/pam_krb5/pam_krb5.c b/lib/libpam/modules/pam_krb5/pam_krb5.c
index 9623a17191f0..439fcf9f1a24 100644
--- a/lib/libpam/modules/pam_krb5/pam_krb5.c
+++ b/lib/libpam/modules/pam_krb5/pam_krb5.c
@@ -199,33 +199,33 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags __unused,
PAM_LOG("Skipping local user check");
else {
- /* Verify the local user exists (AFTER getting the password) */
- if (strchr(user, '@')) {
- /* get a local account name for this principal */
- krbret = krb5_aname_to_localname(pam_context, princ,
- sizeof(luser), luser);
- if (krbret != 0) {
- PAM_VERBOSE_ERROR("Kerberos 5 error");
- PAM_LOG("Error krb5_aname_to_localname(): %s",
- krb5_get_err_text(pam_context, krbret));
- retval = PAM_USER_UNKNOWN;
- goto cleanup2;
- }
+ /* Verify the local user exists (AFTER getting the password) */
+ if (strchr(user, '@')) {
+ /* get a local account name for this principal */
+ krbret = krb5_aname_to_localname(pam_context, princ,
+ sizeof(luser), luser);
+ if (krbret != 0) {
+ PAM_VERBOSE_ERROR("Kerberos 5 error");
+ PAM_LOG("Error krb5_aname_to_localname(): %s",
+ krb5_get_err_text(pam_context, krbret));
+ retval = PAM_USER_UNKNOWN;
+ goto cleanup2;
+ }
- retval = pam_set_item(pamh, PAM_USER, luser);
- if (retval != PAM_SUCCESS)
- goto cleanup2;
+ retval = pam_set_item(pamh, PAM_USER, luser);
+ if (retval != PAM_SUCCESS)
+ goto cleanup2;
- PAM_LOG("PAM_USER Redone");
- }
+ PAM_LOG("PAM_USER Redone");
+ }
- pwd = getpwnam(user);
- if (pwd == NULL) {
- retval = PAM_USER_UNKNOWN;
- goto cleanup2;
- }
+ pwd = getpwnam(user);
+ if (pwd == NULL) {
+ retval = PAM_USER_UNKNOWN;
+ goto cleanup2;
+ }
- PAM_LOG("Done getpwnam()");
+ PAM_LOG("Done getpwnam()");
}
/* Get a TGT */