Lines Matching refs:authctxt
50 Authctxt *authctxt = (Authctxt *)context; in krb4_init() local
55 if (!authctxt->krb4_ticket_file) { in krb4_init()
57 authctxt->krb4_ticket_file = xmalloc(MAXPATHLEN); in krb4_init()
62 snprintf(authctxt->krb4_ticket_file, MAXPATHLEN, "%s%u_%ld", in krb4_init()
63 tkt_root, authctxt->pw->pw_uid, (long)getpid()); in krb4_init()
64 krb_set_tkt_string(authctxt->krb4_ticket_file); in krb4_init()
68 fatal_add_cleanup(krb4_cleanup_proc, authctxt); in krb4_init()
72 if ((fd = mkstemp(authctxt->krb4_ticket_file)) != -1) { in krb4_init()
77 if (lstat(authctxt->krb4_ticket_file, &st) != -1) { in krb4_init()
79 st.st_uid == authctxt->pw->pw_uid) in krb4_init()
83 log("WARNING: bad ticket file %s", authctxt->krb4_ticket_file); in krb4_init()
85 fatal_remove_cleanup(krb4_cleanup_proc, authctxt); in krb4_init()
88 xfree(authctxt->krb4_ticket_file); in krb4_init()
89 authctxt->krb4_ticket_file = NULL; in krb4_init()
99 auth_krb4_password(Authctxt *authctxt, const char *password) in auth_krb4_password() argument
109 if ((pw = authctxt->pw) == NULL) in auth_krb4_password()
118 if (!krb4_init(authctxt)) { in auth_krb4_password()
193 krb4_cleanup_proc(authctxt); in auth_krb4_password()
205 Authctxt *authctxt = (Authctxt *)context; in krb4_cleanup_proc() local
207 if (authctxt->krb4_ticket_file) { in krb4_cleanup_proc()
209 xfree(authctxt->krb4_ticket_file); in krb4_cleanup_proc()
210 authctxt->krb4_ticket_file = NULL; in krb4_cleanup_proc()
215 auth_krb4(Authctxt *authctxt, KTEXT auth, char **client, KTEXT reply) in auth_krb4() argument
253 if (kuserok(&adat, authctxt->user) != KSUCCESS) { in auth_krb4()
255 "account %s", *client, authctxt->user); in auth_krb4()
283 auth_krb4_tgt(Authctxt *authctxt, const char *string) in auth_krb4_tgt() argument
288 if ((pw = authctxt->pw) == NULL) in auth_krb4_tgt()
306 if (!krb4_init(authctxt)) in auth_krb4_tgt()
330 krb4_cleanup_proc(authctxt); in auth_krb4_tgt()
338 auth_afs_token(Authctxt *authctxt, const char *token_string) in auth_afs_token() argument
344 if ((pw = authctxt->pw) == NULL) in auth_afs_token()