El 07/01/10 16:55, Owen Marshall escribió:
On 01/05/2010 05:16 AM, Nacho Díaz Asenjo wrote:
(in debug mode 1, i can see the operation reference a lot of index content)
Then post the relevant section of the log.
An example search and your configuration, especially as it pertains to indexing, would also likely be helpful.
If I run Openldap with -d 1 option and i execute
ldapsearch -h ldap01.uc3m.es -b "o=Universidad Carlos III,c=es" "(&(uid=nacho)(objectclass=inetorgperson))" -a always -x
then i could see in my terminal a lot of lines like this
entry_decode: "uid=xxxxxx, ou=Externos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxx,ou=Externos,o=Universidad Carlos III,c=es) entry_decode: "uid=xxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es) => bdb_dn2id("uid=exxx,ou=receptores,ou=sfe2010,ou=grupos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efd9 bdb_dn2entry("uid=xxxxx,ou=externos,o=universidad carlos iii,c=es") => bdb_dn2id("uid=xxxxxx,ou=externos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efd8 entry_decode: "uid=xxxx,ou=Externos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxx,ou=Externos,o=Universidad Carlos III,c=es) entry_decode: "uid=sxxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es) => bdb_dn2id("uid=xxxxxx,ou=receptores,ou=sfe2010,ou=grupos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efdb bdb_dn2entry("uid=xxxxx,ou=externos,o=universidad carlos iii,c=es") => bdb_dn2id("uid=sxxxxx,ou=externos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efda entry_decode: "uid=xxxxxx,ou=Externos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxxx,ou=Externos,o=Universidad Carlos III,c=es) entry_decode: "uid=xxxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es) => bdb_dn2id("uid=xxxxx,ou=receptores,ou=sfe2010,ou=grupos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efdd bdb_dn2entry("uid=xxxxxou=externos,o=universidad carlos iii,c=es") => bdb_dn2id("uid=xxxxx,ou=externos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efdc entry_decode: "uid=pxxxxs,ou=Externos,o=Universidad Carlos III,c=es" <= entry_decode(uid=pxxxx.es,ou=Externos,o=Universidad Carlos III,c=es) entry_decode: "uid=joxxxxes,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es" <= entry_decode(uid=jxxxxm.es,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es) => bdb_dn2id("uid=josxxxm.es,ou=receptores,ou=sfe2010,ou=grupos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efdf bdb_dn2entry("uid=joxxxxm.es,ou=externos,o=universidad carlos iii,c=es") => bdb_dn2id("uid=xxxxxx,ou=externos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efde entry_decode: "uid=xxxx,ou=Externos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxx,ou=Externos,o=Universidad Carlos III,c=es)
...... thousands & thousands of similar lines (each search with always dereferencing look up almost whole directory entries)
and i can't obtain any result because the operation takes a lot of time (more than 50 seconds.)
In my var/openldap-data directory there is a index for aliasedObjectName 835584 2010-01-11 13:01 aliasedObjectName.bdb thanks to that, i achieve better response times.
Thanks