portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r922280 - /portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/resources/assembly/security-ldap.xml
Date Fri, 12 Mar 2010 14:41:34 GMT
Author: ate
Date: Fri Mar 12 14:41:33 2010
New Revision: 922280

URL: http://svn.apache.org/viewvc?rev=922280&view=rev
Log:
JS2-1128: Workaround for http://jira.springframework.org/browse/LDAP-189

Modified:
    portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/resources/assembly/security-ldap.xml

Modified: portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/resources/assembly/security-ldap.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/resources/assembly/security-ldap.xml?rev=922280&r1=922279&r2=922280&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/resources/assembly/security-ldap.xml
(original)
+++ portals/jetspeed-2/portal/trunk/jetspeed-portal-resources/src/main/resources/assembly/security-ldap.xml
Fri Mar 12 14:41:33 2010
@@ -336,7 +336,15 @@
     </property>
     <property name="dirContextValidator">
       <bean class="org.springframework.ldap.pool.validation.DefaultDirContextValidator">
-        <property name="base" value="${ldap.user.searchBase}"/>
+        <!-- Fix/workaround for Spring LDAP-189 bug, see: http://jira.springframework.org/browse/LDAP-189
-->
+        <property name="searchControls">
+          <bean class="javax.naming.directory.SearchControls">
+             <property name="searchScope" value="0"/> <!-- enforce searchScope OBJECT_SCOPE
-->
+             <property name="countLimit" value="1"/>
+             <property name="timeLimit" value="500"/>
+             <property name="returningAttributes" value="objectClass"/>
+          </bean>
+        </property>
       </bean>
     </property>
     <property name="maxActive" value="${ldap.context.pool.maxActive}"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message