From: Kurt Zeilenga Date: Thu, 31 Aug 2000 18:51:15 +0000 (+0000) Subject: Don't publish version 2 if disallowed X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2133 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3058b0515da5208a157028a0699ad21b25b4602a;p=openldap Don't publish version 2 if disallowed --- diff --git a/servers/slapd/root_dse.c b/servers/slapd/root_dse.c index 8a9cfc653c..942364e005 100644 --- a/servers/slapd/root_dse.c +++ b/servers/slapd/root_dse.c @@ -82,6 +82,12 @@ root_dse_info( /* supportedLDAPVersion */ for ( i=LDAP_VERSION_MIN; i<=LDAP_VERSION_MAX; i++ ) { + if (( global_disallows & SLAP_DISALLOW_BIND_V2 ) && + ( i < LDAP_VERSION3 ) ) + { + /* version 2 and lower are disallowed */ + continue; + } sprintf(buf,"%d",i); val.bv_val = buf; val.bv_len = strlen( val.bv_val );