Diff for /servers/slapd/root_dse.c between versions 1.104 and 1.105

version 1.104, 2005/05/04 22:22:43 version 1.105, 2005/05/11 20:40:50
Line 1 Line 1
 /* root_dse.c - Provides the Root DSA-Specific Entry */  /* root_dse.c - Provides the Root DSA-Specific Entry */
 /* $OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.103 2005/04/22 12:34:10 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.104 2005/05/04 22:22:43 ando Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1999-2005 The OpenLDAP Foundation.   * Copyright 1999-2005 The OpenLDAP Foundation.
Line 176  root_dse_info( Line 176  root_dse_info(
         }          }
   
         /* supportedLDAPVersion */          /* supportedLDAPVersion */
         for ( i=LDAP_VERSION_MIN; i<=LDAP_VERSION_MAX; i++ ) {                  /* don't publish version 2 as we don't really support it
                    * (even when configured to accept version 2 Bind requests)
                    * and the value would never be used by true LDAPv2 (or LDAPv3)
                    * clients.
                    */
           for ( i=LDAP_VERSION3; i<=LDAP_VERSION_MAX; i++ ) {
                 char buf[BUFSIZ];                  char buf[BUFSIZ];
                 if (!( global_allows & SLAP_ALLOW_BIND_V2 ) &&  
                         ( i < LDAP_VERSION3 ) )  
                 {  
                         /* version 2 and lower are disallowed */  
                         continue;  
                 }  
                 snprintf(buf, sizeof buf, "%d", i);                  snprintf(buf, sizeof buf, "%d", i);
                 val.bv_val = buf;                  val.bv_val = buf;
                 val.bv_len = strlen( val.bv_val );                  val.bv_len = strlen( val.bv_val );

Removed from v.1.104  
changed lines
  Added in v.1.105


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org