Ldap + Php connection example

1

I'm trying to make a simple connection and pick up if a certain user is in ldap.

But I can not, I searched the net and found no script that even helped me.

    
asked by anonymous 26.10.2017 / 13:55

1 answer

0

There is a library I have already used in a project, it calls adLDAP

EXAMPLE

$config = array(
    'account_suffix' => "@gatech.edu",

    'domain_controllers' => array("whitepages.gatech.edu"),

    'base_dn' => 'dc=whitepages,dc=gatech,dc=edu',

    'admin_username' => '',

    'admin_password' => '',
);

$ad = new Adldap($config);
    
26.10.2017 / 17:53