N
N
NeuroPastor2020-04-15 11:10:18
LDAP
NeuroPastor, 2020-04-15 11:10:18

How to fetch adldap2-laravel?

Hello colleagues!
I rummaged for 2 days everything I could, the problem was not solved.
Problem directly in connection and selection of users. I have never worked with AD before and I try to stay away from Windows.
The AD structure with nesting is as follows:
-DC=domain,DC=ru
--OU=Organizations
---OU=Region District
----OU=Organization can consist of several words
-----OU=Department in Organization
-- ----CN=Full name of the user in Cyrillic

At the same time, the login of the user who logs in is stored in the fields mail, userprincipalname.
What parameters should be specified in config/ldap.php and config/ldap_auth.php ?
Everything seems to be clear with the connection, but the selection does not occur through php artisan adldap:import, as well as authorization.

Now the code in .env is this:

LDAP_HOSTS=192.168.10.10
LDAP_BASE_DN=dc=domain,dc=ru
LDAP_ACCOUNT_PREFIX=uid=
LDAP_ACCOUNT_SUFFIX=,dc=domain,dc=ru
LDAP_USERNAME=cn=username,dc=domain,dc=ru
LDAP_PASSWORD=password

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question