Lines Matching defs:user

41 #include <limits.h>		/* LOGNAME_MAX -- max Solaris user name */
47 int files_checkhistory(char *user, char *passwd, pwu_repository_t *rep);
131 * Are we a privileged user with regard to the files repository?
322 * Determine which user needs to be authenticated. For files, the
325 * PWU_SUCCESS and (auth_user == NULL || auth_user = user)
331 files_user_to_authenticate(char *user, pwu_repository_t *rep,
338 /* check to see if target user is present in files */
339 res = files_getpwnam(user, &attr_tmp[0], rep, (void **)&pwbuf);
350 if ((*auth_user = strdup(user)) == NULL) {
371 * user:crypw1: ... crypwn: such that n <= MAXHISTORY
379 * 3*LOGNAME_MAX just in case there are long user names.
381 * but some sites often user more.
389 * files_checkhistory - check if a user's new password is in the user's
393 * user = username.
397 * PWU_SUCCESS, passwd found in user's old password history.
400 * PWU_NOT_FOUND, passwd not in user's old password history.
405 files_checkhistory(char *user, char *passwd, pwu_repository_t *rep)
414 debug("files_checkhistory(user=%s)", user);
419 * treating user not found in backing store or no history as
424 if ((res = files_getattr(user, &attr, rep)) == PWU_SUCCESS) {
456 debug("files_checkhistory(%s, %s) = %d", user, crypt_passwd,
554 /* found user */
811 * user has no password, otherwise the user
897 * "spwd" for user "name"
1184 char *user;
1188 user = strtok_r(buf, ":", &last);
1191 debug("files_update_history: read=\"%s\"", user);
1194 if (strcmp(user, name) == 0) {
1198 /* found user, update */
1201 debug("files_update_history: update user\n"
1218 (void) fprintf(dst, "%s:%s", user, last);
1221 user);
1228 /* user not found, add to history file */