From: Howard Chu Date: Fri, 21 Apr 2006 23:47:53 +0000 (+0000) Subject: Fix EXPIRE/GRACE ber tags X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~159 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=68b374dd4ab84d6bbe5900bba028779eb44cd329;p=openldap Fix EXPIRE/GRACE ber tags --- diff --git a/libraries/libldap/ppolicy.c b/libraries/libldap/ppolicy.c index 8898a9f0cd..0de4e20abc 100644 --- a/libraries/libldap/ppolicy.c +++ b/libraries/libldap/ppolicy.c @@ -31,11 +31,12 @@ #ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST -#define PPOLICY_WARNING 0xa0L -#define PPOLICY_ERROR 0xa1L +/* IMPLICIT TAGS, all context-specific */ +#define PPOLICY_WARNING 0xa0L /* constructed + 0 */ +#define PPOLICY_ERROR 0xa1L /* constructed + 1 */ -#define PPOLICY_EXPIRE 0xa0L -#define PPOLICY_GRACE 0xa1L +#define PPOLICY_EXPIRE 0x80L /* primitive + 0 */ +#define PPOLICY_GRACE 0x81L /* primitive + 1 */ /*--- ldap_create_passwordpolicy_control