From: Mark Valence Date: Mon, 22 Nov 1999 18:44:07 +0000 (+0000) Subject: Add supportedACIMechanisms to root DSE (when compiling with ACIs enabled). X-Git-Tag: UCDATA_2_4~175 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6b23a78ac1baef690aea066ca9376969c912a293;p=openldap Add supportedACIMechanisms to root DSE (when compiling with ACIs enabled). --- diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index 08272d7177..8b296ecc7f 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -75,7 +75,6 @@ root_dse_info( Connection *conn, Operation *op, char **attrs, int attrsonly ) /* supportedExtension */ for ( i=0; (val.bv_val = get_supported_extension(i)) != NULL; i++ ) { - val.bv_val = get_supported_extension(i); val.bv_len = strlen( val.bv_val ); attr_merge( e, "supportedExtension", vals ); } @@ -97,6 +96,14 @@ root_dse_info( Connection *conn, Operation *op, char **attrs, int attrsonly ) } } +#ifdef SLAPD_ACI_ENABLED + /* supportedACIMechanisms */ + for ( i=0; (val.bv_val = get_supported_acimech(i)) != NULL; i++ ) { + val.bv_len = strlen( val.bv_val ); + attr_merge( e, "supportedACIMechanisms", vals ); + } +#endif + if ( default_referral != NULL ) { attr_merge( e, "ref", default_referral ); }