jotaelesalinas / laravel-adminless-ldap-auth

Authenticate users in Laravel against an adminless LDAP server
MIT License
210 stars 33 forks source link

autorise access for only certain user #35

Closed salim114 closed 4 years ago

salim114 commented 4 years ago

Hi, please i need your help. On your documentation we can notice that there is eight (08) user eight riemann, gauss, euler, euclid, einstein, newton, galieleo and tesla. The password is password for all of them. My question is : If i want to open my project for only two of them, tesla and newton (for example) 1 - what should i wrote !? 2 - where should i wrote it ? (is it in .env ? if yes what to wrote ?)

jotaelesalinas commented 4 years ago

Hi @salim114 , I would implement it inside the attemptLogin() method, but... I highly discourage you to do that. Bear in mind that this proof-of-concept connects to a public server. You will not be able to modify the existing users and passwords and it may well disappear in the future. Also, anyone will be able to connect to your application if they somehow discover that it connects to this public server. You really should connect to your own LDAP server.