summaryrefslogtreecommitdiff
path: root/ext/ldap
Commit message (Collapse)AuthorAgeFilesLines
* Replace obsolete AC_TRY_FOO with AC_FOO_IFELSEPeter Kokot2018-07-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Autoconf 2.50 released in 2001 made several macros obsolete including the AC_TRY_RUN, AC_TRY_COMPILE and AC_TRY_LINK: http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2 These macros should be replaced with the current AC_FOO_IFELSE instead: - AC_TRY_RUN with AC_RUN_IFELSE and AC_LANG_SOURCE - AC_TRY_LINK with AC_LINK_IFELSE and AC_LANG_PROGRAM - AC_TRY_COMPILE with AC_COMPILE_IFELSE and AC_LANG_PROGRAM PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require 2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which are all greater than above mentioned 2.50 version therefore systems should be well supported by now. This patch was created with the help of autoupdate script: autoupdate <file> Reference docs: - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html - https://www.gnu.org/software/autoconf/manual/autoconf-2.59/autoconf.pdf
* Remove unused Git attributes identPeter Kokot2018-07-253-6/+1
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* Use variables that already received ZEND_NUM_ARGS()Gabriel Caruso2018-07-221-5/+5
|
* Fixed incorrrecr zval_dtor() usage to replace value of argument passed by ↵Dmitry Stogov2018-07-051-6/+6
| | | | reference, that may lead to memory leaks.
* Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized ↵Dmitry Stogov2018-07-041-1/+1
| | | | | | | destructors. zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places. Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
* Normalize the ldap extension version in phpinfo outputPeter Kokot2018-06-041-2/+0
| | | | | This patch normalizes the phpinfo output for the ldap extension and removes the displayed Git attribute ident blob object name.
* Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-1/+1
| | | | where we sure about string persistence.
* Merge branch 'PHP-7.2'Stanislav Malyshev2018-04-232-1/+45
|\ | | | | | | | | | | | | | | | | | | | | * PHP-7.2: Fix tsrm_ls Fix #76129 - remove more potential unfiltered outputs for phar Fix test Fix bug #76248 - Malicious LDAP-Server Response causes Crash Fix bug #76249 - fail on invalid sequences Fix #76130: Heap Buffer Overflow (READ: 1786) in exif_iif_add_value Fix bug #75981: prevent reading beyond buffer start
| * Merge branch 'PHP-7.1' into PHP-7.2Stanislav Malyshev2018-04-232-1/+45
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.1: Fix tsrm_ls Fix #76129 - remove more potential unfiltered outputs for phar Fix test Fix bug #76248 - Malicious LDAP-Server Response causes Crash Fix bug #76249 - fail on invalid sequences Fix #76130: Heap Buffer Overflow (READ: 1786) in exif_iif_add_value Fix bug #75981: prevent reading beyond buffer start
| | * Merge branch 'PHP-7.0' into PHP-7.1Stanislav Malyshev2018-04-232-1/+45
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0: Fix tsrm_ls Fix #76129 - remove more potential unfiltered outputs for phar Fix test Fix bug #76248 - Malicious LDAP-Server Response causes Crash Fix bug #76249 - fail on invalid sequences Fix #76130: Heap Buffer Overflow (READ: 1786) in exif_iif_add_value Fix bug #75981: prevent reading beyond buffer start
| | | * Merge branch 'PHP-5.6' into PHP-7.0Stanislav Malyshev2018-04-232-1/+45
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Fix tsrm_ls Fix #76129 - remove more potential unfiltered outputs for phar Fix test Fix bug #76248 - Malicious LDAP-Server Response causes Crash Fix bug #76249 - fail on invalid sequences Fix #76130: Heap Buffer Overflow (READ: 1786) in exif_iif_add_value Fix bug #75981: prevent reading beyond buffer start
| | | | * Fix bug #76248 - Malicious LDAP-Server Response causes CrashStanislav Malyshev2018-04-222-1/+45
| | | | |
| | | | * Fix various int size overflows.Stanislav Malyshev2016-09-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Add function for detection of string zvals with length that does not fit INT_MAX.
* | | | | Merge branch 'PHP-7.2'Nikita Popov2018-03-231-1/+1
|\ \ \ \ \ | |/ / / /
* | | | | Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-203-3/+3
| | | | | | | | | | | | | | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | | | | Fix some compile results warningsGabriel Caruso2018-02-181-1/+1
| | | | |
* | | | | Removed unused variablesGabriel Caruso2018-02-111-2/+2
| | | | |
* | | | | Merge branch 'PHP-7.2'Joe2018-02-081-10/+12
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * PHP-7.2: Fixed bug #49876 lib path on 64bit distros
| * | | | Merge branch 'PHP-7.1' into PHP-7.2Joe2018-02-081-10/+12
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * PHP-7.1: Fixed bug #49876 lib path on 64bit distros
| | * | | Fixed bug #49876 lib path on 64bit distrosDavid Zuelke2018-02-081-10/+12
| | | | |
| | * | | year++Xinchen Hui2018-01-022-2/+2
| | | | |
| | * | | Merge branch 'PHP-7.0' into PHP-7.1Côme Bernigaud2017-05-302-2/+28
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0: ext/ldap/test: Test that ldap_connect() uses defaults from ldap.conf (openldap) ext/ldap: Allow default host from ldap.conf to work. Conflicts: ext/ldap/ldap.c
| | | * | ext/ldap/test: Test that ldap_connect() uses defaults from ldap.conf (openldap)David Caldwell2017-05-251-0/+26
| | | | |
| | | * | ext/ldap: Allow default host from ldap.conf to work.David Caldwell2017-05-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an regression introduced in e7af0fe1eb89e40671e86a588aa1b78607b85461. Previously, calling ldap_connect() with no parameters would pass NULL to ldap_init(), which causes it to use the default host specified in /etc/ldap/ldap.conf (on Ubuntu). When the code changed to use ldap_initialize(), it initialized a uri, even if there were no parameters passed to ldap_connect(). Because of this, there's no way to pass a NULL into ldap_initialize(), making it impossible to use the default uri from ldap.conf. This commit bypasses the uri creation when there is no host argument, passing on a NULL to ldap_initialize() which restores the old PHP 5.5 behavior.
| * | | | year++Xinchen Hui2018-01-022-2/+2
| | | | |
* | | | | Use int instead of integer in type errorsGabriel Caruso2018-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
* | | | | Add and fix SKIPIF sectionsGabriel Caruso2018-02-041-2/+0
| | | | |
* | | | | Add missing SKIPIF sectionsGabriel Caruso2018-02-032-1/+5
| | | | |
* | | | | year++Xinchen Hui2018-01-022-2/+2
| | | | |
* | | | | Move constants into read-only data segmentDmitry Stogov2017-12-141-1/+1
| | | | |
* | | | | Cleanup type conversionDmitry Stogov2017-12-071-14/+7
| | | | |
* | | | | Remove these ancient ldap parts for Windows thats no longer relevantKalle Sommer Nielsen2017-10-232-206/+0
| | | | |
* | | | | Added support for VLV controls request and responseCôme Chilliet2017-09-212-4/+181
| | | | |
* | | | | Added support for SORT controlsCôme Chilliet2017-09-212-0/+196
| | | | | | | | | | | | | | | | | | | | On an openldap server you need the sssvlv overlay for these to work
* | | | | Added skip when control are not supported by the test ldap serverCôme Chilliet2017-09-219-0/+44
| | | | |
* | | | | Avoid memory leak when creating paged control valueCôme Chilliet2017-09-211-7/+4
| | | | |
* | | | | Fixed ifdef for VLV controls (copy/paste error)Côme Chilliet2017-09-211-1/+1
| | | | |
* | | | | Added ldap_rename_ext and its testCôme Chilliet2017-09-212-8/+128
| | | | |
* | | | | Indexing controls by OID when parsing themCôme Chilliet2017-09-219-53/+47
| | | | |
* | | | | Avoid returning iscritical field when parsing response controlsCôme Chilliet2017-09-215-27/+16
| | | | | | | | | | | | | | | | | | | | | | | | | As stated in RFC4511 Section 4.1.11, this field is always false in response controls and only makes sense in request controls
* | | | | Fixed ldap_parse_result commentCôme Chilliet2017-09-211-1/+1
| | | | |
* | | | | Added ldap_delete_ext and its testCôme Chilliet2017-09-212-5/+117
| | | | |
* | | | | Added ldap_mod_*_ext methods for modification with controlsCôme Chilliet2017-09-212-0/+223
| | | | |
* | | | | Added ldap_add_ext and preread/postread support and testsCôme Chilliet2017-09-212-12/+243
| | | | |
* | | | | Added ldap_bind_ext to pass controls and get result objectCôme Chilliet2017-09-212-0/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ldap_bind_ext allows to pass controls and get result object from bind operation Also added a test for it, pretty basic as tests cannot depend upon ppolicy overlay
* | | | | Improved a bit error handling to avoid passing commands with incomplete controlsCôme Chilliet2017-09-211-6/+16
| | | | |
* | | | | Added support and test for LDAP_CONTROL_VALUESRETURNFILTERCôme Chilliet2017-09-213-0/+63
| | | | |
* | | | | Removed client controls alltogetherCôme Chilliet2017-09-2111-139/+58
| | | | | | | | | | | | | | | | | | | | | | | | | Client controls are ldap client lib specific and all the one I could find are ignoring client controls anyway.
* | | | | Fixed ldap_exop test since rebase remove client controlsCôme Chilliet2017-09-211-1/+1
| | | | |
* | | | | Added support for controls in ldap_modify_batchCôme Chilliet2017-09-212-8/+34
| | | | |