Lines Matching refs:items
34 attrlist items[1];
50 items[0].type = ATTR_INCR_FAILED_LOGINS;
51 items[0].next = NULL;
52 if ((ret = ops->getpwnam(username, items, NULL, &buf)) != PWU_SUCCESS) {
57 if ((ret = ops->update(items, NULL, buf)) != PWU_SUCCESS) {
63 items[0].data.val_i >= max_failures) {
65 items[0].type = ATTR_LOCK_FAILED_LOGINS;
75 if ((ret = ops->update(items, NULL, buf)) != PWU_NO_CHANGE &&
87 (items[0].type == ATTR_LOCK_FAILED_LOGINS))
107 attrlist items[1];
123 items[0].type = ATTR_RST_FAILED_LOGINS;
124 items[0].next = NULL;
125 if ((ret = ops->getpwnam(username, items, NULL, &buf)) != PWU_SUCCESS)
127 if ((ret = ops->update(items, NULL, buf)) != PWU_SUCCESS)
135 return (ret != PWU_SUCCESS ? ret : items[0].data.val_i);