Lines Matching defs:pw
195 struct passwd *pw;
203 if ((pw = getpwnam_from(user, rep, REP_LDAP)) == NULL)
236 } else if (uid == pw->pw_uid) {
245 if (uid == pw->pw_uid) {
259 priviledged_uid = pw->pw_uid;
293 struct passwd *pw = NULL;
300 pw = ldapbuf->pwd;
306 STRDUP_OR_ERR(w->data.val_s, pw->pw_name, res);
309 STRDUP_OR_ERR(w->data.val_s, pw->pw_comment, res);
312 STRDUP_OR_ERR(w->data.val_s, pw->pw_gecos, res);
315 STRDUP_OR_ERR(w->data.val_s, pw->pw_dir, res);
318 STRDUP_OR_ERR(w->data.val_s, pw->pw_shell, res);
325 STRDUP_OR_ERR(w->data.val_s, pw->pw_age, res);
333 w->data.val_i = pw->pw_uid;
336 w->data.val_i = pw->pw_gid;
1147 struct passwd *pw;
1192 if ((pw = getpwnam_from(name, rep, REP_LDAP)) == NULL) {
1196 } else if ((pw = getpwuid_from(uid, rep, REP_LDAP)) == NULL) {
1205 res = __ns_ldap_uid2dn(pw->pw_name, &binddn, NULL, &errorp);