Lines Matching defs:items
35 attrlist items[1];
51 items[0].type = ATTR_INCR_FAILED_LOGINS;
52 items[0].next = NULL;
53 if ((ret = ops->getpwnam(username, items, NULL, &buf)) != PWU_SUCCESS) {
58 if ((ret = ops->update(items, NULL, buf)) != PWU_SUCCESS) {
63 if (items[0].data.val_i >= max_failures) {
68 items[0].type = ATTR_LOCK_ACCOUNT;
69 if ((ret = ops->update(items, NULL, buf)) != PWU_SUCCESS)
74 (items[0].type == ATTR_LOCK_ACCOUNT))
94 attrlist items[1];
110 items[0].type = ATTR_RST_FAILED_LOGINS;
111 items[0].next = NULL;
112 if ((ret = ops->getpwnam(username, items, NULL, &buf)) != PWU_SUCCESS)
114 if ((ret = ops->update(items, NULL, buf)) != PWU_SUCCESS)
122 return (ret != PWU_SUCCESS ? ret : items[0].data.val_i);