summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2015-03-24 15:35:01 +0100
committerSumit Bose <sbose@redhat.com>2015-05-08 09:14:15 +0200
commit55b7fdd837a780ab0f71cbfaa2403f4626993922 (patch)
tree292be2e43b783569cbe956b6bc564111473d0035 /src/db/sysdb.h
parent932c3e22e3c59a9c33f30dcc09e6bef257e14320 (diff)
downloadsssd-55b7fdd837a780ab0f71cbfaa2403f4626993922.tar.gz
sssd-55b7fdd837a780ab0f71cbfaa2403f4626993922.tar.xz
sssd-55b7fdd837a780ab0f71cbfaa2403f4626993922.zip
sysdb: add sysdb_cache_password_ex()
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r--src/db/sysdb.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index 2a3a2df98..c3d2c1406 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -24,6 +24,7 @@
#include "util/util.h"
#include "confdb/confdb.h"
+#include "sss_client/sss_cli.h"
#include <tevent.h>
#define CACHE_SYSDB_FILE "cache_%s.ldb"
@@ -105,6 +106,8 @@
#define SYSDB_SERVERHOSTNAME "serverHostname"
#define SYSDB_CACHEDPWD "cachedPassword"
+#define SYSDB_CACHEDPWD_TYPE "cachedPasswordType"
+#define SYSDB_CACHEDPWD_FA2_LEN "cachedPasswordSecondFactorLen"
#define SYSDB_UUID "uniqueID"
#define SYSDB_SID "objectSID"
@@ -888,6 +891,12 @@ int sysdb_cache_password(struct sss_domain_info *domain,
const char *username,
const char *password);
+int sysdb_cache_password_ex(struct sss_domain_info *domain,
+ const char *username,
+ const char *password,
+ enum sss_authtok_type authtok_type,
+ size_t second_factor_size);
+
errno_t check_failed_login_attempts(struct confdb_ctx *cdb,
struct ldb_message *ldb_msg,
uint32_t *failed_login_attempts,