Hi all.
 
How to set a filter to connect tow entrys like SQL of database?
For example.
 
entry 1:
dn:ou=p,o=test
ou=p
status=active
 
 
entry 2:
dn:cn=1,ou=p,o=test
uid=1
status=active
result=test1
 
 
entry 3:
dn:cn=2,ou=p,o=test
uid=2
status=inactive
result=test2
 
 
I need to do a search and the result is:
 
if the entry1's status=active,then research other entry using the query attribute=uid.
if the entry1's status=inactive,the the research returen null result.
 
 
How can I do this search?
 
And if it can do,how to set the ldap.conf located /etc/ldap.conf?