- 论坛徽章:
- 0
|
Sun Directory Server 6.0默认只能查询2000条的记录,对于大数据量的用户需要对这一配置进行优化。下面我就把Sun Directory Server 6.0修改为无限制的方法贴出来。
一、首先创建一个ldapunlimit.文件,文件内容如下:
dn: cn=config
changetype: modify
replace: nsslapd-sizelimit
nsslapd-sizelimit: -1
dn: cn=config
changetype: modify
replace: nsslapd-LookthroughLimit
nsslapd-LookthroughLimit: -1
dn: cn=config
changetype: modify
replace: nsslapd-timelimit
nsslapd-timelimit: 360
dn: cn=default instance config,cn=chaining database,cn=plugins,cn=config
changetype: modify
replace: nsslapd-sizelimit
nsslapd-sizelimit: -1
dn: cn=default instance config,cn=chaining database,cn=plugins,cn=config
changetype: modify
replace: nsslapd-LookthroughLimit
nsslapd-LookthroughLimit: -1
二、实用Ldapmodify命令导入ldapunlimit.ldif文件
ldapmodify -h host -p port -D "cn=Directory Manager" -w passwd -f ldapunlimit.ldif
三、总结
nsslapd-sizelimit是查询的最大条目值,nsslapd-LookthroughLimit是搜索返回的最大值,这个值的可取值范围-1 to the maximum 32 bit integer value (2147483647),-1表示无限制。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/49474/showart_422061.html |
|