Annotation of embedaddon/php/ext/ldap/tests/README, revision 1.1.1.1
1.1 misho 1: Most tests here relies on the availability of an LDAP server configured with TLS.
2:
3: Client/Server configuration:
4: ===========================================================
5: OpenLDAP 2.3.43 has been used with the configuration below.
6:
7: Notes:
8: 1. A self signed certificate can be generated using:
9: $ openssl req -newkey rsa:1024 -x509 -nodes -out server.pem -keyout server.pem -days 3650
10: It is used for testing ldap_start_tls(), which also requires "TLS_REQCERT never" in client configuration
11: 2. An empty LDAP structure is required for the tests to be PASSed
12:
13: (/etc/openldap/)slapd.conf:
14: -----------------------------------------------------------
15: TLSCACertificateFile /etc/openldap/ssl/server.pem
16: TLSCertificateFile /etc/openldap/ssl/server.pem
17: TLSCertificateKeyFile /etc/openldap/ssl/server.pem
18: TLSVerifyClient never
19:
20: # hdb is used instead of bdb as it enables the usage of referrals & aliases
21: database hdb
22: suffix "dc=my-domain,dc=com"
23: checkpoint 32 30
24: rootdn "cn=Manager,dc=my-domain,dc=com"
25: rootpw secret
26: directory /var/lib/openldap-data
27: index objectClass eq
28:
29: authz-regexp
30: uid=Manager,cn=digest-md5,cn=auth
31: cn=Manager,dc=my-domain,dc=com
32:
33:
34: (/etc/openldap/)ldap.conf:
35: -----------------------------------------------------------
36: TLS_REQCERT never
37:
38: Tests configuration:
39: ===========================================================
40: The following environment variables may be defined:
41: LDAP_TEST_HOST (default: localhost) Host to connect to
42: LDAP_TEST_PORT (default: 389) Port to connect to
43: LDAP_TEST_USER (default: cn=Manager,dc=my-domain,dc=com) DN used for binding
44: LDAP_TEST_SASL_USER (default: Manager) SASL user used for SASL binding
45: LDAP_TEST_PASSWD (default: secret) Password used for plain and SASL binding
46: LDAP_TEST_OPT_PROTOCOL_VERSION (default: 3) Version of LDAP protocol to use
47: LDAP_TEST_SKIP_BIND_FAILURE (default: true) Whether to fail the test or not in case binding fails
48:
49: Credits:
50: ===========================================================
51: Davide Mendolia <idaf1er@gmail.com>
52: Patrick Allaert <patrick.allaert@gmail.com>
53:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>