(krb5_verify): only do AFS stuff if KRB4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8852 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -863,17 +863,19 @@ krb5_verify(struct passwd *pwd, char *passwd)
|
|||||||
1,
|
1,
|
||||||
NULL);
|
NULL);
|
||||||
krb5_free_principal(context, princ);
|
krb5_free_principal(context, princ);
|
||||||
|
#ifdef KRB4
|
||||||
if (k_hasafs()) {
|
if (k_hasafs()) {
|
||||||
k_setpag();
|
k_setpag();
|
||||||
krb5_afslog_uid_home(context, id,NULL, NULL,pwd->pw_uid, pwd->pw_dir);
|
krb5_afslog_uid_home(context, id,NULL, NULL,pwd->pw_uid, pwd->pw_dir);
|
||||||
}
|
}
|
||||||
|
#endif /* KRB4 */
|
||||||
krb5_cc_destroy(context, id);
|
krb5_cc_destroy(context, id);
|
||||||
krb5_free_context (context);
|
krb5_free_context (context);
|
||||||
if(ret)
|
if(ret)
|
||||||
return ret;
|
return ret;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* KRB5 *
|
||||||
|
|
||||||
void
|
void
|
||||||
pass(char *passwd)
|
pass(char *passwd)
|
||||||
|
Reference in New Issue
Block a user