Lines Matching defs:pwd
38 #include <pwd.h>
77 struct passwd *pwd;
94 if (( pwd = uam_getname(obj, username, ulen)) == NULL ) {
100 if (uam_checkuser(pwd) < 0) {
106 if (( sp = getspnam( pwd->pw_name )) == NULL ) {
110 pwd->pw_passwd = sp->sp_pwdp;
122 if (!pwd->pw_passwd) {
126 *uam_pwd = pwd;
144 p = crypt( ibuf, pwd->pw_passwd );
145 if ( strcmp( p, pwd->pw_passwd ) == 0 )
226 struct passwd *pwd, char *ibuf,
235 if (uam_checkuser(pwd) < 0)
244 if (( sp = getspnam( pwd->pw_name )) == NULL ) {
248 pwd->pw_passwd = sp->sp_pwdp;
251 p = crypt(pw, pwd->pw_passwd );
252 if (strcmp( p, pwd->pw_passwd )) {
272 struct passwd *pwd;
322 if (( pwd = uam_getname(NULL, username, ulen)) == NULL ) {
328 if (uam_checkuser(pwd) < 0) {
334 if (( sp = getspnam( pwd->pw_name )) == NULL ) {
339 pwd->pw_passwd = sp->sp_pwdp;
352 if (!pwd->pw_passwd) {
359 if ( kcheckuser( pwd, password) == 0)
363 p = crypt(password, pwd->pw_passwd);
364 if (strcmp(p, pwd->pw_passwd) != 0) {