PHP 8.5.0 Alpha 1 available for testing

Voting

: six minus five?
(Example: nine)

The Note You're Voting On

Teemu
18 years ago
Example of connecting and searching AD

$con = ldap_connect('ad.domain.com');
ldap_set_option($con, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($con, LDAP_OPT_REFERRALS, 0);
ldap_bind($con, '[email protected]', 'clear password');

ldap_search($con, 'DC=domain,DC=com', '(uniqueMember=user)');

<< Back to user notes page

To Top