]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/root_dse.c
ITS#3576 use actual backend (not glue instance) for restriction and
[openldap] / servers / slapd / root_dse.c
index 8d18760abea0ecb53ed64d4c39a7a1f52e280f05..dbe4f371c6abdf5907af62938be800397170115b 100644 (file)
@@ -73,6 +73,8 @@ root_dse_info(
                = slap_schema.si_ad_supportedFeatures;
        AttributeDescription *ad_monitorContext
                = slap_schema.si_ad_monitorContext;
+       AttributeDescription *ad_configContext
+               = slap_schema.si_ad_configContext;
        AttributeDescription *ad_ref
                = slap_schema.si_ad_ref;
 
@@ -128,6 +130,14 @@ root_dse_info(
                        }
                        continue;
                }
+               if ( SLAP_CONFIG( &backends[i] )) {
+                       vals[0] = backends[i].be_suffix[0];
+                       nvals[0] = backends[i].be_nsuffix[0];
+                       if( attr_merge( e, ad_configContext, vals, nvals ) ) {
+                               return LDAP_OTHER;
+                       }
+                       continue;
+               }
                if ( SLAP_GLUE_SUBORDINATE( &backends[i] ) && !SLAP_GLUE_ADVERTISE( &backends[i] ) ) {
                        continue;
                }