always try krb5_afslog, and while here do a setpag too

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11860 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-03-18 13:46:09 +00:00
parent cdf76e1418
commit aadb7de003

View File

@@ -103,11 +103,10 @@ gss_userok(void *app_data, char *username)
chown (ticketfile+5, pw->pw_uid, pw->pw_gid);
#ifdef KRB4
if (k_hasafs()) {
krb5_afslog(gssapi_krb5_context, ccache, 0, 0);
if (k_setpag() == 0)
krb5_afslog(gssapi_krb5_context, ccache, 0, 0);
}
#endif
esetenv ("KRB5CCNAME", ticketfile, 1);
fail: