Repository navigation
LDAP - always write user & group data to database? #37069
Unanswered
michaelzdravkovski
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello all,
We are trying to leverage LDAP for User Federation and are running into a few issues for our use case.
We require group memberships to be written to the database table 'user_group_membership'.
Within the group-ldap-mapper, we set mode to 'IMPORT', and within LDAP we set Edit mode to 'UNSYNCED' as these appear to be the best way to import data into the database and populate that table. This also means that group memberships will not be able to be synced going forward unless we delete the user as it only writes to database on the user's first import (deleting will give user a new ID when imported again - also problematic).
READ_ONLY group-ldap-mapper merges both dbs, which is also problematic for us as new groups will not override existing groups in the database, so users will have old and new groups.
What is the best way to:
a) Write to the database with syncs as our application makes use of this table (requires us to use 'IMPORT' and 'UNSYNCED').
b) Continue using automatic/manual syncs to show new group mappings for an existing user (not possible with the above).
c) Do the above while keeping the same user ID
This doesn't seem possible currently, any ideas on what can be changed?
All reactions