You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/ldap/tests/README.md
+51-33Lines changed: 51 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
+
# The ldap extension tests
2
+
1
3
To ease testing LDAP-Setups we've created a vagrant-setup.
2
4
3
-
Prerequisits:
4
-
=============
5
+
## Prerequisites
5
6
6
-
You will need vagrant on your box. Get it from https://www.vagrantup.com
7
+
You will need [vagrant](https://www.vagrantup.com) on your box.
7
8
8
-
Usage:
9
-
======
9
+
## Usage
10
10
11
11
To use it follow these steps:
12
12
13
-
* Create a Vagrant-file with the following content.
13
+
* Create a `Vagrantfile` with the following content.
14
14
* Go to that directory and run "vagrant up"
15
15
16
-
```
16
+
```Vagrantfile
17
17
$setup = <<<SETUP
18
18
apt-get update
19
19
@@ -50,42 +50,55 @@ Vagrant.configure(2) do |config|
50
50
end
51
51
```
52
52
53
-
Now you will have a virtual machine up and running on IP-Address 192.168.10.33 listening on port 369 for incomming LDAP-connections. The machine is already configured to execute the LDAP-Tests
53
+
Now you will have a virtual machine up and running on IP-Address `192.168.10.33`
54
+
listening on port 369 for incomming LDAP-connections. The machine is already
55
+
configured to execute the LDAP-Tests.
54
56
55
-
The next step is to go into the PHP-Source-directory. Configure and make the source as appropriate.
57
+
The next step is to go into the PHP-Source-directory. Configure and make the
58
+
source as appropriate.
56
59
57
60
Before running the LDAP-Tests you need to set some environment-variables:
58
61
62
+
```bash
59
63
export LDAP_TEST_PASSWD="password"
60
64
export LDAP_TEST_BASE="ou=extldap,dc=nodomain"
61
65
export LDAP_TEST_USER="dc=admin,dc=nodomain"
62
66
export LDAP_TEST_HOST=192.168.33.10
67
+
```
63
68
64
-
Now you can run the test-suite by calling "make test". To test only the LDAP-Tests, run "make test TESTS=ext/ldap"
69
+
Now you can run the test-suite by calling `make test`. To test only the
70
+
LDAP-Tests, run `make test TESTS=ext/ldap`.
65
71
66
72
CAVEAT: The current setup does not (yet) test secure connections.
67
73
74
+
## Old README
68
75
69
-
========
70
-
OLD README
76
+
Most tests here rely on the availability of an LDAP server configured with TLS.
71
77
72
-
Most tests here relies on the availability of an LDAP server configured with TLS.
0 commit comments