I'm trying to make auth calls connecting from php to an Active Directory server auth looks fine but I don't know what to put as ldap_search parameters.
dump of ldap_connect:
resource(4) of type (ldap link)
dump of ldap_bind:
bool(true)
dump of ldap_search:
resource(5) of type (ldap result)
dump of ldap_get_entries:
array(1) {
["count"]=>
int(0)
}
I tried an endless number of permutation of this kind of parameters:
$ldap_dn = "CN=Users,DC=ad,DC=domain";
$ldap_filter = "(objectClass=*)";
but I'm not sure what exactly to put as DC= value in my specific case or O= or OU= or CN= or whatever, any help will be appreciated.