Closed AlKult closed 5 years ago
I think this is a duplicate of https://github.com/nickw444/flask-ldap3-login/issues/57, with the solution here
In order to fix this problem I had to import my User model into my init file. This automagically sets the _save_user callback.
I think this is a duplicate of #57, with the solution here
In order to fix this problem I had to import my User model into my init file. This automagically sets the _save_user callback.
I've imported my User model into my init file, but it's made no dfference, I'm afraid. The error is exactly the same.
Best regards, Albert.
OK, my bad. I didn't realise this module had to save verified credentials somewhere (it was not optional, that is), so even though the User module was loaded, there was no logic to save credentials coming from the ldap module. As soon as I've fixed the logic, it started to work.
Hi,
The authentication itself works fine, but the application appears to be failing down the road.
In order to troubleshoot this, I created the following script:
When I run it, it returns the following:
That is, the authentication is successful, but response.user_groups is empty. response.user_info returns loads of info from the AD, and the groups are contained in 'memberOf' within it. How do I fix this? Is there any way to tell it where in user info to search for user groups for? Or is this something else?
Best regards, Albert.