KRB5_KUSEROK(3) UNIX Programmer's Manual KRB5_KUSEROK(3) NNAAMMEE kkrrbb55__kkuusseerrookk - verifies if a principal can log in as a LLIIBBRRAARRYY Kerberos 5 Library (libkrb5, -lkrb5) SSYYNNOOPPSSIISS _k_r_b_5___b_o_o_l_e_a_n kkrrbb55__kkuusseerrookk(_k_r_b_5___c_o_n_t_e_x_t _c_o_n_t_e_x_t, _k_r_b_5___p_r_i_n_c_i_p_a_l _p_r_i_n_c_i_p_a_l, _c_o_n_s_t _c_h_a_r _*_n_a_m_e) DDEESSCCRRIIPPTTIIOONN This function takes a local user _n_a_m_e and verifies if _p_r_i_n_c_i_p_a_l is al- lowed to log in as that user. First kkrrbb55__kkuusseerrookk check if there is a local account name _u_s_e_r_n_a_m_e_. If there isn't, kkrrbb55__kkuusseerrookk returns FALSE. Then kkrrbb55__kkuusseerrookk checks if principal is the same as user@realm in any of the default realms. If that is the case, kkrrbb55__kkuusseerrookk returns TRUE. After that it reads the file _._k_5_l_o_g_i_n (if it exists) in the users home directory and checks if _p_r_i_n_c_i_p_a_l is in the file. If it does exists, TRUE is returned. If neither of the above turns out to be true, is re- turned. The _._k_5_l_o_g_i_n should contain one principal per line. SSEEEE AALLSSOO krb5_get_default_realms(3), krb5_verify_user(3), krb5_verify_user_lrealm(3), krb5_verify_user_opt(3,) krb5.conf(5) HEIMDAL Oct 17, 2002 1