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