Lines Matching refs:password
34 "Change the password of the specified user.\n"
38 " Delete the password for the specified user.\n"
135 if (authenticate_user("old password: ", passwd, getspnam(user), 1,
141 char password[LINE_MAX];
145 password[0] = '\0';
146 encryptedPassword = password;
148 // read new password
149 if (read_password("new password: ", password, sizeof(password), false)
154 if (strlen(password) >= MAX_SHADOW_PWD_PASSWORD_LEN) {
155 fprintf(stderr, "Error: The password is too long.\n");
159 // read password again
161 if (read_password("repeat new password: ", repeatedPassword,
167 if (strcmp(password, repeatedPassword) != 0) {
175 encryptedPassword = crypt(password, NULL);
176 explicit_bzero(password, sizeof(password));
183 || message.AddString("password", "x") != B_OK
184 || message.AddString("shadow password", encryptedPassword) != B_OK) {
193 fprintf(stderr, "Error: Failed to set the password: %s\n",