S
S
segio_tt2019-08-26 22:48:13
Laravel
segio_tt, 2019-08-26 22:48:13

How to make authorization through ldap?

Good evening everyone. There was a situation when you need to do authorization using ldap, that is, internal laravel authorization is not needed. Tell me
how to disable authorization in order to receive a login and password in some controller, then knock on a third-party service?
I will be grateful for any answer on the merits of the question. Ps, there is a package that does such magic, but there are not enough examples.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
segio_tt, 2019-08-27
@art055

The solution turned out to be quite simple, 1 step, cors laravel , and 2 step connect ldap_connecrion , then search for the desired user.

R
Razgelday, 2019-08-26
@Razgelday

Surely you can solve your problem by writing your own Authentication Guard (see https://laravel.com/docs/master/authentication#add... ) and/or writing your own User Provider (see https://laravel .com/docs/master/authentication#add...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question