From: Howard Chu Date: Fri, 21 Apr 2006 23:45:29 +0000 (+0000) Subject: Fix EXPIRE/GRACE tags in control value X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~160 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=449188fb731cdf494ea3944f42ff3bac1cefe8fe;p=openldap Fix EXPIRE/GRACE tags in control value --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index bed5b4b366..57dfbe13c8 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -259,11 +259,12 @@ account_locked( Operation *op, Entry *e, return 0; } -#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 */ static LDAPControl * create_passcontrol( int exptime, int grace, LDAPPasswordPolicyError err )