63#if ((LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP))
79#ifdef LDAP_OPT_NETWORK_TIMEOUT
86#if (!defined(LDAP_OPT_NETWORK_TIMEOUT) && defined(LDAP_X_OPT_CONNECT_TIMEOUT))
93#ifdef LDAP_OPT_TIMEOUT
115#ifdef LDAP_OPT_RESTART
122#ifdef LDAP_OPT_HOST_NAME
134#ifdef LDAP_OPT_MATCHED_DN
152#ifdef LDAP_OPT_DEBUG_LEVEL
160#ifdef LDAP_OPT_DIAGNOSTIC_MESSAGE
191#ifdef LDAP_OPT_X_SASL_NOCANON
198#ifdef LDAP_OPT_X_SASL_USERNAME
224#if (LDAP_API_VERSION > 2000)
289#ifdef LDAP_OPT_X_TLS_CRLCHECK
312#ifdef LDAP_OPT_X_TLS_DHFILE
320#ifdef LDAP_OPT_X_TLS_CRLFILE
328#ifdef LDAP_OPT_X_TLS_PROTOCOL_MIN
361#ifdef LDAP_OPT_X_TLS_PROTOCOL_TLS1_3
368#ifdef LDAP_OPT_X_TLS_PROTOCOL_MAX
376#ifdef LDAP_OPT_X_TLS_PACKAGE
384#ifdef LDAP_OPT_X_KEEPALIVE_IDLE
413#ifdef HAVE_LDAP_EXTENDED_OPERATION_S
441#ifdef LDAP_CONTROL_MANAGEDSAIT
449#ifdef LDAP_CONTROL_PROXY_AUTHZ
457#ifdef LDAP_CONTROL_SUBENTRIES
465#ifdef LDAP_CONTROL_VALUESRETURNFILTER
473#ifdef LDAP_CONTROL_ASSERT
493#ifdef LDAP_CONTROL_SORTREQUEST
507#ifdef LDAP_CONTROL_PAGEDRESULTS
515#ifdef LDAP_CONTROL_AUTHZID_REQUEST
529#ifdef LDAP_CONTROL_SYNC
550#ifdef LDAP_CONTROL_DONTUSECOPY
558#ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST
572#ifdef LDAP_CONTROL_X_INCREMENTAL_VALUES
611#ifdef LDAP_CONTROL_VLVREQUEST
628#ifdef LDAP_API_FEATURE_X_OPENLDAP
644 #ifdef HAVE_LDAP_SASL
645 function ldap_sasl_bind(
LDAP\Connection $ldap, ?string $dn = null, #[\
SensitiveParameter] ?string $password = null, ?string $mech = null, ?string $realm = null, ?string $authc_id = null, ?string $authz_id = null, ?string $props = null): bool {}
649 function ldap_read($ldap, array|string $base, array|string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref =
LDAP_DEREF_NEVER, ?array $controls = null):
LDAP\Result|array|false {}
652 function ldap_list($ldap, array|string $base, array|string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref =
LDAP_DEREF_NEVER, ?array $controls = null):
LDAP\Result|array|false {}
655 function ldap_search($ldap, array|string $base, array|string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref =
LDAP_DEREF_NEVER, ?array $controls = null):
LDAP\Result|array|false {}
737 #
if (LDAP_API_VERSION > 2000) ||
defined(HAVE_ORALDAP)
738 function ldap_rename(
LDAP\Connection $ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, ?array $controls = null): bool {}
754 #ifdef HAVE_LDAP_PARSE_REFERENCE
759 #ifdef HAVE_LDAP_PARSE_RESULT
771 #
if (
defined(LDAP_API_FEATURE_X_OPENLDAP) &&
defined(HAVE_3ARG_SETREBINDPROC))
775 #ifdef HAVE_LDAP_START_TLS_S
781 #ifdef STR_TRANSLATION
788 #ifdef HAVE_LDAP_EXTENDED_OPERATION_S
793 function ldap_exop(
LDAP\Connection $ldap, string $request_oid, ?string $request_data = null, ?array $controls = null, &$response_data = UNKNOWN, &$response_oid = null):
LDAP\Result|bool {}
798 function ldap_exop_sync(
LDAP\Connection $ldap, string $request_oid, ?string $request_data = null, ?array $controls = null, &$response_data = null, &$response_oid = null):
LDAP\Result|bool {}
801 #ifdef HAVE_LDAP_PASSWD
809 #ifdef HAVE_LDAP_WHOAMI_S
813 #ifdef HAVE_LDAP_REFRESH_S
817 #ifdef HAVE_LDAP_PARSE_EXTENDED_RESULT
foreach(explode("\n", $input) as $line) $result
foreach($dp as $el) foreach( $dp as $el) if( $pass2< 2) echo ""
const LDAP_OPT_X_TLS_DHFILE
const LDAP_OPT_ERROR_NUMBER
const LDAP_OPT_ERROR_STRING
ldap_parse_exop(LDAP\Connection $ldap, LDAP\Result $result, &$response_data=null, &$response_oid=null)
const LDAP_CONTROL_AUTHZID_RESPONSE
ldap_mod_replace(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls=null)
const LDAP_DEREF_SEARCHING
ldap_set_rebind_proc(LDAP\Connection $ldap, ?callable $callback)
const LDAP_OPT_X_TLS_CACERTFILE
ldap_compare(LDAP\Connection $ldap, string $dn, string $attribute, string $value, ?array $controls=null)
const LDAP_OPT_X_TLS_PROTOCOL_TLS1_3
ldap_list($ldap, array|string $base, array|string $filter, array $attributes=[], int $attributes_only=0, int $sizelimit=-1, int $timelimit=-1, int $deref=LDAP_DEREF_NEVER, ?array $controls=null)
const LDAP_CONTROL_PAGEDRESULTS
ldap_connect_wallet(?string $uri=null, string $wallet, #[\SensitiveParameter] string $password, int $auth_mode=GSLC_SSL_NO_AUTH)
ldap_unbind(LDAP\Connection $ldap)
ldap_modify_batch(LDAP\Connection $ldap, string $dn, array $modifications_info, ?array $controls=null)
const LDAP_OPT_X_KEEPALIVE_IDLE
const GSLC_SSL_TWOWAY_AUTH
ldap_count_entries(LDAP\Connection $ldap, LDAP\Result $result)
ldap_first_reference(LDAP\Connection $ldap, LDAP\Result $result)
ldap_parse_result(LDAP\Connection $ldap, LDAP\Result $result, &$error_code, &$matched_dn=null, &$error_message=null, &$referrals=null, &$controls=null)
ldap_escape(string $value, string $ignore="", int $flags=0)
const LDAP_CONTROL_ASSERT
const LDAP_OPT_X_TLS_ALLOW
const LDAP_OPT_X_TLS_CACERTDIR
ldap_delete_ext(LDAP\Connection $ldap, string $dn, ?array $controls=null)
ldap_first_attribute(LDAP\Connection $ldap, LDAP\ResultEntry $entry)
const LDAP_CONTROL_PASSWORDPOLICYRESPONSE
const LDAP_OPT_X_TLS_HARD
ldap_next_entry(LDAP\Connection $ldap, LDAP\ResultEntry $entry)
ldap_start_tls(LDAP\Connection $ldap)
const LDAP_OPT_X_TLS_REQUIRE_CERT
const LDAP_CONTROL_POST_READ
const LDAP_OPT_X_TLS_PROTOCOL_TLS1_1
ldap_read($ldap, array|string $base, array|string $filter, array $attributes=[], int $attributes_only=0, int $sizelimit=-1, int $timelimit=-1, int $deref=LDAP_DEREF_NEVER, ?array $controls=null)
const LDAP_OPT_PROTOCOL_VERSION
const LDAP_CONTROL_SYNC_DONE
const LDAP_CONTROL_SUBENTRIES
const LDAP_OPT_X_TLS_CIPHER_SUITE
const LDAP_CONTROL_PROXY_AUTHZ
const LDAP_OPT_X_TLS_PROTOCOL_TLS1_2
const LDAP_OPT_X_TLS_DEMAND
const LDAP_OPT_X_KEEPALIVE_INTERVAL
ldap_connect(?string $uri=null, int $port=389, string $wallet=UNKNOWN, #[\SensitiveParameter] string $password=UNKNOWN, int $auth_mode=GSLC_SSL_NO_AUTH)
ldap_set_option(?LDAP\Connection $ldap, int $option, $value)
const LDAP_OPT_X_SASL_REALM
const LDAP_CONTROL_SYNC_STATE
const LDAP_OPT_X_TLS_KEYFILE
ldap_free_result(LDAP\Result $result)
const LDAP_OPT_X_TLS_CRL_PEER
const LDAP_CONTROL_MANAGEDSAIT
const LDAP_OPT_DIAGNOSTIC_MESSAGE
ldap_add(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls=null)
ldap_mod_add(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls=null)
const LDAP_OPT_X_SASL_MECH
ldap_get_attributes(LDAP\Connection $ldap, LDAP\ResultEntry $entry)
ldap_exop_sync(LDAP\Connection $ldap, string $request_oid, ?string $request_data=null, ?array $controls=null, &$response_data=null, &$response_oid=null)
const LDAP_EXOP_START_TLS
ldap_search($ldap, array|string $base, array|string $filter, array $attributes=[], int $attributes_only=0, int $sizelimit=-1, int $timelimit=-1, int $deref=LDAP_DEREF_NEVER, ?array $controls=null)
ldap_mod_replace_ext(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls=null)
ldap_get_values(LDAP\Connection $ldap, LDAP\ResultEntry $entry, string $attribute)
ldap_delete(LDAP\Connection $ldap, string $dn, ?array $controls=null)
const LDAP_CONTROL_PRE_READ
ldap_next_attribute(LDAP\Connection $ldap, LDAP\ResultEntry $entry)
ldap_parse_reference(LDAP\Connection $ldap, LDAP\ResultEntry $entry, &$referrals)
const LDAP_CONTROL_VLVRESPONSE
const LDAP_OPT_X_TLS_PROTOCOL_SSL2
ldap_next_reference(LDAP\Connection $ldap, LDAP\ResultEntry $entry)
ldap_exop_passwd(LDAP\Connection $ldap, string $user="", #[\SensitiveParameter] string $old_password="", #[\SensitiveParameter] string $new_password="", &$controls=null)
const LDAP_CONTROL_X_PERMISSIVE_MODIFY
const LDAP_OPT_X_TLS_PACKAGE
ldap_t61_to_8859(string $value)
ldap_8859_to_t61(string $value)
ldap_mod_del_ext(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls=null)
ldap_first_entry(LDAP\Connection $ldap, LDAP\Result $result)
const LDAP_CONTROL_DONTUSECOPY
ldap_close(LDAP\Connection $ldap)
ldap_rename_ext(LDAP\Connection $ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, ?array $controls=null)
const LDAP_OPT_X_SASL_NOCANON
ldap_explode_dn(string $dn, int $with_attrib)
const LDAP_CONTROL_SORTREQUEST
const LDAP_OPT_X_SASL_AUTHCID
const LDAP_OPT_CLIENT_CONTROLS
const LDAP_OPT_X_TLS_CRLFILE
ldap_exop(LDAP\Connection $ldap, string $request_oid, ?string $request_data=null, ?array $controls=null, &$response_data=UNKNOWN, &$response_oid=null)
const LDAP_OPT_X_TLS_PROTOCOL_MIN
const LDAP_CONTROL_X_INCREMENTAL_VALUES
const LDAP_OPT_X_TLS_PROTOCOL_SSL3
const LDAP_OPT_SERVER_CONTROLS
const LDAP_CONTROL_X_EXTENDED_DN
ldap_get_entries(LDAP\Connection $ldap, LDAP\Result $result)
const LDAP_CONTROL_X_SEARCH_OPTIONS
const LDAP_OPT_MATCHED_DN
const LDAP_OPT_X_TLS_CRL_NONE
const LDAP_OPT_X_SASL_USERNAME
const LDAP_CONTROL_VALUESRETURNFILTER
const LDAP_EXOP_MODIFY_PASSWD
const LDAP_OPT_X_TLS_PROTOCOL_TLS1_0
ldap_mod_add_ext(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls=null)
ldap_bind_ext(LDAP\Connection $ldap, ?string $dn=null, #[\SensitiveParameter] ?string $password=null, ?array $controls=null)
const LDAP_OPT_X_TLS_CERTFILE
const LDAP_OPT_X_TLS_NEVER
ldap_exop_refresh(LDAP\Connection $ldap, string $dn, int $ttl)
ldap_get_dn(LDAP\Connection $ldap, LDAP\ResultEntry $entry)
ldap_get_values_len(LDAP\Connection $ldap, LDAP\ResultEntry $entry, string $attribute)
const LDAP_OPT_X_TLS_RANDOM_FILE
ldap_modify(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls=null)
ldap_sasl_bind(LDAP\Connection $ldap, ?string $dn=null, #[\SensitiveParameter] ?string $password=null, ?string $mech=null, ?string $realm=null, ?string $authc_id=null, ?string $authz_id=null, ?string $props=null)
const LDAP_CONTROL_VLVREQUEST
const LDAP_CONTROL_AUTHZID_REQUEST
const LDAP_OPT_X_KEEPALIVE_PROBES
const LDAP_OPT_X_TLS_PROTOCOL_MAX
const LDAP_OPT_X_TLS_CRL_ALL
ldap_bind(LDAP\Connection $ldap, ?string $dn=null, #[\SensitiveParameter] ?string $password=null)
const LDAP_OPT_DEBUG_LEVEL
const LDAP_CONTROL_SORTRESPONSE
const LDAP_OPT_X_SASL_AUTHZID
ldap_mod_del(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls=null)
const LDAP_CONTROL_X_TREE_DELETE
ldap_error(LDAP\Connection $ldap)
const LDAP_CONTROL_PASSWORDPOLICYREQUEST
ldap_get_option(LDAP\Connection $ldap, int $option, &$value=null)
const LDAP_CONTROL_X_DOMAIN_SCOPE
const GSLC_SSL_ONEWAY_AUTH
const LDAP_OPT_X_TLS_CRLCHECK
const LDAP_OPT_NETWORK_TIMEOUT
ldap_exop_whoami(LDAP\Connection $ldap)
ldap_errno(LDAP\Connection $ldap)
ldap_add_ext(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls=null)
ldap_count_references(LDAP\Connection $ldap, LDAP\Result $result)
ldap_rename(LDAP\Connection $ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, ?array $controls=null)
#define LDAP_MODIFY_BATCH_ATTRIB
#define LDAP_MODIFY_BATCH_ADD
#define LDAP_MODIFY_BATCH_MODTYPE
#define LDAP_MODIFY_BATCH_REPLACE
#define LDAP_MODIFY_BATCH_VALUES
#define LDAP_MODIFY_BATCH_REMOVE_ALL
#define LDAP_MODIFY_BATCH_REMOVE
defined(string $constant_name)
function(EX_VAR(opline->result.var))