php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
ldap.c File Reference
#include "php.h"
#include "php_ini.h"
#include "Zend/zend_attributes.h"
#include <stddef.h>
#include "ext/standard/dl.h"
#include "php_ldap.h"
#include "ext/standard/info.h"
#include "ldap_arginfo.h"

Go to the source code of this file.

Data Structures

struct  ldap_linkdata
 
struct  ldap_resultdata
 
struct  ldap_result_entry
 

Macros

#define PHP_LDAP_ESCAPE_FILTER   0x01
 
#define PHP_LDAP_ESCAPE_DN   0x02
 
#define Z_LDAP_LINK_P(zv)
 
#define Z_LDAP_RESULT_P(zv)
 
#define Z_LDAP_RESULT_ENTRY_P(zv)
 
#define VERIFY_LDAP_LINK_CONNECTED(ld)
 
#define VERIFY_LDAP_RESULT_OPEN(lr)
 
#define PHP_LD_FULL_ADD   0xff
 

Functions

void ldap_memvfree (void **v)
 
 PHP_MINIT_FUNCTION (ldap)
 
 PHP_MSHUTDOWN_FUNCTION (ldap)
 
 PHP_MINFO_FUNCTION (ldap)
 
 PHP_FUNCTION (ldap_connect)
 
 PHP_FUNCTION (ldap_bind)
 
 PHP_FUNCTION (ldap_bind_ext)
 
 PHP_FUNCTION (ldap_unbind)
 
 PHP_FUNCTION (ldap_read)
 
 PHP_FUNCTION (ldap_list)
 
 PHP_FUNCTION (ldap_search)
 
 PHP_FUNCTION (ldap_free_result)
 
 PHP_FUNCTION (ldap_count_entries)
 
 PHP_FUNCTION (ldap_first_entry)
 
 PHP_FUNCTION (ldap_next_entry)
 
 PHP_FUNCTION (ldap_get_entries)
 
 PHP_FUNCTION (ldap_first_attribute)
 
 PHP_FUNCTION (ldap_next_attribute)
 
 PHP_FUNCTION (ldap_get_attributes)
 
 PHP_FUNCTION (ldap_get_values_len)
 
 PHP_FUNCTION (ldap_get_dn)
 
 PHP_FUNCTION (ldap_explode_dn)
 
 PHP_FUNCTION (ldap_dn2ufn)
 
 PHP_FUNCTION (ldap_add)
 
 PHP_FUNCTION (ldap_add_ext)
 
 PHP_FUNCTION (ldap_mod_replace)
 
 PHP_FUNCTION (ldap_mod_replace_ext)
 
 PHP_FUNCTION (ldap_mod_add)
 
 PHP_FUNCTION (ldap_mod_add_ext)
 
 PHP_FUNCTION (ldap_mod_del)
 
 PHP_FUNCTION (ldap_mod_del_ext)
 
 PHP_FUNCTION (ldap_delete)
 
 PHP_FUNCTION (ldap_delete_ext)
 
 PHP_FUNCTION (ldap_modify_batch)
 
 PHP_FUNCTION (ldap_errno)
 
 PHP_FUNCTION (ldap_err2str)
 
 PHP_FUNCTION (ldap_error)
 
 PHP_FUNCTION (ldap_compare)
 
 PHP_FUNCTION (ldap_escape)
 

Variables

zend_module_entry ldap_module_entry
 

Macro Definition Documentation

◆ PHP_LD_FULL_ADD

#define PHP_LD_FULL_ADD   0xff

Definition at line 2229 of file ldap.c.

◆ PHP_LDAP_ESCAPE_DN

#define PHP_LDAP_ESCAPE_DN   0x02

Definition at line 54 of file ldap.c.

◆ PHP_LDAP_ESCAPE_FILTER

#define PHP_LDAP_ESCAPE_FILTER   0x01

Definition at line 53 of file ldap.c.

◆ VERIFY_LDAP_LINK_CONNECTED

