diff options
author | Sumit Bose <sbose@redhat.com> | 2010-01-25 13:45:16 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-02 14:41:41 -0500 |
commit | 7ea48433b3bab77813b11c60e1ea82cb9793dc33 (patch) | |
tree | f7012746fd8f727cd80bd2361cb239893004f2b5 /server/db/sysdb.h | |
parent | 245818557767e511d46b566bd1352f4d8fcb3426 (diff) | |
download | sssd-7ea48433b3bab77813b11c60e1ea82cb9793dc33.tar.gz sssd-7ea48433b3bab77813b11c60e1ea82cb9793dc33.tar.bz2 sssd-7ea48433b3bab77813b11c60e1ea82cb9793dc33.zip |
Add offline failed login counter
Diffstat (limited to 'server/db/sysdb.h')
-rw-r--r-- | server/db/sysdb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/db/sysdb.h b/server/db/sysdb.h index 4c255492..9b77edfa 100644 --- a/server/db/sysdb.h +++ b/server/db/sysdb.h @@ -22,6 +22,7 @@ #ifndef __SYS_DB_H__ #define __SYS_DB_H__ +#include "util/util.h" #include "confdb/confdb.h" #include <tevent.h> @@ -66,6 +67,8 @@ #define SYSDB_LAST_LOGIN "lastLogin" #define SYSDB_LAST_ONLINE_AUTH "lastOnlineAuth" #define SYSDB_USERPIC "userPicture" +#define SYSDB_LAST_FAILED_LOGIN "lastFailedLogin" +#define SYSDB_FAILED_LOGIN_ATTEMPTS "failedLoginAttempts" #define SYSDB_LAST_UPDATE "lastUpdate" #define SYSDB_CACHE_EXPIRE "dataExpireTimestamp" @@ -543,6 +546,9 @@ struct tevent_req *sysdb_cache_password_send(TALLOC_CTX *mem_ctx, int sysdb_cache_password_recv(struct tevent_req *req); +errno_t check_failed_login_attempts(TALLOC_CTX *mem_ctx, struct confdb_ctx *cdb, + struct ldb_message *ldb_msg, + uint32_t *failed_login_attempts); struct tevent_req *sysdb_cache_auth_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sysdb_ctx *sysdb, |