version 1.50, 2003/06/03 02:56:10 |
version 1.51, 2003/08/12 13:14:58 |
|
|
#include <util.h> |
#include <util.h> |
#include <bsd_auth.h> |
#include <bsd_auth.h> |
|
|
#ifdef KERBEROS |
|
#include <kerberosIV/kafs.h> |
|
#endif |
|
|
|
#include "pathnames.h" |
#include "pathnames.h" |
|
|
void badlogin(char *); |
void badlogin(char *); |
|
|
auth_setstate(as, AUTH_OKAY); |
auth_setstate(as, AUTH_OKAY); |
auth_close(as); |
auth_close(as); |
|
|
#ifdef KERBEROS |
|
kgettokens(pwd->pw_dir); |
|
#endif |
|
|
|
execlp(shell, tbuf, (char *)NULL); |
execlp(shell, tbuf, (char *)NULL); |
err(1, "%s", shell); |
err(1, "%s", shell); |
} |
} |
|
|
badlogin(username); |
badlogin(username); |
_exit(0); |
_exit(0); |
} |
} |
|
|
#ifdef KERBEROS |
|
void |
|
kgettokens(char *homedir) |
|
{ |
|
|
|
/* buy AFS-tokens for homedir */ |
|
if (k_hasafs()) { |
|
char cell[128]; |
|
|
|
k_setpag(); |
|
if (k_afs_cell_of_file(homedir, cell, sizeof(cell)) == 0) |
|
krb_afslog(cell, 0); |
|
krb_afslog(0, 0); |
|
} |
|
} |
|
#endif |
|