★ wanayoo — archive 1999 http://fr.php.net/manual/function.ldap-connect.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to LDAP
Quick Reference
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this pageFrench version of this pageHungarian version of this page
Spanish version of this pageDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
LDAP
* ldap_add
* ldap_bind
* ldap_close
* ldap_compare
* ldap_connect
* ldap_count_entries
* ldap_delete
* ldap_dn2ufn
* ldap_err2str
* ldap_errno
* ldap_error
* ldap_explode_dn
* ldap_first_attribute
* ldap_first_entry
* ldap_free_result
* ldap_get_attributes
* ldap_get_dn
* ldap_get_entries
* ldap_get_option
* ldap_get_values
* ldap_get_values_len
* ldap_list
* ldap_modify
* ldap_mod_add
* ldap_mod_del
* ldap_mod_replace
* ldap_next_attribute
* ldap_next_entry
* ldap_read
* ldap_search
* ldap_set_option
* ldap_unbind

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: ldap_connect
View the source code for this pageSearch the site



Previous page
 ldap_compare
 Updated
Mon, 08 Jan 2001
ldap_count_entries 
Next page


ldap_connect

(PHP 3, PHP 4 )

ldap_connect -- Connect to an LDAP server

Description

int ldap_connect ([string hostname [, int port]])

Returns a positive LDAP link identifier on success, or false on error.

ldap_connect() establishes a connection to a LDAP server on a specified hostname and port. Both the arguments are optional. If no arguments are specified then the link identifier of the already opened link will be returned. If only hostname is specified, then the port defaults to 389.

If you are using OpenLDAP 2.x.x you can specify a URL instead of the hostname. To use LDAP with SSL, compile OpenLDAP 2.x.x with SSL support, configure PHP with SSL, and use ldaps://hostname/ as host parameter. The port parameter is not used when using URLs. URL and SSL support were added in 4.0.4.


 About Notes


Previous page
 ldap_compare
 Updated
Mon, 08 Jan 2001
ldap_count_entries 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
France
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.