This is my first Flask project as I failed to find something usable for my usecase. So this will be a very simple self-service portal above an LDAP directory. Users should be able to see their LDAP data and change a few selected attributes (password, mobile numbers etc.).
I do not want to use a global LDAP role to access the user data but my ACLs are already working so that a user can modify the required ones while being authenticated to the directoy. As they need to auhenticate in any case for login I'm searching for a way to keep that LDAP connection open for that user. I'm not even sure this is possible though.
In case it's not are there any other hints how this could be implemented? Saving the password somewhere like in Flask sessions (sounds like a security risk) so I can access it from the Flask application?