Hey @Thomas!
I actually very much appreciate that description of LDAP. I get questions about it somewhat frequently, but have never needed to use it directly myself. Great explanation!
> But I have lot of questions about chain_provider. Why is it implemented at all…
Great! I don't know what the odds are of having an LDAP example slipped in to the curriculum might be but that would be great if it could.
Ahh, I see now. LDAP auth is successful, but the user class that's being set is the LdapUser and not the User class. So the question is how do I intercept the login process and use the User class instead of the LdapUser class…
…used ldap before with symfony 3 on a windows server. This works great. We even have 'single signon' working
But the problem is, i can not get it to work with centos 8, apache and symfony 5.
- I have modules installed on centos8. like ldap…
…But it didn't appeared to act so. For instance, if the user wasn't found in the ldap, it stopped and I got back to the login screen with the corresponding 'user unknown' exception displayed... and I've seen that the UserProvider parameter in…
…course where we will talk about authentication. I'm not sure if LDAP authentication will be covered there though, probably that deserves it own short course. Anyway, I counted your vote on LDAP and we will see if we can cover it in it. Unfortunately…
…course could be updated to Symfony 7 - as many things changed in the meantime. Also including LDAP authentication is something I will really love to see! I've been struggling with the Symfony documentation trying to get LDAP authorization working, but unfortunately without any success...
…that's a complex issue, I'm happy to hear you were able to workaround it. I personally don't use LDAP so it's hard to suggest you a better solution, but IMO this looks solid. I would recommend you to double-check the…
I think I'm getting the hang of the new security component but stuck on where to do somethings. Our application uses LDAP for authentication which has been successfully moved into CustomCrendentials - no problem there. However, we don't require a user be in the…
…question:
I wrote a unit test that checks the user login for a disabled user. In my CustomAuthenticator (i login against ldap and database) an AuthenticationException is thrown in the 'authenticate' method. This is converted into a 'JsonResponse' in 'onAuthenticationFailure' with the error message and…
Hi Annemieke!
Bah, unfortunately, I have less than zero experience with LDAP + Docker, let alone LDAP + Docker + Apache... so I can't even muster a guess here.
Sorry I can't be useful in this case! Good luck!
Hey |mention:68143| ,
Thank you for your interest in SymfonyCasts tutorials! Unfortunately, we don't have a course about LDAP yet, and we're not planning to create on in the nearest future, but I added your idea to our ideas pool. For now, I…
Hello there!
I was wondering if you would make a tutorial using Symfony 6 and Authenticating against an LDAP server, that´s something that my project needs, I have followed the official documentation but I feel lost and I dont know how to test it, thanks…
…!
My question is:
We use ldap for authentication and authorization in symfony 5.4.
This works fine as long as we do not set 'enable_authenticator_manager' to true.
We want to use the LdapAuthenticator class of course, but the code first goes to `HttpBasicAuthenticator…
…when (the first) authentication is not done with users entity but with ldap (active directory). The ldap authentication works great. We even use ldap for our voters. Roles and groups are organized in ldap.
What security_tokens do i use and do i need a…
…not expecting that behavior. I believe your case fits into having multiple firewalls enabled, one for your login form, and another one for the Ldap form. Here's an example: https://symfony.com/doc/current/security/entry_point.html#multiple-authenticators-with-separate-entry-points
…I change paths to login
```
form_login:
login_path: login
check_path: login
enable_csrf: true
form_login_ldap:
service: Symfony\Component\Ldap\Ldap
login_path: ldaplogin
check_path: ldaplogin
search_dn: 'cn=ldapuser,cn=Users,dc=example,dc=com'
search_password: 'ldapuser_password'
dn_string: '{username}'```
And under…
…login:
login_path: login
check_path: login
enable_csrf: true
form_login_ldap:
service: Symfony\Component\Ldap\Ldap
login_path: login_ldap
check_path: login_ldap
dn_string: '{username}'`
but without success. The users are still validated only from local database, but not from LDAP…
…authenticators? I thnink yes, I have...
`form_login:
login_path: login
check_path: login
enable_csrf: true
form_login_ldap:
service: Symfony\Component\Ldap\Ldap
login_path: login
check_path: login
dn_string: '{username}'`
So what did you thing I have wrong in security.yml?
…database first for the user's credentials, and in case it was not found, you'll use your Ldap service to fetch the user. Here are the details of how to write a custom authenticator: https://symfony.com/doc/current/security/custom_authenticator.html
Cheers!
x
85