summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-03-01 22:39:38 +0100
committerArthur de Jong <arthur@arthurdejong.org>2013-03-03 11:40:04 +0100
commit1c2ab50ab32ca1ececeba7bd45429a3bee1a8d05 (patch)
treeb081d896839296e30c664ea8140e16e236ef8200 /compat
parentf2c49e6ac286174584dceeaf8552d3cef45f94d7 (diff)
request and parse password policy controls when doing user authentication in nslcd
Diffstat (limited to 'compat')
-rw-r--r--compat/ldap_compat.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/compat/ldap_compat.h b/compat/ldap_compat.h
index 55e75a5..00d8af4 100644
--- a/compat/ldap_compat.h
+++ b/compat/ldap_compat.h
@@ -1,7 +1,7 @@
/*
ldap_compat.h - provide a replacement definitions for some ldap functions
- Copyright (C) 2009, 2010, 2012 Arthur de Jong
+ Copyright (C) 2009, 2010, 2012, 2013 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -70,4 +70,18 @@ int ldap_passwd_s(LDAP *ld, struct berval *user, struct berval *oldpw,
#endif /* LDAP_OPT_ERROR_STRING */
#endif /* not LDAP_OPT_DIAGNOSTIC_MESSAGE */
+/* provide replacement oid definitions */
+#ifndef LDAP_CONTROL_PWEXPIRED
+#define LDAP_CONTROL_PWEXPIRED "2.16.840.1.113730.3.4.4"
+#endif /* LDAP_CONTROL_PWEXPIRED */
+#ifndef LDAP_CONTROL_PWEXPIRING
+#define LDAP_CONTROL_PWEXPIRING "2.16.840.1.113730.3.4.5"
+#endif /* LDAP_CONTROL_PWEXPIRING */
+#ifndef LDAP_CONTROL_PASSWORDPOLICYREQUEST
+#define LDAP_CONTROL_PASSWORDPOLICYREQUEST "1.3.6.1.4.1.42.2.27.8.5.1"
+#endif /* LDAP_CONTROL_PASSWORDPOLICYREQUEST */
+#ifndef LDAP_CONTROL_PASSWORDPOLICYRESPONSE
+#define LDAP_CONTROL_PASSWORDPOLICYRESPONSE "1.3.6.1.4.1.42.2.27.8.5.1"
+#endif /* LDAP_CONTROL_PASSWORDPOLICYRESPONSE */
+
#endif /* COMPAT__LDAP_COMPAT_H */