(krb5_verify): use krb5_verify_user_lrealm

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7050 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-09-28 02:34:17 +00:00
parent f9120155fd
commit a5ea5cf66d
2 changed files with 24 additions and 24 deletions

View File

@@ -200,7 +200,7 @@ krb5_verify(struct passwd *pwd, const char *password)
krb5_free_context(context);
return 1;
}
ret = krb5_verify_user(context,
ret = krb5_verify_user_lrealm(context,
princ,
id,
password,
@@ -244,10 +244,11 @@ krb5_start_session (struct passwd *pwd)
"krbtgt",
realm,
NULL);
free (realm);
ret = krb5_cc_retrieve_cred(context, id2, 0, &mcred, &cred);
if(ret == 0) {
ret = krb524_convert_creds_kdc(context, &cred, &c);
if(!ret) {
if(ret == 0) {
snprintf(krb4tkfile,sizeof(krb4tkfile),"%s%d",TKT_ROOT,
getuid());
krb_set_tkt_string(krb4tkfile);

View File

@@ -162,8 +162,7 @@ krb5_verify(struct passwd *login_info, struct passwd *su_info,
#endif
return 1;
}
krb5_cc_initialize (context, ccache, p);
ret = krb5_verify_user(context, p, ccache, NULL, TRUE, NULL);
ret = krb5_verify_user_lrealm(context, p, ccache, NULL, TRUE, NULL);
if(ret) {
krb5_free_principal (context, p);
krb5_cc_destroy(context, ccache);