summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-kdb/ipa_kdb.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-07-01 13:33:28 -0400
committerSimo Sorce <ssorce@redhat.com>2011-08-26 08:24:50 -0400
commit0d048d7b49269853cd2a9c9b997c94717f05cf41 (patch)
treec6b011ee642dc8d83a7d1f55c4083be1396b6fd7 /daemons/ipa-kdb/ipa_kdb.h
parent7ea0b5d56e2b157d7bcc15610d076e44f02beeda (diff)
downloadfreeipa-0d048d7b49269853cd2a9c9b997c94717f05cf41.tar.gz
freeipa-0d048d7b49269853cd2a9c9b997c94717f05cf41.tar.xz
freeipa-0d048d7b49269853cd2a9c9b997c94717f05cf41.zip
ipa-kdb: add password policy support
Use default policy for new principals created by kadmin
Diffstat (limited to 'daemons/ipa-kdb/ipa_kdb.h')
-rw-r--r--daemons/ipa-kdb/ipa_kdb.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/daemons/ipa-kdb/ipa_kdb.h b/daemons/ipa-kdb/ipa_kdb.h
index 7dc880527..78746918a 100644
--- a/daemons/ipa-kdb/ipa_kdb.h
+++ b/daemons/ipa-kdb/ipa_kdb.h
@@ -41,6 +41,7 @@
#include <endian.h>
#include "ipa_krb5.h"
+#include "ipa_pwd.h"
/* easier to copy the defines here than to mess with kadm5/admin.h
* for now */
@@ -80,6 +81,17 @@ struct ipadb_context {
int n_supp_encs;
};
+#define IPA_E_DATA_MAGIC 0x0eda7a
+struct ipadb_e_data {
+ int magic;
+ bool ipa_user;
+ char *passwd;
+ time_t last_pwd_change;
+ char *pw_policy_dn;
+ char **pw_history;
+ struct ipapwd_policy pol;
+};
+
struct ipadb_context *ipadb_get_context(krb5_context kcontext);
int ipadb_get_connection(struct ipadb_context *ipactx);