Skip to content

romatexdev/OpenLDAP-auth-in-Laravel-8

Repository files navigation

Build Status

Laravel 8 with LdapRecord framework in OpenLDAP settings

Setup

  1. Clone the project
  2. Change in the project folder
  3. Run composer install
  4. Copy the .env.example to .env
  5. Setup the your database in the .env file
  6. Add these lines at the end of the .env file
LDAP_LOGGING=true
LDAP_CONNECTION=default
LDAP_HOST=ldap.forumsys.com
LDAP_USERNAME=null
LDAP_PASSWORD=null
LDAP_PORT=389
LDAP_BASE_DN="dc=example,dc=com"
LDAP_TIMEOUT=5
LDAP_SSL=false
LDAP_TLS=false
  1. Run php artisan key:generate
  2. Run php artisan migrate
  3. Open site and login with username einstein and password password (Check Online LDAP Test Server for more information of the Online LDAP Test Server)

If you want to import all ldap users run php artisan ldap:import users

About

OpenLDAP-auth-in-Laravel-8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published