Add ldap connection pooling example to resolver.ldap.xml.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 28 Jul 2003 21:20:11 +0000 (21:20 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 28 Jul 2003 21:20:11 +0000 (21:20 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@702 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/conf/resolver.ldap.xml

index 84a6e3e..59a3edf 100644 (file)
                <Property name="java.naming.security.credentials" value="examplepw" />
        </JNDIDirectoryDataConnector>
        -->
+       
+       <!-- An example of how to setup ldap with connection pooling -->
+       <!-- 
+       <JNDIDirectoryDataConnector id="directoryPooled">
+               <Search filter="cn=%PRINCIPAL%">
+                       <Controls searchScope="SUBTREE_SCOPE" returningObjects="false" />
+               </Search>
+               <Property name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory" />
+               <Property name="java.naming.provider.url" value="ldap://ldap.example.edu/dc=example,dc=edu" />
+               <Property name="com.sun.jndi.ldap.connect.pool" value="true" />
+               <Property name="com.sun.jndi.ldap.connect.pool.initsize" value="5" />
+               <Property name="com.sun.jndi.ldap.connect.pool.prefsize" value="5" />
+               <Property name="com.sun.jndi.ldap.connect.pool.authentication" value="none simple DIGEST-MD5" />
+               <Property name="com.sun.jndi.ldap.connect.pool.protocol" value="plain ssl" />
+       </JNDIDirectoryDataConnector>
+       -->
 
 </AttributeResolver>