mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
Don't publish version 2 if disallowed
This commit is contained in:
parent
37c609d6b8
commit
3058b0515d
1 changed files with 6 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue