1.1.1 Functions

The ldap module defines the following functions:

initialize( uri)
Opens a new connection with an LDAP server, and return an LDAP object (see 1.1.4) used to perform operations on that server. Parameter uri has to be a valid LDAP URL.

open( host [, port=PORT])
Opens a new connection with an LDAP server, and return an LDAP object (see 1.1.4) used to perform operations on that server. host is a string containing solely the host name. port is an integer specifying the port where the LDAP server is listening (default is 389). Note: Using this function is deprecated.

get_option( option)
This function returns the value of the global option specified by option.

set_option( option, invalue)
This function sets the value of the global option specified by option to invalue.