Aleksandar Milivojevic wrote:
Is it possible to make LDAP query filter similar to the joining tables in
SQL?

Basically, what I want is to get the entry that have objectClass
posixAccount, but only if the user is in specific posixGroup.  Something
like '(&(uid=someuser)(objectClass=posixAccount))' and
'(&(memberUid=someuser)(cn=somegroup)(objectClass=posixGroup))'.  Well,
combined somehow.  And returning only entries that have posixAccount
objectClass.

A statment like that would be trivial in SQL.  However I'm having hard
time figuring out how to do it in single LDAP query.  If it is possible at
all.

An LDAP directory is a hierarchical, not relational, database. An LDAP server does not contain a relational engine.

You need two queries to extract this information, and need to do the join logic in your client code - disregarding any vendor specific features which may exist.


mike

--
http://www.netauth.com - LDAP Directory Consulting

---
You are currently subscribed to [email protected] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the 
SUBJECT of the message.

Reply via email to