Côme Chilliet
274d84139b
Added constants for known ldap controls OID and tests for ldap_get/set_option for controls
...
Also fixed existing tests which were expecting ldap_get_option to fail on controls
2017-07-05 16:41:52 +02:00
Côme Chilliet
3a09c1246c
Added support for controls to ldap_get_option
2017-07-05 16:41:52 +02:00
Côme Chilliet
3207747b9e
Changed API to avoid using passing result by reference
...
See discussion on internals ML
2017-07-04 10:03:27 +02:00
Côme Chilliet
13062efd02
Removed unused variables left over by LDAP EXOP patch
2017-07-03 12:23:34 +02:00
Côme Chilliet
e05d230e52
Removed TSRMLS_CC instances left over by LDAP EXOP patch
2017-07-03 12:08:24 +02:00
Côme Chilliet
bda80aa332
Swapped position of retoid and retdata as retoid is almost never used
2017-07-03 10:58:13 +02:00
Côme Chilliet
e9001cab46
Removed two step syntax for EXOP helpers, one call workflow is enough
2017-07-03 10:58:13 +02:00
Côme Chilliet
413e9c84f6
Removed TODOs regarding implementing passwd and whoami exops based on ldap_exop
2017-07-03 10:58:13 +02:00
Côme Chilliet
9aa99cc34c
Added constants for standard EXOPs
2017-07-03 10:58:13 +02:00
Côme Chilliet
4652c46245
Removed ldap_refresh function as I’m not sure how to fix/use/test it
2017-07-03 10:58:13 +02:00
Côme Chilliet
e832ce4b22
Fixed ldap_exop and ldap_parse_exop. Only tested them for whoami exop. (see test file)
2017-07-03 10:58:13 +02:00
Côme Chilliet
28530b2f1c
Fixed ldap_parse_exop_whoami and ldap_parse_exop_passwd and added test for them
2017-07-03 10:58:13 +02:00
Côme Chilliet
fdafd68419
Fixed ldap_exop_whoami and added a test for it
2017-07-03 10:58:12 +02:00
Côme Chilliet
ae76c8ba2c
Fixed ldap_exop_passwd and added tests for it
2017-07-03 10:58:12 +02:00
Côme Chilliet
def09c7cab
Fixed building errors in LDAP EXOP
2017-07-03 10:58:12 +02:00
Côme Chilliet
a0920f2822
Added EXOP features based on patch from http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/databases/php-ldap/files/ldap-ctrl-exop56.patch
2017-07-03 10:58:12 +02:00
Nikita Popov
035a27cbc6
Only compute callback name in error cases
...
Mostly the callback name is only used to report an error. Try to
avoid calculating it if no error occurred.
2017-06-25 18:45:59 +02:00
David Caldwell
747e93eabc
ext/ldap: Allow default host from ldap.conf to work.
...
This fixes an regression introduced in
e7af0fe1eb
. 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.
2017-05-30 17:30:32 +02:00
Côme Bernigaud
1bb295e659
Merge branch 'PHP-7.0' into PHP-7.1
...
* 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
2017-05-30 16:48:16 +02:00
David Caldwell
d51b8f915f
ext/ldap: Allow default host from ldap.conf to work.
...
This fixes an regression introduced in
e7af0fe1eb
. 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.
2017-05-25 00:47:11 +00:00
Xinchen Hui
0311dc8697
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Fixed another part in ldap (bug #73933 )
2017-01-19 12:24:04 +08:00
Xinchen Hui
5e09031144
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed another part in ldap (bug #73933 )
2017-01-19 12:23:56 +08:00
Xinchen Hui
cad2598fcb
Fixed another part in ldap (bug #73933 )
2017-01-19 12:23:23 +08:00
Xinchen Hui
fafce65a05
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Update NEWS
Fixed bug #73933 (error/segfault with ldap_mod_replace and opcache)
2017-01-17 15:35:46 +08:00
Xinchen Hui
e180e45a18
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #73933 (error/segfault with ldap_mod_replace and opcache)
2017-01-17 15:35:06 +08:00
Xinchen Hui
b28c2e20ca
Fixed bug #73933 (error/segfault with ldap_mod_replace and opcache)
2017-01-17 15:34:19 +08:00
Sammy Kaye Powers
dac6c639bb
Update copyright headers to 2017
2017-01-04 11:23:42 -06:00
Sammy Kaye Powers
478f119ab9
Update copyright headers to 2017
2017-01-04 11:14:55 -06:00
Sammy Kaye Powers
9e29f841ce
Update copyright headers to 2017
2017-01-02 09:30:12 -06:00
Anatol Belski
b204b3abd1
further normalizations, uint vs uint32_t
...
fix merge mistake
yet one more replacement run
2016-11-26 17:29:01 +01:00
Kalle Sommer Nielsen
2104bea5d7
Remove Netware support
...
If this does not break the Unix system somehow, I'll be amazed. This should get most of it out, apologies for any errors this may cause on non-Windows ends which I cannot test atm.
2016-11-12 11:20:01 +01:00
Stanislav Malyshev
19866fb76c
Fix various int size overflows.
...
Add function for detection of string zvals with length that does not fit
INT_MAX.
2016-09-12 21:04:23 -07:00
Anatol Belski
78c15e2744
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix leak
2016-08-29 18:08:17 +02:00
Anatol Belski
ca4eeedd36
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix leak
2016-08-29 18:05:47 +02:00
Anatol Belski
e2609a38d9
fix leak
2016-08-29 18:01:21 +02:00
Côme Bernigaud
c53aadbba3
Merge branch 'pull-request/1955'
...
* pull-request/1955:
Add parenthesis to if statements
Correctly add to the length of the final string
Correctly add to the length of the final string
Fix minor spacing issue
Make LDAP_ESCAPE_DN compliant with RFC 4514
2016-07-07 05:11:56 +02:00
Aaron Piotrowski
24237027bc
Merge branch 'throw-error-in-extensions'
2016-07-05 02:08:39 -05:00
Chad Sikorra
b1d82607e6
Add parenthesis to if statements
2016-06-29 07:37:48 -05:00
Chad Sikorra
f910ca259f
Correctly add to the length of the final string
2016-06-26 17:29:07 -05:00
Chad Sikorra
e85a2e360c
Correctly add to the length of the final string
2016-06-26 17:10:51 -05:00
Chad Sikorra
737ee1f2c9
Fix minor spacing issue
2016-06-26 09:31:07 -05:00
Chad Sikorra
63427c1768
Make LDAP_ESCAPE_DN compliant with RFC 4514
2016-06-25 21:16:45 -05:00
Côme Bernigaud
355c5954da
Merge branch 'pull-request/1946' into PHP-7.1.0
...
* pull-request/1946:
Add additional LDAP SASL constants
Add tests for LDAP_OPT_* constants
Add LDAP TLS Protocol Min constants
Add tests for the LDAP CRL check option
Add missing LDAP constants
2016-06-23 07:22:40 +02:00
Dmitry Stogov
323b2733f6
Fixed compilation warnings
2016-06-22 00:40:50 +03:00
Dmitry Stogov
1616038698
Added ZEND_ATTRIBUTE_FORMAT to some middind functions.
...
"%p" replaced by ZEND_LONG_FMT to avoid compilation warnings.
Fixed most incorrect use cases of format specifiers.
2016-06-21 16:00:37 +03:00
Chad Sikorra
4718eb05b4
Add additional LDAP SASL constants
2016-06-16 21:00:32 -05:00
Chad Sikorra
6415a86c9d
Add LDAP TLS Protocol Min constants
2016-06-15 22:45:38 -05:00
Chad Sikorra
8e9e89610e
Add missing LDAP constants
2016-06-14 23:32:59 -05:00
Aaron Piotrowski
771e5cc247
Replace zend_ce_error with NULL and replace more E_ERROR with thrown Error
2016-06-13 09:02:17 -05:00
Aaron Piotrowski
e3c681aa5c
Merge branch 'master' into throw-error-in-extensions
2016-06-10 22:02:23 -05:00