DirectoryTree / LdapRecord

A fully-featured LDAP framework.
https://ldaprecord.com
MIT License
500 stars 44 forks source link

implement in custom login, Controller, and Model. #727

Closed raiden909 closed 2 months ago

raiden909 commented 2 months ago

Hi everyone i hope all of you be healthy, So i want to make the login authentication using LDAP and the problem is creating the own model, Controller. Okay here's my own route:

Action Login / Logout

Route::post('/doLogin','AdminController@doLogin'); Route::get('/doLogout','AdminController@doLogout'); Route::get('/','AdminController@index'); Route::get('/menu','AdminController@menu');

here's my own blade: <!DOCTYPE html>

@include('head') @include('foot')

the problem is i dont how to connect the ldap from .env or perhaps how to an Active Directory ldap model and the controller in laravel so i can autenticate the ldap very well. Your Assistance is really helpful

Thank you guys