# LDAP module test suite

- Thread: https://externals.io/message/86648
- Original archive: https://news-web.php.net/php.internals/86648
- Started by come.bernigaud@opensides.be on 2015-06-15T13:02:18+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #86648 — come.bernigaud@opensides.be — 2015-06-15T13:02:18+00:00

URL: https://externals.io/message/86648#86648

Hello,

What is the needed configuration to be able to run the whole LDAP test suite?
It connects with "cn=Manager,dc=my-domain,dc=com" but then tries to create "dc=my-domain,dc=com".
How can "cn=Manager,dc=my-domain,dc=com" exist if "dc=my-domain,dc=com" does not?

Is there any information about a known configuration to be able to pass all LDAP tests?

Côme

PS: Also, is there a way to launch only ldap tests with PHP Makefile?

---

## #86652 — Chris Wright — 2015-06-15T13:43:48+00:00

URL: https://externals.io/message/86648#86652 · In reply to: #86648

On 15 June 2015 at 14:02, Côme BERNIGAUD <come.bernigaud@opensides.be>
wrote:

> Hello,
>
> What is the needed configuration to be able to run the whole LDAP test
> suite?
> It connects with "cn=Manager,dc=my-domain,dc=com" but then tries to create
> "dc=my-domain,dc=com".
> How can "cn=Manager,dc=my-domain,dc=com" exist if "dc=my-domain,dc=com"
> does not?
>
> Is there any information about a known configuration to be able to pass
> all LDAP tests?
>
> Côme
>
> PS: Also, is there a way to launch only ldap tests with PHP Makefile?
>
>
You can't do it with "make test" afaik, but you can manually invoke
run-tests.php and pass it a path, e.g. php run-tests.php ext/ldap/

---

## #86663 — Michael Wallner — 2015-06-15T15:22:59+00:00

URL: https://externals.io/message/86648#86663 · In reply to: #86652

> On 15 June 2015 at 14:02, Côme BERNIGAUD <come.bernigaud@opensides.be>
> wrote:
> 
> > […]

Check out ext/ldap/tests/connect.inc; you can pass various parameters
from the environment.

> > […]
> You can't do it with "make test" afaik, but you can manually invoke
> run-tests.php and pass it a path, e.g. php run-tests.php ext/ldap/
> 

You can run `make test TESTS=path/to/ext/ldap`.


-- 
Regards,
Mike

---

## #86665 — come.bernigaud@opensides.be — 2015-06-15T15:36:38+00:00

URL: https://externals.io/message/86648#86665 · In reply to: #86663

>
> Check out ext/ldap/tests/connect.inc; you can pass various parameters
> from the environment.
>

I know that, but we can’t select the base, and it does not change anything to the fact that it tries to add the base, which have to already exists for the admin user account to exists.
Can I try and fix this? (Add an env var for the base, remove base creation.)

My original question was if someone managed to pass all ldap tests as is. And how he did that (which admin/base situation he used for both connection and base creation to work)

>
> You can run `make test TESTS=path/to/ext/ldap`.
>

Awesome, thank you!
