mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
12.06.2013 db3336e30e64052504fdc8f89914b97e4baa1ebb
Fix OPENDJ-1249: ConnectionFactory timeout setting is applied for Active Directory persistent search requests

* don't enforce timeouts for searches that contain the control 1.2.840.113556.1.4.528
2 files modified
10 ■■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/controls/PersistentSearchRequestControl.java 7 ●●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/spi/LDAPSearchFutureResultImpl.java 3 ●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/controls/PersistentSearchRequestControl.java
@@ -106,6 +106,13 @@
    public static final String OID = "2.16.840.1.113730.3.4.3";
    /**
     * The OID for the Microsoft Active Directory persistent search request
     * control. The control itself is empty and the changes are returned in the
     * following attributes "isDeleted", "whenChanged", "whenCreated".
     */
    public static final String ACTIVE_DIRECTORY_OID = "1.2.840.113556.1.4.528";
    /**
     * A decoder which can be used for decoding the persistent search request
     * control.
     */
opendj-core/src/main/java/org/forgerock/opendj/ldap/spi/LDAPSearchFutureResultImpl.java
@@ -69,7 +69,8 @@
        super(requestID, resultHandler, intermediateResponseHandler, connection);
        this.request = request;
        this.searchResultHandler = resultHandler;
        this.isPersistentSearch = request.containsControl(PersistentSearchRequestControl.OID);
        this.isPersistentSearch = request.containsControl(PersistentSearchRequestControl.OID)
                || request.containsControl(PersistentSearchRequestControl.ACTIVE_DIRECTORY_OID);
    }
    /** {@inheritDoc} */