summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/slapi-plugin.h
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2005-02-07 19:02:49 +0000
committerRich Megginson <rmeggins@redhat.com>2005-02-07 19:02:49 +0000
commit5335c65cbaf4a899dae6bc497ae7e85e0831f540 (patch)
tree769e16668d2abfead0be06eae78e2a8ebf93d09b /ldap/servers/slapd/slapi-plugin.h
parent9eb2b56ec631aa3fffc9a80afcbe40f6cc645d8a (diff)
downloadds-5335c65cbaf4a899dae6bc497ae7e85e0831f540.tar.gz
ds-5335c65cbaf4a899dae6bc497ae7e85e0831f540.tar.xz
ds-5335c65cbaf4a899dae6bc497ae7e85e0831f540.zip
PAM pass through auth plugin support
Diffstat (limited to 'ldap/servers/slapd/slapi-plugin.h')
-rw-r--r--ldap/servers/slapd/slapi-plugin.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ldap/servers/slapd/slapi-plugin.h b/ldap/servers/slapd/slapi-plugin.h
index c7263b4d..c9da17a5 100644
--- a/ldap/servers/slapd/slapi-plugin.h
+++ b/ldap/servers/slapd/slapi-plugin.h
@@ -785,6 +785,19 @@ char **slapi_get_supported_extended_ops_copy( void );
*/
void slapi_register_supported_saslmechanism( char *mechanism );
char ** slapi_get_supported_saslmechanisms_copy( void );
+void slapi_add_auth_response_control( Slapi_PBlock *pb, const char *binddn );
+int slapi_add_pwd_control( Slapi_PBlock *pb, char *arg, long time );
+int slapi_pwpolicy_make_response_control (Slapi_PBlock *pb, int seconds, int logins, int error);
+/* Password Policy Response Control stuff - the error argument above */
+#define LDAP_PWPOLICY_PWDEXPIRED 0
+#define LDAP_PWPOLICY_ACCTLOCKED 1
+#define LDAP_PWPOLICY_CHGAFTERRESET 2
+#define LDAP_PWPOLICY_PWDMODNOTALLOWED 3
+#define LDAP_PWPOLICY_MUSTSUPPLYOLDPWD 4
+#define LDAP_PWPOLICY_INVALIDPWDSYNTAX 5
+#define LDAP_PWPOLICY_PWDTOOSHORT 6
+#define LDAP_PWPOLICY_PWDTOOYOUNG 7
+#define LDAP_PWPOLICY_PWDINHISTORY 8
/*
* routine for freeing the ch_arrays returned by the slapi_get*_copy functions above