This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
phpunit.xml.dist
74 lines (69 loc) · 3.6 KB
/
phpunit.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="test/bootstrap.php"
colors="true">
<testsuites>
<testsuite name="zend-ldap Test Suite">
<directory>./test</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<php>
<!-- Zend\Ldap online tests
These largely map to the options described in the Zend\Ldap and
Zend\Auth\Adapter\Ldap documentation.
Example Configuration for Active Directory:
HOST: dc1.w.net
USE_START_TLS: true
USE_SSL: false
USERNAME: CN=User 1,CN=Users,DC=w,DC=net
PRINCIPAL_NAME: [email protected]
LDAP_PASSWORD: pass1
BASE_DN: CN=Users,DC=w,DC=net
DOMAIN_NAME: w.net
ACCOUNT_DOMAIN_NAME_SHORT: W
ALT_USERNAME: user2
ALT_DN: CN=User 2,CN=Users,DC=w,DC=net
ALT_PASSWORD: pass2
Example Configuration for OpenLDAP
HOST: s0.foo.net
USERNAME: CN=user1,DC=foo,DC=net
PRINCIPAL_NAME: [email protected]
LDAP_PASSWORD: pass1
BIND_REQUIRES_DN: true
BASE_DN: OU=Sales,DC=w,DC=net
DOMAIN_NAME: foo.net
ACCOUNT_DOMAIN_NAME_SHORT: FOO
ALT_USERNAME: abaker
ALT_DN: CN=Alice Baker,OU=Sales,DC=foo,DC=net
ALT_PASSWORD: apass
-->
<env name="TESTS_ZEND_LDAP_ONLINE_ENABLED" value="false" />
<env name="TESTS_ZEND_LDAP_HOST" value="localhost" />
<env name="TESTS_ZEND_LDAP_PORT" value="3890" />
<env name="TESTS_ZEND_LDAP_SCRIPTS_PORT" value="3891" />
<env name="TESTS_ZEND_LDAP_USE_START_TLS" value="false" />
<env name="TESTS_ZEND_LDAP_USE_SSL" value="false" />
<env name="TESTS_ZEND_LDAP_USERNAME" value="cn=Manager,dc=example,dc=com" />
<env name="TESTS_ZEND_LDAP_PASSWORD" value="insecure" />
<env name="TESTS_ZEND_LDAP_BIND_REQUIRES_DN" value="true" />
<env name="TESTS_ZEND_LDAP_BASE_DN" value="dc=example,dc=com" />
<env name="TESTS_ZEND_LDAP_ACCOUNT_FILTER_FORMAT" value="(&(objectClass=account)(uid=%s))" />
<env name="TESTS_ZEND_LDAP_ACCOUNT_DOMAIN_NAME" value="example.com" />
<env name="TESTS_ZEND_LDAP_ACCOUNT_DOMAIN_NAME_SHORT" value="EXAMPLE" />
<env name="TESTS_ZEND_LDAP_ALT_USERNAME" value="user1" />
<env name="TESTS_ZEND_LDAP_ALT_PRINCIPAL_NAME" value="[email protected]" />
<env name="TESTS_ZEND_LDAP_ALT_DN" value="uid=user1,dc=example,dc=com" />
<env name="TESTS_ZEND_LDAP_ALT_PASSWORD" value="user1" />
<env name="TESTS_ZEND_LDAP_WRITEABLE_SUBTREE" value="ou=test,dc=example,dc=com" />
<env name="TESTS_ZEND_LDAP_ANONYMOUS_BIND_ALLOWED" value="true"/>
<env name="TESTS_ZEND_LDAP_SASL_CERTIFICATE" value="/tmp/client.crt" />
<env name="TESTS_ZEND_LDAP_SASL_KEY" value="/tmp/client.key" />
<env name="TESTS_ZEND_LDAP_IDLE_TIMEOUT" value="4" />
</php>
</phpunit>