the function takes a certian number of required arguments(or parameters)
and you're not passing enough. For this funtion it only takes one, which
is the ldap resource link identifier. which was probably set in $var =
ldap_connect(ldap_server). here the resource link identifer would be
$var.
Usually it means that you're not passing the expected number of arguments to a
function. For example, the substr() function takes a minimum of two, maximum of three
parameters: the string to search, the start position and the length of the substring
to return. To correctly use the function, you