Complete support for --disable-afs-support

This commit is contained in:
Nicolas Williams
2016-08-10 19:51:11 -05:00
parent 3e6fb5bb41
commit 76c596ceb8
12 changed files with 41 additions and 16 deletions

View File

@@ -711,7 +711,7 @@ int do_login(int code, char *passwd)
return -1;
}
initgroups(pw->pw_name, pw->pw_gid);
#if defined(KRB5)
#if defined(KRB5) && !defined(NO_AFS)
if(k_hasafs())
k_setpag();
#endif
@@ -864,9 +864,11 @@ krb5_verify(struct passwd *pwd, char *passwd)
1,
NULL);
krb5_free_principal(context, princ);
#ifndef NO_AFS
if (k_hasafs()) {
krb5_afslog_uid_home(context, id,NULL, NULL,pwd->pw_uid, pwd->pw_dir);
}
#endif
krb5_cc_destroy(context, id);
krb5_free_context (context);
if(ret)