Lines Matching +defs:user +defs:attr
66 char *attr;
127 if (cb != NULL && (!wantattr || pa != NULL && pa->attr != NULL))
128 res = cb(prof, pa ? pa->attr : NULL, ctxt, pres);
131 if (res == 0 && pa->attr != NULL) {
132 res = _enum_common_p(GETPROF(pa->attr), cb,
147 * associated with the user.
166 if (ua->attr != NULL) {
168 res = cb(NULL, ua->attr, ctxt, pres);
170 res = _enum_common_p(GETPROF(ua->attr),
263 comm2auth(const char *name, kva_t *attr, void *ctxt, void *pres)
269 auths = kva_match(attr, PROFATTR_AUTHS_KW);
399 is_cons_user(const char *user)
405 if (user == NULL) {
411 if (getpwnam_r(user, &pw, pwbuf, sizeof (pwbuf)) == NULL) {
434 get_default_attrs(const char *user)
451 for (i = is_cons_user(user) ? 0 : 1; i < NDFLTPLY; i++) {
459 kva->data[kva->length].key = dfltply[i].attr;