#define VERIFY_LDAP_LINK_CONNECTED ( ld)
Value:
{ \
if (!ld->link) { \
zend_throw_error(NULL, "LDAP connection has already been closed"); \
RETURN_THROWS(); \
} \
}
#define NULL
Definition gdcache.h:45

Definition at line 221 of file ldap.c.

◆ VERIFY_LDAP_RESULT_OPEN

#define VERIFY_LDAP_RESULT_OPEN ( lr)
Value:
{ \
if (!lr->result) { \
zend_throw_error(NULL, "LDAP result has already been closed"); \
RETURN_THROWS(); \
} \
}

Definition at line 229 of file ldap.c.

◆ Z_LDAP_LINK_P

#define Z_LDAP_LINK_P ( zv)
Value:
ldap_link_from_obj(Z_OBJ_P(zv))
zval * zv
Definition ffi.c:3975
#define Z_OBJ_P(zval_p)
Definition zend_types.h:990

Definition at line 110 of file ldap.c.

◆ Z_LDAP_RESULT_ENTRY_P

#define Z_LDAP_RESULT_ENTRY_P ( zv)
Value:
ldap_result_entry_from_obj(Z_OBJ_P(zv))

Definition at line 192 of file ldap.c.

◆ Z_LDAP_RESULT_P

#define Z_LDAP_RESULT_P ( zv)
Value:
ldap_result_from_obj(Z_OBJ_P(zv))

Definition at line 155 of file ldap.c.

Function Documentation

◆ ldap_memvfree()

void ldap_memvfree ( void ** v)

Definition at line 67 of file ldap.c.

◆ PHP_FUNCTION() [1/35]

PHP_FUNCTION ( ldap_add )

Definition at line 2413 of file ldap.c.

◆ PHP_FUNCTION() [2/35]

PHP_FUNCTION ( ldap_add_ext )

Definition at line 2421 of file ldap.c.

◆ PHP_FUNCTION() [3/35]

PHP_FUNCTION ( ldap_bind )

Definition at line 1163 of file ldap.c.

◆ PHP_FUNCTION() [4/35]

PHP_FUNCTION ( ldap_bind_ext )

Definition at line 1215 of file ldap.c.

◆ PHP_FUNCTION() [5/35]

PHP_FUNCTION ( ldap_compare )

Definition at line 2966 of file ldap.c.

◆ PHP_FUNCTION() [6/35]

PHP_FUNCTION ( ldap_connect )

Definition at line 945 of file ldap.c.

◆ PHP_FUNCTION() [7/35]

PHP_FUNCTION ( ldap_count_entries )

Definition at line 1800 of file ldap.c.

◆ PHP_FUNCTION() [8/35]

PHP_FUNCTION ( ldap_delete )

Definition at line 2534 of file ldap.c.

◆ PHP_FUNCTION() [9/35]

PHP_FUNCTION ( ldap_delete_ext )

Definition at line 2541 of file ldap.c.

◆ PHP_FUNCTION() [10/35]

PHP_FUNCTION ( ldap_dn2ufn )

Definition at line 2205 of file ldap.c.

◆ PHP_FUNCTION() [11/35]

PHP_FUNCTION ( ldap_err2str )

Definition at line 2933 of file ldap.c.

◆ PHP_FUNCTION() [12/35]

PHP_FUNCTION ( ldap_errno )

Definition at line 2916 of file ldap.c.

◆ PHP_FUNCTION() [13/35]

PHP_FUNCTION ( ldap_error )

Definition at line 2946 of file ldap.c.

◆ PHP_FUNCTION() [14/35]

PHP_FUNCTION ( ldap_escape )

Definition at line 3936 of file ldap.c.

◆ PHP_FUNCTION() [15/35]

PHP_FUNCTION ( ldap_explode_dn )

Definition at line 2173 of file ldap.c.

◆ PHP_FUNCTION() [16/35]

PHP_FUNCTION ( ldap_first_attribute )

Definition at line 1982 of file ldap.c.

◆ PHP_FUNCTION() [17/35]

PHP_FUNCTION ( ldap_first_entry )

Definition at line 1821 of file ldap.c.

