Diff for /servers/slapd/root_dse.c between versions 1.1 and 1.5

version 1.1, 1999/04/19 16:21:53 version 1.5, 1999/06/03 17:58:05
Line 17 Line 17
 #include "slap.h"  #include "slap.h"
   
 void  void
 root_dse_info( Connection *conn, Operation *op )  root_dse_info( Connection *conn, Operation *op, char **attrs, int attrsonly )
 {  {
         Entry           *e;          Entry           *e;
         char            buf[BUFSIZ];          char            buf[BUFSIZ];
Line 44  root_dse_info( Connection *conn, Operati Line 44  root_dse_info( Connection *conn, Operati
                 }                  }
         }          }
   
   #if defined( SLAPD_MONITOR_DN )
           strcpy( buf, SLAPD_MONITOR_DN );
           val.bv_val = buf;
           val.bv_len = strlen( buf );
           attr_merge( e, "namingContexts", vals );
   #endif
   
   #if defined( SLAPD_CONFIG_DN )
           strcpy( buf, SLAPD_CONFIG_DN );
           val.bv_val = buf;
           val.bv_len = strlen( buf );
           attr_merge( e, "namingContexts", vals );
   #endif
   
 #if defined( SLAPD_SCHEMA_DN )  #if defined( SLAPD_SCHEMA_DN )
         val.bv_val = ch_strdup( SLAPD_SCHEMA_DN );          val.bv_val = ch_strdup( SLAPD_SCHEMA_DN );
         val.bv_len = strlen( va.bv_val );          val.bv_len = strlen( val.bv_val );
           attr_merge( e, "namingContexts", vals );
         attr_merge( e, "subschemaSubentry", vals );          attr_merge( e, "subschemaSubentry", vals );
         ldap_memfree( val.bv_val );          ldap_memfree( val.bv_val );
 #endif  #endif
Line 54  root_dse_info( Connection *conn, Operati Line 69  root_dse_info( Connection *conn, Operati
         /* altServer unsupported */          /* altServer unsupported */
         /* supportedExtension: no extensions supported */          /* supportedExtension: no extensions supported */
         /* supportedControl: no controls supported */          /* supportedControl: no controls supported */
           /* supportedSASLMechanism: not yet */
   
         for ( i=LDAP_VERSION_MIN; i<=LDAP_VERSION_MAX; i++ ) {          for ( i=LDAP_VERSION_MIN; i<=LDAP_VERSION_MAX; i++ ) {
                 sprintf(buf,"%d",i);                  sprintf(buf,"%d",i);
Line 62  root_dse_info( Connection *conn, Operati Line 78  root_dse_info( Connection *conn, Operati
                 attr_merge( e, "supportedLDAPVersion", vals );                  attr_merge( e, "supportedLDAPVersion", vals );
         }          }
                   
         send_search_entry( &backends[0], conn, op, e, NULL, 0 );          send_search_entry( &backends[0], conn, op, e, attrs, attrsonly );
         send_ldap_search_result( conn, op, LDAP_SUCCESS, NULL, NULL, 1 );          send_ldap_search_result( conn, op, LDAP_SUCCESS, NULL, NULL, 1 );
   
         entry_free( e );          entry_free( e );

Removed from v.1.1  
changed lines
  Added in v.1.5


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