Hi! Ive got quite a problem
So I have a constant SERVER, that has my servers full path.
if i just launch this code, it works just fine. But if i try to turn it into a function, it fails me. And as the server I am working on has error display turned off I cant see whats wrong.
Any help?
include (SERVER.'/incl/connect_ad.php');
$coment_auth_name ="fntm";
$filter="(&(objectCategory=person))";
$attributes = array("*");
//find user
$search=ldap_search($ldapConn, $base_dn, $filter, $attributes) or
die(show_ad_error($ldapConn, "Could not search $ldap_server"));
Thanks.