summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-07-01 13:32:57 -0400
committerSimo Sorce <ssorce@redhat.com>2011-08-26 08:24:50 -0400
commit7ea0b5d56e2b157d7bcc15610d076e44f02beeda (patch)
tree404725ca27f85f162308d09a71ccc61cb6bb33d0 /daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h
parenta1637d47c0ccd596305567f925ee611c00dfa899 (diff)
downloadfreeipa-7ea0b5d56e2b157d7bcc15610d076e44f02beeda.tar.gz
freeipa-7ea0b5d56e2b157d7bcc15610d076e44f02beeda.tar.xz
freeipa-7ea0b5d56e2b157d7bcc15610d076e44f02beeda.zip
ipa-pwd-extop: Use common password policy code
Diffstat (limited to 'daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h')
-rw-r--r--daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h
index 7d81bda3d..e430db73d 100644
--- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h
+++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h
@@ -61,6 +61,7 @@
#include <openssl/md4.h>
#include "ipa_krb5.h"
+#include "ipa_pwd.h"
#define IPAPWD_PLUGIN_NAME "ipa-pwd-extop"
#define IPAPWD_FEATURE_DESC "IPA Password Manager"
@@ -80,10 +81,9 @@ struct ipapwd_data {
char *dn;
char *password;
time_t timeNow;
- time_t lastPwChange;
time_t expireTime;
int changetype;
- int pwHistoryLen;
+ struct ipapwd_policy policy;
};
struct ipapwd_operation {
@@ -94,11 +94,6 @@ struct ipapwd_operation {
#define GENERALIZED_TIME_LENGTH 15
-#define IPAPWD_POLICY_MASK 0x0FF
-#define IPAPWD_POLICY_ERROR 0x100
-#define IPAPWD_POLICY_OK 0
-
-
/* from ipapwd_common.c */
struct ipapwd_krbcfg {
krb5_context krbctx;