[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldapsearch filter and
- To: openldap-technical@openldap.org
- Subject: ldapsearch filter and
- From: Jeff Huang <microjnet@gmail.com>
- Date: Wed, 9 Dec 2009 20:52:16 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=opF8qvdTKNzYSDGunKSD26fgVLYn2FUZII7TAWGur18=; b=BifE1hSpr5RHkuN4L6Yh9dH8OEhlzAnAudJE8S/Sr9SA4cZRTMySWLxbBPVocqdc1Z 5sot8dWnGNJtSSVg68pfkY0UcYheQ8MR1AFpbGhHsjJvaY/pJH5q17t2Ci7dUbsebmqE Pwc6146GHHSm1MifU5+s4ZaDFItkwAGa7X+Lw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=waMUvl2g+kXp8OQFibSgYCrZ79pjWvippUW59yCcqmneN6NkqkDPefrYwvHIxVA38p PUJjnJIHNo3N2a6zwOQ403lY+HZeGbPUeBDqli5MRoJ+bRJjXklOty5/F+MoB8qU7D+g f08KV7g2vWqD6zeCndpg1ofFrKcldZNOKucno=
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?