I am using the following link as tutorial for LDAP Authenticate https://github.com/jotaelesalinas/laravel-simple-ldap-auth. But instead of OpenLDAP, I am trying to authenticate via Active Directory using sAMAccountName (firstname.lastname). I had some hick-up initially but have replaced my code with working. Hope this will help someone!
Steps To Reproduce:
.env
LDAP_SCHEMA=ActiveDirectory
LDAP_HOSTS=10.12.123.456 // to be replaced
LDAP_BASE_DN=dc=domain,dc=net // to be replaced
LDAP_USER_ATTRIBUTE=sAMAccountName
LDAP_USER_FORMAT=%s@userEmail.com // to be replaced
LDAP_CONNECTION=default
LDAP_ADMIN_USERNAME=`username` // NO DOT, but for user its firstname dot lastname
LDAP_ADMIN_PASSWORD=`password`
Description: WORKING CODE
I am using the following link as tutorial for LDAP Authenticate https://github.com/jotaelesalinas/laravel-simple-ldap-auth. But instead of OpenLDAP, I am trying to authenticate via Active Directory using sAMAccountName (firstname.lastname). I had some hick-up initially but have replaced my code with working. Hope this will help someone!
Steps To Reproduce:
.env
database/migrations/2014_10_12_000000_create_users_table.php
config/ldap.php
config/ldap_auth.php
app/Http/Controllers/Auth/LoginController.php