Diff for /servers/slapd/root_dse.c between versions 1.12.2.5 and 1.12.2.8

version 1.12.2.5, 2000/08/31 16:55:28 version 1.12.2.8, 2002/01/04 20:38:29
Line 1 Line 1
 /* $OpenLDAP$ */  /* $OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.12.2.7 2001/12/06 18:48:12 kurt Exp $ */
 /* root_dse.c - Provides the ROOT DSA-Specific Entry  /* root_dse.c - Provides the ROOT DSA-Specific Entry
  *   *
  * Copyright 1999-2000 The OpenLDAP Foundation.   * Copyright 1999-2002 The OpenLDAP Foundation.
  * All rights reserved.   * All rights reserved.
  *   *
  * Redistribution and use in source and binary forms are permitted only   * Redistribution and use in source and binary forms are permitted only
Line 17 Line 17
   
 #include "slap.h"  #include "slap.h"
   
   static char *supportedFeatures[] = {
           "1.3.6.1.4.1.4203.1.5.1", /* All Operational Attributes ("+") */
           NULL
   };
   
   
 int  int
 root_dse_info(  root_dse_info(
         Connection *conn,          Connection *conn,
Line 36  root_dse_info( Line 42  root_dse_info(
         AttributeDescription *ad_supportedExtension = slap_schema.si_ad_supportedExtension;          AttributeDescription *ad_supportedExtension = slap_schema.si_ad_supportedExtension;
         AttributeDescription *ad_supportedLDAPVersion = slap_schema.si_ad_supportedLDAPVersion;          AttributeDescription *ad_supportedLDAPVersion = slap_schema.si_ad_supportedLDAPVersion;
         AttributeDescription *ad_supportedSASLMechanisms = slap_schema.si_ad_supportedSASLMechanisms;          AttributeDescription *ad_supportedSASLMechanisms = slap_schema.si_ad_supportedSASLMechanisms;
           AttributeDescription *ad_supportedFeatures = slap_schema.si_ad_supportedFeatures;
         AttributeDescription *ad_ref = slap_schema.si_ad_ref;          AttributeDescription *ad_ref = slap_schema.si_ad_ref;
   
         vals[0] = &val;          vals[0] = &val;
Line 80  root_dse_info( Line 87  root_dse_info(
                 attr_merge( e, ad_supportedExtension, vals );                  attr_merge( e, ad_supportedExtension, vals );
         }          }
   
           /* supportedFeatures */
           for ( i=0; supportedFeatures[i] != NULL; i++ ) {
                   val.bv_val = supportedFeatures[i];
                   val.bv_len = strlen( val.bv_val );
                   attr_merge( e, ad_supportedFeatures, vals );
           }
   
         /* supportedLDAPVersion */          /* supportedLDAPVersion */
         for ( i=LDAP_VERSION_MIN; i<=LDAP_VERSION_MAX; i++ ) {          for ( i=LDAP_VERSION_MIN; i<=LDAP_VERSION_MAX; i++ ) {
                 if (( global_disallows & SLAP_DISALLOW_BIND_V2 ) &&                  if (( global_disallows & SLAP_DISALLOW_BIND_V2 ) &&
Line 103  root_dse_info( Line 117  root_dse_info(
                         val.bv_len = strlen( val.bv_val );                          val.bv_len = strlen( val.bv_val );
                         attr_merge( e, ad_supportedSASLMechanisms, vals );                          attr_merge( e, ad_supportedSASLMechanisms, vals );
                 }                  }
                   charray_free( supportedSASLMechanisms );
         }          }
   
         if ( default_referral != NULL ) {          if ( default_referral != NULL ) {

Removed from v.1.12.2.5  
changed lines
  Added in v.1.12.2.8


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