Lines Matching refs:username
457 /* username using fixed length to cal hash */
459 tloge("username is too loog\n");
522 /* "username:[encrypted password]:uid:gid:[comments]:home directory:login shell" */
523 static uint32_t parse_uname(uint32_t uid, char *username, int buffer_len)
525 char *str = username;
527 char *temp_name = token; // first tokon is username, need to check uid
537 if (strcpy_s(username, buffer_len, temp_name) != EOK)
566 /* get username by uid,
569 * formatted as such: "username:[encrypted password]:uid:gid:[comments]:home directory:login shell"
571 int tc_ns_get_uname(uint32_t uid, char *username, int buffer_len, uint32_t *out_len)
573 if (username == NULL || out_len == NULL || buffer_len != FIXED_PKG_NAME_LENGTH) {
584 while (read_line(username, buffer_len, f, &offset) == 0) {
585 uint32_t ret = parse_uname(uid, username, buffer_len);