Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are joins possible in LDAP queries?

Tags:

java

ldap

I've been doing some simple queries and so far things work. However, I would like to do a join between two objects. Does LDAP support joins like SQL does? How would an example join look like in a query? Do I have to execute multiple queries instead?

like image 250
carlspring Avatar asked Mar 21 '23 18:03

carlspring


1 Answers

The equivalent functionality you're looking for in LDAP is achieved using the Deref control. It is not called a JOIN.

https://datatracker.ietf.org/doc/html/draft-masarati-ldap-deref-00

As noted here https://www.ietf.org/mail-archive/web/ldapext/current/msg02210.html it is implemented in at least OpenLDAP and 389DS so it is already multi-vendor, with multi-implementation interoperability.

like image 86
hyc Avatar answered Apr 06 '23 23:04

hyc