Diff for /servers/slapd/root_dse.c between versions 1.95.2.12 and 1.106

version 1.95.2.12, 2008/02/11 23:24:17 version 1.106, 2005/05/11 22:46:39
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.95.2.11 2007/01/02 21:43:57 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.105 2005/05/11 20:40:50 kurt 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-2008 The OpenLDAP Foundation.   * Copyright 1999-2005 The OpenLDAP Foundation.
  * All rights reserved.   * All rights reserved.
  *   *
  * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
Line 29 Line 29
 #endif  #endif
   
 static struct berval supportedFeatures[] = {  static struct berval supportedFeatures[] = {
         BER_BVC(LDAP_FEATURE_MODIFY_INCREMENT),         /* Modify/increment */  
         BER_BVC(LDAP_FEATURE_ALL_OP_ATTRS),                     /* All Op Attrs (+) */          BER_BVC(LDAP_FEATURE_ALL_OP_ATTRS),                     /* All Op Attrs (+) */
         BER_BVC(LDAP_FEATURE_OBJECTCLASS_ATTRS),        /* OCs in Attrs List (@class) */          BER_BVC(LDAP_FEATURE_OBJECTCLASS_ATTRS),        /* OCs in Attrs List (@class) */
         BER_BVC(LDAP_FEATURE_ABSOLUTE_FILTERS),         /* (&) and (|) search filters */          BER_BVC(LDAP_FEATURE_ABSOLUTE_FILTERS),         /* (&) and (|) search filters */
Line 38  static struct berval supportedFeatures[] Line 37  static struct berval supportedFeatures[]
 #ifdef LDAP_FEATURE_SUBORDINATE_SCOPE  #ifdef LDAP_FEATURE_SUBORDINATE_SCOPE
         BER_BVC(LDAP_FEATURE_SUBORDINATE_SCOPE),        /* "children" search scope */          BER_BVC(LDAP_FEATURE_SUBORDINATE_SCOPE),        /* "children" search scope */
 #endif  #endif
   #ifdef LDAP_FEATURE_MODIFY_INCREMENT
           BER_BVC(LDAP_FEATURE_MODIFY_INCREMENT),         /* Modify/increment */
   #endif
         {0,NULL}          {0,NULL}
 };  };
   
Line 50  root_dse_info( Line 52  root_dse_info(
         const char **text )          const char **text )
 {  {
         Entry           *e;          Entry           *e;
         struct berval val;          struct berval val, *bv;
 #ifdef LDAP_SLAPI          struct berval nval;
         struct berval *bv;  
 #endif  
         int             i, j;          int             i, j;
         char ** supportedSASLMechanisms;          char ** supportedSASLMechanisms;
         BackendDB *be;          BackendDB *be;
Line 64  root_dse_info( Line 64  root_dse_info(
                 = slap_schema.si_ad_objectClass;                  = slap_schema.si_ad_objectClass;
         AttributeDescription *ad_namingContexts          AttributeDescription *ad_namingContexts
                 = slap_schema.si_ad_namingContexts;                  = slap_schema.si_ad_namingContexts;
 #ifdef LDAP_SLAPI  
         AttributeDescription *ad_supportedExtension          AttributeDescription *ad_supportedExtension
                 = slap_schema.si_ad_supportedExtension;                  = slap_schema.si_ad_supportedExtension;
 #endif  
         AttributeDescription *ad_supportedLDAPVersion          AttributeDescription *ad_supportedLDAPVersion
                 = slap_schema.si_ad_supportedLDAPVersion;                  = slap_schema.si_ad_supportedLDAPVersion;
         AttributeDescription *ad_supportedSASLMechanisms          AttributeDescription *ad_supportedSASLMechanisms
Line 326  slap_discover_feature( Line 324  slap_discover_feature(
         char            *attrs[ 2 ] = { NULL, NULL };          char            *attrs[ 2 ] = { NULL, NULL };
   
         ber_str2bv( val, 0, 0, &bv_val );          ber_str2bv( val, 0, 0, &bv_val );
         attrs[ 0 ] = (char *) attr;          attrs[ 0 ] = attr;
   
         rc = ldap_initialize( &ld, uri );          rc = ldap_initialize( &ld, uri );
         if ( rc != LDAP_SUCCESS ) {          if ( rc != LDAP_SUCCESS ) {

Removed from v.1.95.2.12  
changed lines
  Added in v.1.106


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