[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
How to disable referrals when proxy windows AD?
- To: openldap-technical <openldap-technical@openldap.org>
- Subject: How to disable referrals when proxy windows AD?
- From: JWD <j-wd@163.com>
- Date: Mon, 24 Oct 2016 00:09:06 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Mime-Version:Message-ID; bh=GaR2T gU35d6egYAadbo7IWKWPa0AseCVbn0YF2Sh+MI=; b=T/ltvkGmkB1kayVmLbbL3 Nib7+5Zy/b/ozK9OOn1z1vLOZ2bROldGaZz7dbtpT5gLmtrvK8MQO79QtfwKXBX5 FVjtGtyt6wyo+3kCeusaqA2c9I8kXQculs9WmpXpp5KATWP3xsC8xUIPJxr2JyvS RZnNEUE/wOe+Jji0ASewy4=
I config a proxy cache, using windows AD as backend.
When I run ldapsearch, it always search reference for minuts, like this:
# search reference
ref: ldap://ForestDnsZones.test.com/DC=ForestDnsZones,DC=test,DC=com
# search reference
ref: ldap://DomainDnsZones.test.com/DC=DomainDnsZones,DC=test,DC=com
# search reference
ref: ldap://test.com/CN=Configuration,DC=test,DC=com
Infact, there is no reference at all.
How to disable proxy cache referrals?
Below is my proxy cache config:
database ldap
suffix "dc=test,dc=com"
uri ldap://192.168.127.15/
#uri ldap://192.168.127.15/dc=test,dc=com
rootdn "cn=root,dc=test,dc=com"
rootpw {SSHA}Hpc7nbJEdos8iCUAzRNa/rs5ffb0/+mD
overlay pcache
pcache bdb 100000 1 1000 100
#pcacheAttrset 0 name mail sAMAccountName telephonenumber
pcacheAttrset 0 name mail telephonenumber
pcacheTemplate (cn=) 0 3600
pcacheTemplate (&(sn=)(givenName=)) 0 3600
pcacheTemplate (&(departmentNumber=)(secretary=*)) 0 3600
directory /var/lib/ldap/test
CacheSize 1000
DNcacheSize 2000
IDLcacheSize 3000
CacheFree 10
Checkpoint 1024 10
DbConfig set_cachesize 0 104857600 1
DbConfig set_data_dir db
DbConfig set_lg_dir logs
DbConfig set_lg_regionmax 1048576
DbConfig set_lg_max 20971520
DbConfig set_lg_bsize 2097152
DbConfig set_flags DB_LOG_AUTOREMOVE
DbConfig set_flags DB_TXN_NOSYNC
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
index entryCSN,entryUUID eq,pres
--------------
JWD