Category Archives: Tech

Tech posts, code, tips and tricks.

PHP LDAP Active Directory search cross-domain

I was trying to do a search for members in a universal group containing users from multiple domains. After a lot of testing with LDAP-referrals, I found the simple solution. Connect to Global Catalog (port 3268) instead of LDAP (port 389).

$ldap = ldap_connect("ldap://domain.local:3268/");