--- servers/slapd/root_dse.c 2002/11/11 02:42:37 1.61.2.6 +++ servers/slapd/root_dse.c 2003/03/05 23:48:33 1.61.2.9 @@ -1,7 +1,7 @@ -/* $OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.61.2.5 2002/08/29 02:10:44 kurt Exp $ */ +/* $OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.61.2.8 2003/02/10 19:22:47 kurt Exp $ */ /* root_dse.c - Provides the ROOT DSA-Specific Entry * - * Copyright 1999-2002 The OpenLDAP Foundation. + * Copyright 1999-2003 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms are permitted only @@ -13,12 +13,17 @@ #include "portable.h" #include + #include #include "slap.h" #include #include "lber_pvt.h" +#ifdef LDAP_SLAPI +#include "slapi.h" +#endif + static struct berval supportedFeatures[] = { BER_BVC(LDAP_FEATURE_ALL_OPERATIONAL_ATTRS), /* all Operational Attributes ("+") */ BER_BVC(LDAP_FEATURE_OBJECTCLASS_ATTRS), /* OCs in Attributes List */ @@ -108,7 +113,7 @@ root_dse_info( return LDAP_OTHER; continue; } - if ( backends[i].be_flags & SLAP_BFLAG_GLUE_SUBORDINATE ) { + if ( SLAP_GLUE_SUBORDINATE( &backends[i] ) ) { continue; } for ( j = 0; backends[i].be_suffix[j].bv_val != NULL; j++ ) { @@ -134,6 +139,14 @@ root_dse_info( return LDAP_OTHER; } +#ifdef LDAP_SLAPI + /* netscape supportedExtension */ + for ( i = 0; (bv = ns_get_supported_extop(i)) != NULL; i++ ) { + vals[0] = *bv; + attr_merge( e, ad_supportedExtension, vals ); + } +#endif /* LDAP_SLAPI */ + /* supportedFeatures */ if( attr_merge( e, ad_supportedFeatures, supportedFeatures ) ) return LDAP_OTHER;