Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for broken JSON response when ldap group id is binary #4185

Merged
merged 1 commit into from
Aug 25, 2024

Conversation

simonpoess
Copy link
Contributor

changed placeholder in ldap_groups_roles queries to reflect the non-integer value

My Problem was, when using Teampass with Active Directory, I didn't get the right amount of Roles through the LDAP Synchronization, with Int I got only 3 roles through the Synchronization, so we had the idea to change the int value to a md5 hash.
In my case it worked and I got all Roles through the Active Directory.
My next problem was, that Teampass mapped some of the Active Directory Roles with some Teampass Roles I imported through the User Synchronization. When I tried to map a Role to another Role and hit Refresh, the change was reverted. After a bit of research I found a similar issue where you posted a fix, most of it was already implemented but a placeholder change in roles.queries.php on line 746 was missing.

Additionally I had to change the placeholder in identify.php on line 1419 from %I to %s because the Roles didn't update on login. Through the change the User got their roles assigned on login and get updated after every Login.

changed placeholder in ldap_groups_roles queries to reflect the non-integer value
@simonpoess
Copy link
Contributor Author

Had to force push for signing

@nilsteampassnet nilsteampassnet merged commit 7a24879 into nilsteampassnet:master Aug 25, 2024
2 of 3 checks passed
@nilsteampassnet
Copy link
Owner

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants