@Francis Fernandez Hi Francis! Yes you absolutely can. However, to do so, you will have to enable LDAP in Azure AD. Here’s Microsoft’s documentation regarding this: docs.microsoft.com/en-us/azure/active-directory/fundamentals/auth-ldap Keep in mind, some LDAP operations are not supported in Azure AD, since it’s not a “real” LDAP server.
Hi! Would you please make a video with testing messages? I mean when a user is connected succesfully it maybe throw a message like "Password must be renewed soon..." or something like that. I cannot get throught it and I really need something to get it for my work. Thank you!
3 роки тому
Hi Manuel, the best popup boxes messages i use is "SweetAlert2" realrashid.github.io/sweet-alert/ beautifull responsive and customizable and easy to install and use try it and send me back
Hi Thank you for the content but I think (correct me please if i'm wrong) this video is already deprecated?!. With the new verison of the LadapRecord documentation, it is all different, I can't understand where (in which part of code) the changes supposed to be done. Also I become in every singel step a new error. Now I'm struggling with Fortify... I'm a new user of Laravel and LdapRecord. Could you Maybe explain how should I understand the new dcumentation. Or may be a new Video about this content ?
2 роки тому+1
Yes Sam i do agree, honestly i was preparing to do a new tutorial updated but i was very busy, i promise if i find some free time i will do so, good luck dude !
@@sysadiq7 Hey Sorry I gave up LdapRecord and I used my simple database and a hashed password for a basic authentification in laravel. It was a Projekt for the University. I should try to figured it out because it is very interesting. If I find something I'll tell you.
hi i used laravel 5.8 with ldaprecord update all files with your recommended when i login with username and password i got this message "These credentials do not match our records." I did this : $ php artisan config:cache Configuration cache cleared! Configuration cached successfully! The problem remains can you help me to resolve this ? thanks'
hi your code working with me but when i am use jumpcloud it show These credentials do not match our records.
3 роки тому
It seems that jumpcloud is an AD and not OpenLDAP so: 1 - Please check if in auth.php under 'provider' under 'ldap' under 'model' you have this : - 'model' => LdapRecord\Models\ActiveDirectory\User::class, and not : 'model' => LdapRecord\Models\OpenLDAP\User::class, 2 - if your username is uid or email or samaccountname login please go define it in LoginController.php inside “protected function credentials(Request $request)” in “'uid' => $request->get('username'),” VERY IMPORTANT! run ''php artisan config:cache'' each time you modify your .env file please send me your feedback
thank you for the amazing tutorial. Unfortunately am having an error that says These credentials do not match our records. Meanwhile when i test my ldap connection it returns successful. please help
4 роки тому
Thank u for your nice word Amos, first of all you have to run ''php artisan config:cache'' each time you modify your .env, so please do so and tell me what you got
@ hello Abdelhalim am still having the same error.
4 роки тому
@@amosabugri7013 ok so try to clone may repo github.com/salim114/ldap2020 it is already ready please check out those files : - auth.php - .env - User.php - Login.blade.php - LoginController.php send me your faeedback
It worked fine for me with the test server, but when deploying it with an active directory of Windows server 2016 it doesn't work, it says that the credentials are not correct.
3 роки тому
Please check if in auth.php under 'provider' under 'ldap' under 'model' you have this : - 'model' => LdapRecord\Models\ActiveDirectory\User::class, and not : 'model' => LdapRecord\Models\OpenLDAP\User::class,
@ You already use both options and none of them worked for me, I cleared cache and nothing, I don't know if I have to use other parameters, has it worked for you with Windows Server?
when I put PHP artisan ldap:test show this error " ldap_bind(): Unable to bind to server: Can't contact LDAP server. Error Code: [-1] Diagnostic Message: null"
Omar go check your LDAP_HOST the error you post genarely comes from there in your .env file and don't forget to run "php artisan config:cache" each time you make changes on your .env file
I cant get it working on my local ldap server. Test comes successful but I cant login through the UI. Any suggestions?
3 роки тому
Hi Arturas Please check if in auth.php under 'provider' under 'ldap' under 'model' you have this : - 'model' => LdapRecord\Models\ActiveDirectory\User::class, and not : 'model' => LdapRecord\Models\OpenLDAP\User::class, also try to to run ''php artisan config:cache''
@ Just tried to clear. Did not helped. I'm using these .env configs: LDAP_LOGGING=true LDAP_CONNECTION=default LDAP_HOST=127.0.0.1 LDAP_USERNAME=null LDAP_PASSWORD=null LDAP_PORT=10389 LDAP_BASE_DN="dc=example,dc=com" LDAP_TIMEOUT=5 LDAP_SSL=false LDAP_TLS=false Ldap connection test comes successful. But when I try to login using UI, I get that credentials are wrong. i only have created one user so cant be wrong.
@ Thank you, Abdelhalim. I watched your video and it seemed very helpful - but when I actually went to implement it, ldaprecord had a new version out and it was slight different from v1. Thank you again.
3 роки тому
@@SeongBae ah ok i see now ! Well i will think about it thank you
@ I tried it, but login failed. Meanwhile when i test my ldap connection it returns successful. I have followed step-by-step instructions, but I don't understand / don't know about php artisan "make: ldap-model User" and "guid" column in users table.
4 роки тому
@@dngochuynh please check out those files : - auth.php - .env - User.php - Login.blade.php - LoginController.php send me your faeedback
Author of LdapRecord here - thanks so much for covering LdapRecord and providing this tutorial for developers! ❤️😄
Oh ! Wow ! It is absolutely the most beautiful comment ever ! Thank you so so much steve it is an honor i am delighted
@Francis Fernandez Hi Francis! Yes you absolutely can. However, to do so, you will have to enable LDAP in Azure AD. Here’s Microsoft’s documentation regarding this:
docs.microsoft.com/en-us/azure/active-directory/fundamentals/auth-ldap
Keep in mind, some LDAP operations are not supported in Azure AD, since it’s not a “real” LDAP server.
pro trick : you can watch series at Flixzone. Been using them for watching all kinds of movies lately.
@Gael Ridge yup, have been watching on Flixzone} for years myself :)
hey can you please check your linkedin inbox
thnx Mr. @Abdelhalim may allah give you all u wish, it was very helpfull
Thank you very much Âh mêd mansour i am honored
Hi bro abdelhalim, I'm impressed, I congratulate you for this wonderful tutorial, already looking forward to see the rest.
Well done khouya.
Thank you ikram i am delighted
thank you for this amazing tutorial,, i'll use later for a project that i'm working on :)
Hamdullah, Thank you very much Abdelhalim
You are welcome my freind
Masha'Allah bro. Seriously enjoyed your video and you positivity. Nice work, this is super helpful.
Oh walah i was very pleased with your word and it is very encouraging thanks very much barak Allah fik
Im not watching video yet but .. thanks so much thanks . Because i have to learn it
Thanks i wish you the best
Really awesome tutorial sir..Thank you.
Thank you Asenka i appreciate it
Good Tutorial. Video Suggestion: LdapRecord with multiple domains using laravel Fortify
Thank you @Fabio, well ! I am planning to make a Real active directoray and may be i will use fortify
Hi! Would you please make a video with testing messages? I mean when a user is connected succesfully it maybe throw a message like "Password must be renewed soon..." or something like that. I cannot get throught it and I really need something to get it for my work. Thank you!
Hi Manuel, the best popup boxes messages i use is "SweetAlert2" realrashid.github.io/sweet-alert/
beautifull responsive and customizable and easy to install and use try it and send me back
Hi Thank you for the content but I think (correct me please if i'm wrong) this video is already deprecated?!.
With the new verison of the LadapRecord documentation, it is all different, I can't understand where (in which part of code) the changes supposed to be done.
Also I become in every singel step a new error. Now I'm struggling with Fortify... I'm a new user of Laravel and LdapRecord. Could you Maybe explain how should I understand the new dcumentation. Or may be a new Video about this content ?
Yes Sam i do agree, honestly i was preparing to do a new tutorial updated but i was very busy, i promise if i find some free time i will do so, good luck dude !
Thanks a lot for your prompt answer!
Hi Sam, were you be able to find any workaround for the new version of the LdapRecord? If yes, please share. Thank you.
@@sysadiq7 Hey Sorry I gave up LdapRecord and I used my simple database and a hashed password for a basic authentification in laravel. It was a Projekt for the University. I should try to figured it out because it is very interesting. If I find something I'll tell you.
hi
i used laravel 5.8 with ldaprecord
update all files with your recommended
when i login with username and password
i got this message "These credentials do not match our records."
I did this :
$ php artisan config:cache
Configuration cache cleared!
Configuration cached successfully!
The problem remains
can you help me to resolve this ?
thanks'
hi your code working with me but when i am use jumpcloud it show
These credentials do not match our records.
It seems that jumpcloud is an AD and not OpenLDAP so:
1 - Please check if in auth.php under 'provider' under 'ldap' under 'model' you have this : - 'model' => LdapRecord\Models\ActiveDirectory\User::class, and not : 'model' => LdapRecord\Models\OpenLDAP\User::class,
2 - if your username is uid or email or samaccountname login please go define it in LoginController.php inside “protected function credentials(Request $request)” in “'uid' => $request->get('username'),”
VERY IMPORTANT!
run ''php artisan config:cache'' each time you modify your .env file
please send me your feedback
@
LDAP_LOGGING=true
LDAP_CONNECTION=default
LDAP_HOST=ldap.jumpcloud.com
LDAP_USERNAME=null
LDAP_PASSWORD=null
LDAP_PORT=389
LDAP_BASE_DN="uid=,ou=,o=,dc=jumpcloud,dc=com"
LDAP_TIMEOUT=5
LDAP_SSL=false
LDAP_TLS=false
[2021-06-03 19:17:33] local.INFO: LDAP (ldap://ldap.jumpcloud.com:389) - Operation: Binding - Username:
[2021-06-03 19:17:33] local.INFO: LDAP (ldap://ldap.jumpcloud.com:389) - Operation: Bound - Username:
[2021-06-03 19:17:34] local.INFO: LDAP (ldap://ldap.jumpcloud.com:389) - Operation: Search - Base DN: - Filter: (&(objectclass=top)(objectclass=person)(objectclass=organizationalperson)(objectclass=user)(uid=)(!(objectclass=computer))) - Selected: (objectguid,*) - Time Elapsed: 628.81
still same
@Shivam
try this :
LDAP_LOGGING=true LDAP_CONNECTION=default LDAP_HOST=ldap://ldap.jumpcloud.com
LDAP_USERNAME=null LDAP_PASSWORD=null LDAP_PORT=389 LDAP_BASE_DN="dc=jumpcloud,dc=com"
Or
LDAP_BASE_DN="o=,dc=jumpcloud,dc=com"
Or
LDAP_BASE_DN="ou=,o=,dc=jumpcloud,dc=com"
LDAP_TIMEOUT=5 LDAP_SSL=false LDAP_TLS=false
thank you! you are an angel!!
Oh ! Thank you very much i am so delighted 🥰
thank you for the amazing tutorial. Unfortunately am having an error that says
These credentials do not match our records. Meanwhile when i test my ldap connection it returns successful. please help
Thank u for your nice word Amos, first of all you have to run ''php artisan config:cache'' each time you modify your .env, so please do so and tell me what you got
@ hello Abdelhalim am still having the same error.
@@amosabugri7013 ok so
try to clone may repo github.com/salim114/ldap2020
it is already ready
please check out those files :
- auth.php
- .env
- User.php
- Login.blade.php
- LoginController.php
send me your faeedback
@ the files are the same as mine. what could possibly be the problem
@@amosabugri7013 i want to check your project if it's possible
It worked fine for me with the test server, but when deploying it with an active directory of Windows server 2016 it doesn't work, it says that the credentials are not correct.
Please check if in auth.php under 'provider' under 'ldap' under 'model' you have this :
- 'model' => LdapRecord\Models\ActiveDirectory\User::class,
and not : 'model' => LdapRecord\Models\OpenLDAP\User::class,
@
You already use both options and none of them worked for me, I cleared cache and nothing, I don't know if I have to use other parameters, has it worked for you with Windows Server?
@@danielpinilla9679 Did u find the solution?
hello i want to ask. when i logged in as tesla or someone else its show the account of newton too
how can i solve this problem
I'm used this library, it is working successfully on the localhost server but on my host didn't work
Ok ! Can you show me your providers in your auth.php file
And show the error if there is one please
when I put PHP artisan ldap:test show this error " ldap_bind(): Unable to bind to server: Can't contact LDAP server. Error Code: [-1] Diagnostic Message: null"
@ 'providers' => [
'ldap' => [
'driver' => 'ldap',
'model' =>LdapRecord\Models\OpenLDAP\User::class,
'database' => [
'model' => App\Models\User::class,
'sync_passwords' => false,
'sync_attributes' => [
'name' => 'cn',
'email' => 'mail',
],
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
]
Omar go check your LDAP_HOST the error you post genarely comes from there in your .env file and don't forget to run "php artisan config:cache" each time you make changes on your .env file
I cant get it working on my local ldap server. Test comes successful but I cant login through the UI. Any suggestions?
Hi Arturas
Please check if in auth.php under 'provider' under 'ldap' under 'model' you have this :
- 'model' => LdapRecord\Models\ActiveDirectory\User::class,
and not : 'model' => LdapRecord\Models\OpenLDAP\User::class,
also try to to run ''php artisan config:cache''
@ I'm using Openldap. So it's 'model' => LdapRecord\Models\OpenLDAP\User::class
@@Arutras nice ! so try to clear your cache any time you make change to the ".env" file and use this "php artisan config:cache'"
@ Just tried to clear. Did not helped.
I'm using these .env configs: LDAP_LOGGING=true
LDAP_CONNECTION=default
LDAP_HOST=127.0.0.1
LDAP_USERNAME=null
LDAP_PASSWORD=null
LDAP_PORT=10389
LDAP_BASE_DN="dc=example,dc=com"
LDAP_TIMEOUT=5
LDAP_SSL=false
LDAP_TLS=false
Ldap connection test comes successful. But when I try to login using UI, I get that credentials are wrong. i only have created one user so cant be wrong.
@@Arutras same issue here dont know what im doing wrong i followed the whole video to the letter
please share resource links
Ok no probleme brov i just did it check it out thank you
Any chance you can create another video using v2 of ldcaprecord?
Am thinking about doing it with a Real active directoray thank you Seong for your suggestion
@ Thank you, Abdelhalim. I watched your video and it seemed very helpful - but when I actually went to implement it, ldaprecord had a new version out and it was slight different from v1. Thank you again.
@@SeongBae ah ok i see now ! Well i will think about it thank you
asslmkm brother, i follow ur video step by step but when login i get message these credential do not exist in our record. Any suggestion?
try to clear your cache any time you make changes on .env file
@ Still cannot sir same error message.
Are using openladp or active directoray
@ openldap can u publish ur code in github for reference
In my case and on my video i used this project : github.com/hurik/LdapRecord-Laravel-Example-Project
OK
Thank you for this amazing tutorial. These credentials do not match our records. Can guid field in database? Please help.
Hi, first of all you have to run ''php artisan config:cache'' each time you modify your .env, so please do so and write me back
@ I tried it, but login failed. Meanwhile when i test my ldap connection it returns successful. I have followed step-by-step instructions, but I don't understand / don't know about php artisan "make: ldap-model User" and "guid" column in users table.
@@dngochuynh please check out those files :
- auth.php
- .env
- User.php
- Login.blade.php
- LoginController.php
send me your faeedback
@ The files are the same as mine. The problem here is how to get the guid field or synchronize the guid field in the database. Please help.
@@dngochuynh try to follow from the sequence ua-cam.com/video/ghJC_FJAo20/v-deo.html