Lines Matching defs:pwd
44 #include <pwd.h>
83 struct passwd *pwd;
100 if (( pwd = uam_getname(obj, username, ulen)) == NULL ) {
106 if (uam_checkuser(pwd) < 0) {
112 if (( sp = getspnam( pwd->pw_name )) == NULL ) {
116 pwd->pw_passwd = sp->sp_pwdp;
128 if (!pwd->pw_passwd) {
132 *uam_pwd = pwd;
150 p = crypt( ibuf, pwd->pw_passwd );
151 if ( strcmp( p, pwd->pw_passwd ) == 0 )
232 struct passwd *pwd, char *ibuf,
241 if (uam_checkuser(pwd) < 0)
250 if (( sp = getspnam( pwd->pw_name )) == NULL ) {
254 pwd->pw_passwd = sp->sp_pwdp;
257 p = crypt(pw, pwd->pw_passwd );
258 if (strcmp( p, pwd->pw_passwd )) {
278 struct passwd *pwd;
328 if (( pwd = uam_getname(NULL, username, ulen)) == NULL ) {
334 if (uam_checkuser(pwd) < 0) {
340 if (( sp = getspnam( pwd->pw_name )) == NULL ) {
345 pwd->pw_passwd = sp->sp_pwdp;
358 if (!pwd->pw_passwd) {
365 if ( kcheckuser( pwd, password) == 0)
369 p = crypt(password, pwd->pw_passwd);
370 if (strcmp(p, pwd->pw_passwd) != 0) {