Lines Matching refs:username

80   char	username[HTTP_MAX_VALUE],	/* Username string */  member
254 username[HTTP_MAX_VALUE], in cupsdAuthorize() local
287 username[0] = '\0'; in cupsdAuthorize()
344 username[0] = '\0'; in cupsdAuthorize()
352 strlcpy(username, authinfo->items[0].value, sizeof(username)); in cupsdAuthorize()
354 cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as \"%s\" using AuthRef.", username); in cupsdAuthorize()
360 if (!username[0]) in cupsdAuthorize()
384 strlcpy(username, pwd->pw_name, sizeof(username)); in cupsdAuthorize()
386 … cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as \"%s\" using AuthRef + PeerCred.", username); in cupsdAuthorize()
466 strlcpy(username, authorization + 9, sizeof(username)); in cupsdAuthorize()
472 cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as %s using PeerCred.", username); in cupsdAuthorize()
494 strlcpy(username, localuser->username, sizeof(username)); in cupsdAuthorize()
497 cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as %s using Local.", username); in cupsdAuthorize()
512 userlen = sizeof(username); in cupsdAuthorize()
513 httpDecode64_2(username, &userlen, authorization); in cupsdAuthorize()
519 if ((ptr = strchr(username, ':')) == NULL) in cupsdAuthorize()
527 if (!username[0]) in cupsdAuthorize()
570 strlcpy(data.username, username, sizeof(data.username)); in cupsdAuthorize()
582 pamerr = pam_start("cups", username, &pamdata, &pamh); in cupsdAuthorize()
639 pw = getpwnam(username); /* Get the current password */ in cupsdAuthorize()
648 cupsdLogClient(con, CUPSD_LOG_ERROR, "Unknown username \"%s\".", username); in cupsdAuthorize()
653 spw = getspnam(username); in cupsdAuthorize()
662 cupsdLogClient(con, CUPSD_LOG_ERROR, "Username \"%s\" has no shadow password.", username); in cupsdAuthorize()
675 cupsdLogClient(con, CUPSD_LOG_ERROR, "Username \"%s\" has no password.", username); in cupsdAuthorize()
695 cupsdLogClient(con, CUPSD_LOG_ERROR, "Authentication failed for user \"%s\".", username); in cupsdAuthorize()
702 cupsdLogClient(con, CUPSD_LOG_ERROR, "Authentication failed for user \"%s\".", username); in cupsdAuthorize()
709 cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as \"%s\" using Basic.", username); in cupsdAuthorize()
817 strlcpy(username, output_token.value, sizeof(username)); in cupsdAuthorize()
819 cupsdLogClient(con, CUPSD_LOG_DEBUG, "Authorized as \"%s\" using Negotiate.", username); in cupsdAuthorize()
878 strlcpy(con->username, username, sizeof(con->username)); in cupsdAuthorize()
1131 const char *username, /* I - User name */ in cupsdCheckGroup() argument
1145 …_DEBUG2, "cupsdCheckGroup(username=\"%s\", user=%p, groupname=\"%s\")", username, user, groupname); in cupsdCheckGroup()
1151 if (!username || !groupname) in cupsdCheckGroup()
1175 if (!_cups_strcasecmp(username, group->gr_mem[i])) in cupsdCheckGroup()
1197 getgrouplist(username, (int)user->pw_gid, groups, &ngroups); in cupsdCheckGroup()
1199 getgrouplist(username, user->pw_gid, groups, &ngroups); in cupsdCheckGroup()
1542 username[256], /* Username to authorize */ in cupsdIsAuthorized() local
1659 if (!con->username[0] && type == CUPSD_AUTH_NONE && in cupsdIsAuthorized()
1675 strlcpy(username, attr->values[0].string.text, sizeof(username)); in cupsdIsAuthorized()
1685 con->username); in cupsdIsAuthorized()
1688 if (!con->username[0] && !con->authref) in cupsdIsAuthorized()
1690 if (!con->username[0]) in cupsdIsAuthorized()
1712 strlcpy(username, con->username, sizeof(username)); in cupsdIsAuthorized()
1720 if (!strcmp(username, "root")) in cupsdIsAuthorized()
1727 if ((ptr = strchr(username, '@')) != NULL) in cupsdIsAuthorized()
1744 if (username[0]) in cupsdIsAuthorized()
1746 pw = getpwnam(username); in cupsdIsAuthorized()
1796 !_cups_strcasecmp(username, ownername)) in cupsdIsAuthorized()
1801 if (cupsdCheckGroup(username, pw, SystemGroups[i])) in cupsdIsAuthorized()
1806 if (cupsdCheckGroup(username, pw, name + 1)) in cupsdIsAuthorized()
1809 else if (!_cups_strcasecmp(username, name)) in cupsdIsAuthorized()
1813 return (con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED); in cupsdIsAuthorized()
1835 if (cupsdCheckGroup(username, pw, SystemGroups[i])) in cupsdIsAuthorized()
1838 else if (cupsdCheckGroup(username, pw, name)) in cupsdIsAuthorized()
1848 return (con->username[0] ? HTTP_FORBIDDEN : HTTP_UNAUTHORIZED); in cupsdIsAuthorized()
2046 replies[i].resp = strdup(data->username); in pam_func()