Skip to content

Files

Latest commit

Jun 26, 2016
63427c1 · Jun 26, 2016

History

History
This branch is up to date with php/php-src:microseconds.

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 6, 2015
Jun 17, 2015
Jul 26, 2009
Jun 26, 2016
Jul 6, 2015
Jun 17, 2015
Jun 17, 2015
Sep 26, 2009
Jul 3, 2009
Sep 26, 2009
Jun 17, 2015
Jun 17, 2015
Jul 3, 2009
Jun 17, 2015
Nov 24, 2015
Jul 6, 2015
Jul 6, 2015
Jun 17, 2015
Jun 17, 2015
Jul 3, 2009
Jun 23, 2015
Jun 17, 2015
Apr 22, 2008
Jul 3, 2009
Dec 21, 2014
Jun 17, 2015
Jul 3, 2009
Jun 17, 2015
Jul 3, 2009
Sep 18, 2013
Sep 18, 2013
Sep 18, 2013
Sep 18, 2013
Sep 18, 2013
Apr 22, 2008
Jun 17, 2015
Jul 3, 2009
Jun 17, 2015
Jul 3, 2009
Jun 17, 2015
Jul 3, 2009
Jun 17, 2015
Jul 3, 2009
Jun 17, 2015
Jul 3, 2009
Jun 17, 2015
Jul 3, 2009
Jun 23, 2015
Jul 3, 2009
Jun 17, 2015
Jul 3, 2009
Jul 3, 2009
Jun 16, 2016
Sep 9, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jul 3, 2009
Jun 17, 2015
Jul 3, 2009
Mar 9, 2016
Mar 9, 2016
Jun 17, 2015
Jul 3, 2009
Jun 17, 2015
Jul 3, 2009
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Apr 16, 2012
Jul 3, 2009
Jun 17, 2015
Jun 17, 2015
Sep 9, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jun 17, 2015
Jul 3, 2009
Jun 16, 2016
Jun 16, 2016
Jun 16, 2016
Jun 16, 2016
Jul 3, 2009
Jun 16, 2016
Mar 1, 2016
Mar 1, 2016
Jun 16, 2016
Jul 3, 2009
Jul 3, 2009
Jul 15, 2013
Jun 29, 2015
Jun 29, 2015
Jun 29, 2015
Sep 26, 2009
Jul 3, 2009
Jul 3, 2009
May 20, 2014
Jul 3, 2009
Dec 11, 2007
Jun 15, 2009
Most tests here relies on the availability of an LDAP server configured with TLS.

Client/Server configuration:
===========================================================
OpenLDAP 2.4.31 has been used with the configuration below.

Notes:
1.  A self signed certificate can be generated using:
    $ openssl req -newkey rsa:1024 -x509 -nodes -out server.pem -keyout server.pem -days 3650
    It is used for testing ldap_start_tls(), which also requires "TLS_REQCERT never" in client configuration
2.  An empty LDAP structure is required for the tests to be PASSed (except for base and admin)

If you use a debian based distribution, prefer the use of dpkg-reconfigure.
Otherwise you may alter these configuration files:

	(/etc/openldap/)slapd.conf:
-----------------------------------------------------------
TLSCACertificateFile /etc/openldap/ssl/server.pem
TLSCertificateFile /etc/openldap/ssl/server.pem
TLSCertificateKeyFile /etc/openldap/ssl/server.pem
TLSVerifyClient never

# hdb is used instead of bdb as it enables the usage of referrals & aliases
database        hdb
suffix          "dc=my-domain,dc=com"
checkpoint      32      30
rootdn          "cn=Manager,dc=my-domain,dc=com"
rootpw          secret
directory       /var/lib/openldap-data
index   objectClass     eq

authz-regexp
	uid=Manager,cn=digest-md5,cn=auth
	cn=Manager,dc=my-domain,dc=com


(/etc/openldap/)ldap.conf:
-----------------------------------------------------------
TLS_REQCERT never

Tests configuration:
===========================================================
The following environment variables may be defined:
LDAP_TEST_HOST (default: localhost)                        Host to connect to
LDAP_TEST_PORT (default: 389)                              Port to connect to
LDAP_TEST_BASE (default: dc=my-domain,dc=com)              Base to use. May be the ldap root or a subtree. (ldap_search_variation6 will fail if a subtree is used)
LDAP_TEST_USER (default: cn=Manager,dc=my-domain,dc=com)   DN used for binding
LDAP_TEST_SASL_USER (default: Manager)                     SASL user used for SASL binding
LDAP_TEST_PASSWD (default: secret)                         Password used for plain and SASL binding
LDAP_TEST_OPT_PROTOCOL_VERSION (default: 3)                Version of LDAP protocol to use
LDAP_TEST_SKIP_BIND_FAILURE (default: true)                Whether to fail the test or not in case binding fails

Credits:
===========================================================
Davide Mendolia <idaf1er@gmail.com>
Patrick Allaert <patrick.allaert@gmail.com>
Côme Bernigaud <mcmic@php.net>