Lines Matching refs:pw
63 tkt_root, authctxt->pw->pw_uid, (long)getpid()); in krb4_init()
79 st.st_uid == authctxt->pw->pw_uid) in krb4_init()
104 struct passwd *pw; in auth_krb4_password() local
109 if ((pw = authctxt->pw) == NULL) in auth_krb4_password()
116 if (pw->pw_uid != 0 && krb_get_lrealm(realm, 1) == KSUCCESS) { in auth_krb4_password()
120 pw->pw_name); in auth_krb4_password()
124 r = krb_get_pw_in_tkt((char *) pw->pw_name, "", realm, in auth_krb4_password()
128 "failed: %s", pw->pw_name, krb_err_txt[r]); in auth_krb4_password()
132 chown(tkt_string(), pw->pw_uid, pw->pw_gid); in auth_krb4_password()
162 pw->pw_name, krb_err_txt[r]); in auth_krb4_password()
175 "not registered, or srvtab is wrong?", pw->pw_name, in auth_krb4_password()
183 "for %s: %s", pw->pw_name, krb_err_txt[r]); in auth_krb4_password()
286 struct passwd *pw; in auth_krb4_tgt() local
288 if ((pw = authctxt->pw) == NULL) in auth_krb4_tgt()
291 temporarily_use_uid(pw); in auth_krb4_tgt()
303 creds.realm, pw->pw_name); in auth_krb4_tgt()
319 chown(tkt_string(), pw->pw_uid, pw->pw_gid); in auth_krb4_tgt()
341 struct passwd *pw; in auth_afs_token() local
344 if ((pw = authctxt->pw) == NULL) in auth_afs_token()
357 uid = pw->pw_uid; in auth_afs_token()
361 creds.pname, creds.realm, pw->pw_name); in auth_afs_token()