diff --git a/reference/ldap/functions/ldap-connect.xml b/reference/ldap/functions/ldap-connect.xml index 8425a21309..58ac928dc4 100644 --- a/reference/ldap/functions/ldap-connect.xml +++ b/reference/ldap/functions/ldap-connect.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,12 @@ Returns a positive LDAP link identifier on success, or &false; on - error. + error. When OpenLDAP 2.x.x is used, ldap_connect + will always return a resource as it does not actually + connect but just initializes the connecting parameters. The actual + connect happens with the next calls to ldap_* funcs, usually with + ldap_bind. + ldap_connect establishes a connection to a LDAP server on a specified hostname and @@ -71,6 +76,10 @@ $ldapconn = ldap_connect($ldaphost) ]]> + + See also + ldap_bind. +