LDAP连接配置
来源:互联网 发布:淘宝香港代购可靠吗 编辑:程序博客网 时间:2024/06/09 20:18
1.分页查询时配置:
spring ldap配置:
<bean id="contextSource" class="org.springframework.ldap.transaction.compensating.manager.TransactionAwareContextSourceProxy">
<constructor-arg ref="pooledContextSource"/>
</bean>
<bean id="pooledContextSource" class="org.springframework.ldap.pool.factory.MutablePoolingContextSource">
<property name="contextSource" ref="contextSourceTarget"/>
<property name="dirContextValidator" ref="dirContextValidator"/>
<property name="testOnBorrow" value="true"/>
<property name="testWhileIdle" value="true"/>
<property name="minIdle" value="0"/>
<property name="maxIdle" value="8"/>
<property name="maxActive" value="8"/>
<property name="maxTotal" value="100"/>
<property name="maxWait" value="-1"/>
</bean>
<bean id="dirContextValidator" class="org.springframework.ldap.pool.validation.DefaultDirContextValidator"/>
<bean id="contextSourceTarget" class="org.springframework.ldap.core.support.LdapContextSource">
<property name="url" value="ldap://127.0.01:389" />
<property name="userDn" value="cn=root,dc=testdata" />
<property name="password" value="12345"/>
<property name="pooled" value="false" />
</bean>
<bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate">
<constructor-arg ref="contextSource" />
</bean>
<bean id="testDataDao_LDAP" class="com.talkweb.mainSyn.dal.impl.TestDataDaoImpl">
<property name="ldapTemplate">
<ref bean="ldapTemplate" />
</property>
</bean>
非分页查询配置2:
<bean id="contextSourceTarget" class="org.springframework.ldap.core.support.LdapContextSource">
<property name="url" value="ldap://127.0.01:389" />
<property name="userDn" value="cn=root,dc=testdata" />
<property name="password" value="12345" />
<property name="pooled" value="false" />
</bean>
<bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate">
<constructor-arg ref="contextSourceTarget" />
</bean>
- LDAP连接配置
- LDAP配置
- LDAP SSL 连接
- JNDI 连接 LDAP
- 【Java】java连接ldap
- java连接到LDAP
- java连接Ldap
- Spring LDAP连接方式
- java通过ssl连接LDAP服务器(包括LDAP服务器搭建、openssl数字证书生成、openldap服务器配置启动)
- java通过ssl连接LDAP服务器(包括LDAP服务器搭建、openssl数字证书生成、openldap服务器配置启动)
- LDAP 与 Zeppelin 连接之一 ----- LDAP 搭建
- ubuntu - ldap安装配置
- win下配置ldap
- LDAP服務器配置
- LDAP服务器安装配置
- LDAP权限配置
- ldap的配置
- ldap配置使用文档
- DLL或exe破解步骤
- C++ 操作Excel表格的编程实现
- 解决办法 此问题可能是由配置更改或安装另一个扩展导致的
- iOS开发~自定义Xcode工程模版与文件模版
- 数据结构之二叉树建立
- LDAP连接配置
- Route Determination In Sales Order(转载)
- mysql 启动错误-server PID file could not be found
- 4G手机CE认证介绍
- 设置guake tab改名后不随着内容不同而自动改变 系统ubuntu14.04
- 红黑树
- 5种服务器网络模型
- as3.0和js相互调用,js控制flash的颜色
- Android 自定义Dialog并指定其显示位置和动画效果