Example Laravel project for LdapRecord-Laravel with the Forum Systems Online LDAP Test Server.
- Clone the project
- Change in the project folder
- Run
composer install
- Copy the
.env.example
to.env
- Setup the your database in the
.env
file - 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
- Run
php artisan key:generate
- Run
php artisan migrate
- Open site and login with username
einstein
and passwordpassword
(Check Online LDAP Test Server for more information of the Online LDAP Test Server)