-
Notifications
You must be signed in to change notification settings - Fork 12
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
failure adding user in ldap when domain requires custom user_object_classes #67
Comments
Attaching log from ipa-tuura here: |
I will also note that if I do not use custom User Object Classes, the user is added to LDAP but, SSSD on the ipa-tuura system cannot resolve the user info because it does not contain the posixAccount object class. |
Looks like ipa-tuura expects a list of objectclasses instead of a single string: https://github.com/freeipa/ipa-tuura/blob/main/src/ipa-tuura/domains/models.py#L82 We need to add further processing for it. |
Hi Antonio, The Keycloak plugin was sending this data as a list originally, but it wasn't working so Scott and I thought to try sending it as a single string. In that case Scott can you provide the logs/failure of the original issue with the user object classes sent as a list of strings/ |
IIRC I never got good debug output from ipa-tuura that showed what we were looking for. On the Keycloak side though, using the original version of the plugin, I see this:
@antoniotorresm How can I enable debug logging on the ipa-tuura side to get more useful info? |
Assuming you're using the ipa-tuura container, you can login into it:
and then get the service logs with |
I'm running
Should I be using a different container now? |
I'm testing with a 389 Directory Server that is setup on Fedora 38 like this:
I used Keycloak 17 with the Storage Plugin from here:
https://github.com/justin-stephenson/scim-keycloak-user-storage-spi/tree/kc17_test_user_extra_attrs_string
In Keycloak for LDAP User Object Classes, I added:
posixAccount, nsPerson, nsAccount, nsOrgPerson
When I add a user in Keycloak, I'm seeing an error from ipa-tuura and the user account does not appear to be added to LDAP. I see this in the journal:
EDIT:
I should note that on the 389 server, I enabled the DNA plugin to handle automatic UID/GID assignment when I was troubleshooting why SSSD could not see the users in LDAP. That's when I also tried adding the custom User Object Classes.
DNA plugin config:
The text was updated successfully, but these errors were encountered: