]> git.sur5r.net Git - openldap/commitdiff
Minor fixes.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 8 Jan 2000 18:51:27 +0000 (18:51 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 8 Jan 2000 18:51:27 +0000 (18:51 +0000)
libraries/liblutil/passwd.c

index 669b57f18726a79b060b90acd717290529f33891..8da230e7a9f2212bd16d3c1df08ee7e1e1be7ec0 100644 (file)
@@ -685,7 +685,7 @@ static int chk_kerberos(
 
                int status;
                char lrealm[REALM_SZ];
-               char tkt[MaxPathLen];
+               char tkt[MAXHOSTNAMELEN];
 
                status = krb_get_lrealm(lrealm,1);
                if (status == KFAILURE) {
@@ -697,7 +697,7 @@ static int chk_kerberos(
                krb_set_tkt_string (tkt);
 
                status = krb_verify_user( passwd->bv_val, "", lrealm,
-                       cred->bv_val, KRB_VERIFY_SECURE, "pop");
+                       cred->bv_val, 1, "pop");
 
                dest_tkt(); /* no point in keeping the tickets */