Ldap laravel 2020 (LdapRecord)

Поділитися
Вставка
  • Опубліковано 10 вер 2024

КОМЕНТАРІ • 102

  • @stevebauman
    @stevebauman 3 роки тому +24

    Author of LdapRecord here - thanks so much for covering LdapRecord and providing this tutorial for developers! ❤️😄

    •  3 роки тому +3

      Oh ! Wow ! It is absolutely the most beautiful comment ever ! Thank you so so much steve it is an honor i am delighted

    • @stevebauman
      @stevebauman 3 роки тому +1

      @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.

    • @gaelridge6501
      @gaelridge6501 3 роки тому

      pro trick : you can watch series at Flixzone. Been using them for watching all kinds of movies lately.

    • @forestandres5118
      @forestandres5118 3 роки тому

      @Gael Ridge yup, have been watching on Flixzone} for years myself :)

    • @muhsinzyne695
      @muhsinzyne695 2 роки тому

      hey can you please check your linkedin inbox

  • @Ahmedmansour-xi6er
    @Ahmedmansour-xi6er 3 роки тому +1

    thnx Mr. @Abdelhalim may allah give you all u wish, it was very helpfull

    •  3 роки тому

      Thank you very much Âh mêd mansour i am honored

  • @ikramhaichour5919
    @ikramhaichour5919 3 роки тому +2

    Hi bro abdelhalim, I'm impressed, I congratulate you for this wonderful tutorial, already looking forward to see the rest.
    Well done khouya.

    •  3 роки тому

      Thank you ikram i am delighted

  • @rebiaitarek9632
    @rebiaitarek9632 4 роки тому +4

    thank you for this amazing tutorial,, i'll use later for a project that i'm working on :)

  • @abdoul-wahaboubalbone7179
    @abdoul-wahaboubalbone7179 3 роки тому +2

    Hamdullah, Thank you very much Abdelhalim

    •  3 роки тому

      You are welcome my freind

  • @abdiazizaideed9038
    @abdiazizaideed9038 3 роки тому +1

    Masha'Allah bro. Seriously enjoyed your video and you positivity. Nice work, this is super helpful.

    •  3 роки тому +1

      Oh walah i was very pleased with your word and it is very encouraging thanks very much barak Allah fik

  • @amrullahdev8895
    @amrullahdev8895 3 роки тому +1

    Im not watching video yet but .. thanks so much thanks . Because i have to learn it

    •  3 роки тому

      Thanks i wish you the best

  • @AsankaRubasinghe
    @AsankaRubasinghe 3 роки тому +1

    Really awesome tutorial sir..Thank you.

    •  3 роки тому

      Thank you Asenka i appreciate it

  • @kotoo-1502
    @kotoo-1502 3 роки тому +2

    Good Tutorial. Video Suggestion: LdapRecord with multiple domains using laravel Fortify

    •  3 роки тому

      Thank you @Fabio, well ! I am planning to make a Real active directoray and may be i will use fortify

  • @ManuelPrieto88
    @ManuelPrieto88 3 роки тому +1

    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

  • @samcarter9111
    @samcarter9111 2 роки тому +1

    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 !

    • @samcarter9111
      @samcarter9111 2 роки тому +1

      Thanks a lot for your prompt answer!

    • @sysadiq7
      @sysadiq7 2 роки тому

      Hi Sam, were you be able to find any workaround for the new version of the LdapRecord? If yes, please share. Thank you.

    • @samcarter9111
      @samcarter9111 2 роки тому

      @@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.

  • @HoussamAsaad
    @HoussamAsaad 3 роки тому

    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'

  • @Kulkarni000000
    @Kulkarni000000 3 роки тому +1

    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

    • @Kulkarni000000
      @Kulkarni000000 3 роки тому

      @
      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

    • @Kulkarni000000
      @Kulkarni000000 3 роки тому

      [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

    •  3 роки тому

      @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

  • @ictssvgacdi6074
    @ictssvgacdi6074 3 роки тому

    thank you! you are an angel!!

    •  3 роки тому

      Oh ! Thank you very much i am so delighted 🥰

  • @amosabugri7013
    @amosabugri7013 4 роки тому +2

    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

    • @amosabugri7013
      @amosabugri7013 4 роки тому

      @ 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

    • @amosabugri7013
      @amosabugri7013 4 роки тому

      @ the files are the same as mine. what could possibly be the problem

    •  4 роки тому

      @@amosabugri7013 i want to check your project if it's possible

  • @danielpinilla9679
    @danielpinilla9679 3 роки тому

    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,

    • @danielpinilla9679
      @danielpinilla9679 3 роки тому

      @
      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?

    • @lissetvazquez310
      @lissetvazquez310 3 роки тому

      @@danielpinilla9679 Did u find the solution?

  • @gusmangusman1405
    @gusmangusman1405 3 роки тому

    hello i want to ask. when i logged in as tesla or someone else its show the account of newton too

  • @omarhd8946
    @omarhd8946 2 роки тому +1

    I'm used this library, it is working successfully on the localhost server but on my host didn't work

    •  2 роки тому

      Ok ! Can you show me your providers in your auth.php file

    •  2 роки тому

      And show the error if there is one please

    • @omarhd8946
      @omarhd8946 2 роки тому

      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"

    • @omarhd8946
      @omarhd8946 2 роки тому

      @ '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',
      // ],
      ]

    •  2 роки тому

      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

  • @Arutras
    @Arutras 3 роки тому

    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''

    • @Arutras
      @Arutras 3 роки тому

      @ I'm using Openldap. So it's 'model' => LdapRecord\Models\OpenLDAP\User::class

    •  3 роки тому

      @@Arutras nice ! so try to clear your cache any time you make change to the ".env" file and use this "php artisan config:cache'"

    • @Arutras
      @Arutras 3 роки тому +1

      ​@ 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.

    • @k_a_r_i_s-1812
      @k_a_r_i_s-1812 3 роки тому

      @@Arutras same issue here dont know what im doing wrong i followed the whole video to the letter

  • @k_a_r_i_s-1812
    @k_a_r_i_s-1812 3 роки тому +1

    please share resource links

    •  3 роки тому

      Ok no probleme brov i just did it check it out thank you

  • @SeongBae
    @SeongBae 3 роки тому +1

    Any chance you can create another video using v2 of ldcaprecord?

    •  3 роки тому +1

      Am thinking about doing it with a Real active directoray thank you Seong for your suggestion

    • @SeongBae
      @SeongBae 3 роки тому +1

      @ 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

  • @muhammadridhuanjaafar4291
    @muhammadridhuanjaafar4291 3 роки тому

    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?

    •  3 роки тому

      try to clear your cache any time you make changes on .env file

    • @muhammadridhuanjaafar4291
      @muhammadridhuanjaafar4291 3 роки тому

      @ Still cannot sir same error message.

    •  3 роки тому

      Are using openladp or active directoray

    • @muhammadridhuanjaafar4291
      @muhammadridhuanjaafar4291 3 роки тому

      @ openldap can u publish ur code in github for reference

    •  3 роки тому

      In my case and on my video i used this project : github.com/hurik/LdapRecord-Laravel-Example-Project

  • @jonathansigg8563
    @jonathansigg8563 3 роки тому +1

    OK

  • @dngochuynh
    @dngochuynh 4 роки тому

    Thank you for this amazing tutorial. These credentials do not match our records. Can guid field in database? Please help.

    •  4 роки тому

      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

    • @dngochuynh
      @dngochuynh 4 роки тому

      @ 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

    • @dngochuynh
      @dngochuynh 4 роки тому

      @ 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.

    •  4 роки тому

      @@dngochuynh try to follow from the sequence ua-cam.com/video/ghJC_FJAo20/v-deo.html