You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're on the right track. The way I've done this is to hook into the Symfony request start event (forget exactly what it is called at the moment), and if the user is authenticated then you can modify the config of the LdapManger class and do setUsername() and setPassword(). For that to work you need to encrypt the password as a session variable anyway, then decrypt and use it in the previous step. Then when the connection actually is used it will utilize those credentials on the bind.
I can pull up the code sometime this week to give a more concrete example since I'm doing this exact thing in a project. Apologies for the late response by the way.
See: #17
Hi,
currently i'm building something like an LDAP UI.
Instead a hardcoded bind user, I want to use the credentials from the user login.
Since since works on the login fine, I want to use the credentials from the user for the whole session.
Any ideas, how to save (encrypted?) the credentials in the session and reuse them for the user bind?
Why?
For example: It impossible that a (non admin) can modify other objects then itself.
The text was updated successfully, but these errors were encountered: