summaryrefslogtreecommitdiffstats
path: root/lib/libpam
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2010-05-03 07:39:51 +0000
committermm <mm@FreeBSD.org>2010-05-03 07:39:51 +0000
commitc3022adc569bbca9f31a89fd15aa761addfebbbd (patch)
treee169c005406f2479f960299e185af2d90ba1a6bf /lib/libpam
parent213eac1f2c265b68ddb7cb7bbcb289f8e054c161 (diff)
downloadFreeBSD-src-c3022adc569bbca9f31a89fd15aa761addfebbbd.zip
FreeBSD-src-c3022adc569bbca9f31a89fd15aa761addfebbbd.tar.gz
Code indent according to style(9).
PR: bin/146186 Submitted by: myself Approved by: delphij (mentor) MFC after: 2 weeks
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 9623a17..439fcf9 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 */
OpenPOWER on IntegriCloud