directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r532499 - in /directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core: internal/model/Connection.java model/schema/Schema.java
Date Wed, 25 Apr 2007 21:57:30 GMT
Author: seelmann
Date: Wed Apr 25 14:57:29 2007
New Revision: 532499

URL: http://svn.apache.org/viewvc?view=rev&rev=532499
Log:
According to RFC4512 the schema must be requested with filter (objectClass=subschema)

Modified:
    directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/internal/model/Connection.java
    directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/model/schema/Schema.java

Modified: directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/internal/model/Connection.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/internal/model/Connection.java?view=diff&rev=532499&r1=532498&r2=532499
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/internal/model/Connection.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/internal/model/Connection.java
Wed Apr 25 14:57:29 2007
@@ -290,7 +290,7 @@
                         SearchParameter sp = new SearchParameter();
                         sp.setSearchBase( new DN( this.rootDSE.getAttribute(
                             IRootDSE.ROOTDSE_ATTRIBUTE_SUBSCHEMASUBENTRY ).getStringValue()
) );
-                        sp.setFilter( ISearch.FILTER_TRUE );
+                        sp.setFilter( Schema.SCHEMA_FILTER );
                         sp.setScope( ISearch.SCOPE_OBJECT );
                         sp.setReturningAttributes( new String[]
                             { IAttribute.OPERATIONAL_ATTRIBUTE_CREATE_TIMESTAMP,
@@ -557,7 +557,7 @@
                 SearchParameter sp = new SearchParameter();
                 sp.setSearchBase( new DN( this.rootDSE.getAttribute( IRootDSE.ROOTDSE_ATTRIBUTE_SUBSCHEMASUBENTRY
)
                     .getStringValue() ) );
-                sp.setFilter( ISearch.FILTER_TRUE );
+                sp.setFilter( Schema.SCHEMA_FILTER );
                 sp.setScope( ISearch.SCOPE_OBJECT );
                 sp.setReturningAttributes( new String[]
                     { Schema.SCHEMA_ATTRIBUTE_OBJECTCLASSES, Schema.SCHEMA_ATTRIBUTE_ATTRIBUTETYPES,

Modified: directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/model/schema/Schema.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/model/schema/Schema.java?view=diff&rev=532499&r1=532498&r2=532499
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/model/schema/Schema.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/model/schema/Schema.java
Wed Apr 25 14:57:29 2007
@@ -54,6 +54,8 @@
 
     private static final long serialVersionUID = 2439355717760227167L;
 
+    public static final String SCHEMA_FILTER = "(objectClass=subschema)";
+    
     public static final String SCHEMA_ATTRIBUTE_OBJECTCLASSES = "objectClasses";
 
     public static final String SCHEMA_ATTRIBUTE_ATTRIBUTETYPES = "attributeTypes";



Mime
View raw message