◆ PHP_FUNCTION() [18/35]

PHP_FUNCTION ( ldap_free_result )

Definition at line 1781 of file ldap.c.

◆ PHP_FUNCTION() [19/35]

PHP_FUNCTION ( ldap_get_attributes )

Definition at line 2049 of file ldap.c.

◆ PHP_FUNCTION() [20/35]

PHP_FUNCTION ( ldap_get_dn )

Definition at line 2142 of file ldap.c.

◆ PHP_FUNCTION() [21/35]

PHP_FUNCTION ( ldap_get_entries )

Definition at line 1881 of file ldap.c.

◆ PHP_FUNCTION() [22/35]

PHP_FUNCTION ( ldap_get_values_len )

Definition at line 2104 of file ldap.c.

◆ PHP_FUNCTION() [23/35]

PHP_FUNCTION ( ldap_list )

Definition at line 1767 of file ldap.c.

◆ PHP_FUNCTION() [24/35]

PHP_FUNCTION ( ldap_mod_add )

Definition at line 2444 of file ldap.c.

◆ PHP_FUNCTION() [25/35]

PHP_FUNCTION ( ldap_mod_add_ext )

Definition at line 2451 of file ldap.c.

◆ PHP_FUNCTION() [26/35]

PHP_FUNCTION ( ldap_mod_del )

Definition at line 2458 of file ldap.c.

◆ PHP_FUNCTION() [27/35]

PHP_FUNCTION ( ldap_mod_del_ext )

Definition at line 2465 of file ldap.c.

◆ PHP_FUNCTION() [28/35]

PHP_FUNCTION ( ldap_mod_replace )

Definition at line 2430 of file ldap.c.

◆ PHP_FUNCTION() [29/35]

PHP_FUNCTION ( ldap_mod_replace_ext )

Definition at line 2437 of file ldap.c.

◆ PHP_FUNCTION() [30/35]

PHP_FUNCTION ( ldap_modify_batch )

Definition at line 2588 of file ldap.c.

◆ PHP_FUNCTION() [31/35]

PHP_FUNCTION ( ldap_next_attribute )

Definition at line 2010 of file ldap.c.

◆ PHP_FUNCTION() [32/35]

PHP_FUNCTION ( ldap_next_entry )

Definition at line 1852 of file ldap.c.

◆ PHP_FUNCTION() [33/35]

PHP_FUNCTION ( ldap_read )

Definition at line 1760 of file ldap.c.

◆ PHP_FUNCTION() [34/35]

PHP_FUNCTION ( ldap_search )

Definition at line 1774 of file ldap.c.

◆ PHP_FUNCTION() [35/35]

PHP_FUNCTION ( ldap_unbind )

Definition at line 1416 of file ldap.c.

◆ PHP_MINFO_FUNCTION()

PHP_MINFO_FUNCTION ( ldap )

Definition at line 907 of file ldap.c.

◆ PHP_MINIT_FUNCTION()

PHP_MINIT_FUNCTION ( ldap )

Definition at line 853 of file ldap.c.

◆ PHP_MSHUTDOWN_FUNCTION()

PHP_MSHUTDOWN_FUNCTION ( ldap )

Definition at line 899 of file ldap.c.

Variable Documentation

◆ ldap_module_entry

zend_module_entry ldap_module_entry
Initial value:
= {
"ldap",
ext_functions,
PHP_MINIT(ldap),
PHP_RINIT(ldap),
PHP_MINFO(ldap),
PHP_GINIT(ldap),
}
#define PHP_GINIT
Definition php.h:397
#define PHP_MINFO
Definition php.h:396
#define PHP_RINIT
Definition php.h:394
#define PHP_MSHUTDOWN
Definition php.h:393
#define PHP_MINIT
Definition php.h:392
#define PHP_MODULE_GLOBALS
Definition php.h:408
#define PHP_LDAP_VERSION
Definition php_ldap.h:32
#define STANDARD_MODULE_HEADER
#define STANDARD_MODULE_PROPERTIES_EX

Definition at line 4316 of file ldap.c.