From 68b374dd4ab84d6bbe5900bba028779eb44cd329 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 21 Apr 2006 23:47:53 +0000 Subject: [PATCH] Fix EXPIRE/GRACE ber tags --- libraries/libldap/ppolicy.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.39.5