Lines Matching refs:user
48 * To get the uid from the passwd entry for specified user
49 * It returns 0 if the user can't be found, otherwise returns 1.
52 get_pw_uid(char *user, uid_t *uid)
57 if (getpwnam_r(user, &sp, buffer, sizeof (buffer)) == NULL) {
68 * To get the gid from the passwd entry for specified user
69 * It returns 0 if the user can't be found, otherwise returns 1.
72 get_pw_gid(char *user, gid_t *gid)
77 if (getpwnam_r(user, &sp, buffer, sizeof (buffer)) == NULL) {
89 * To get the kerberos user name for the specified user.
104 get_kmd_kuser(krb5_context kcontext, const char *user, char *kuser, int length)
106 if (strcmp(user, ROOT_UNAME) == 0) {
132 if (strlcpy(kuser, user, length) >= length) {
140 * return true (1) if the user's key is in the (default) keytab
143 key_in_keytab(const char *user, int debug)
157 "PAM-KRB5 (%s): start for user '%s'",
158 whoami, user ? user : "<null>");
160 if (!user)
173 if ((code = get_kmd_kuser(kcontext, (const char *)user, kuser,
224 whoami, user);