From: Pierangelo Masarati Date: Wed, 22 Aug 2007 00:41:47 +0000 (+0000) Subject: add session tracking support to essential exops X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~145 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=83eec9f96b9a1d8a1b58a063d8cddd570089e092;p=openldap add session tracking support to essential exops --- diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index 072777c69b..66743f7cce 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -107,6 +107,15 @@ static char *manageDSAit_extops[] = { NULL }; +#ifdef SLAP_CONTROL_X_SESSION_TRACKING +static char *session_tracking_extops[] = { + LDAP_EXOP_MODIFY_PASSWD, + LDAP_EXOP_WHO_AM_I, + LDAP_EXOP_REFRESH, + NULL +}; +#endif + static struct slap_control control_defs[] = { { LDAP_CONTROL_ASSERT, (int)offsetof(struct slap_control_ids, sc_assert), @@ -204,7 +213,7 @@ static struct slap_control control_defs[] = { { LDAP_CONTROL_X_SESSION_TRACKING, (int)offsetof(struct slap_control_ids, sc_sessionTracking), SLAP_CTRL_GLOBAL|SLAP_CTRL_ACCESS|SLAP_CTRL_BIND|SLAP_CTRL_HIDE, - NULL, NULL, + session_tracking_extops, NULL, parseSessionTracking, LDAP_SLIST_ENTRY_INITIALIZER(next) }, #endif { NULL, 0, 0, NULL, 0, NULL, LDAP_SLIST_ENTRY_INITIALIZER(next) }