From 3058b0515da5208a157028a0699ad21b25b4602a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 31 Aug 2000 18:51:15 +0000 Subject: [PATCH] Don't publish version 2 if disallowed --- servers/slapd/root_dse.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 ); -- 2.39.5