A
A
Alexey2020-12-30 22:03:01
PHP
Alexey, 2020-12-30 22:03:01

How to configure ldap_bind (php) to connect to OpenLDAP not by DC, but by username?

In the documentation for ldap_bind() and in the comments, there are examples where the login is specified as "myuser" or "[email protected]" or "domain/myuser"
https://www.php.net/manual/en/function.ldap -bind.php
And I connect only by dn, for example 'cn=myuser,dc=domain,dc=local'.
Tell me, please, where to dig? I can't find anywhere what this setting is called. The examples give the impression that it just works out of the box for everyone.
Possibly in the same series: How do I manage the dc/rnd name pattern in openldap?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2020-12-31
@alexdjachenko

It says here that only MS AD can do a short login, but OpenLDAP can't
https://stackoverflow.com/questions/50906055/openl...

K
Karpion, 2020-12-31
@Karpion

Probably, they store myuser" or "[email protected]" or "domain/myuser" in some dn

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question