With clients in LDAP you can't add/configure Glewlwyd OpenID Connect Plugin #81
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
KittenSquad/glewlwyd#81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the issue
When you add LDAP backend client module (valid one!), after logout/login in you can't add/configure Glewlwyd OpenID Connect Plugin.
I set log lovel to DEBUG, but logs are produced only when ldap is misconfigured:
To Reproduce
Add proper configured LDAP backend client module (you can list LDAP clients in Gwelwyd frontend), logout from Gwelwyd, log in and go to Parameters/Plugins and try to add/reconfigure Glewlwyd OpenID Connect Plugin.
(When LDAP backend is not working - ex. misconfigured - after relogin you can work with Glewlwyd OpenID Connect Plugin).
Expected behavior
You can add/reconfigure OID plugin with working LDAP Clients plugin.
Screenshots

System (please complete the following information):
Hello @rurus9 ,
Thanks for reporting the issue. While I was trying to reproduce it, I found other bugs in the client LDAP backend so I fixed them too, it could led to glewlwyd crash in some cases...
Your initial problem is weird because I was able to reproduce it, but I couldn't exactly pinpoint why. The main reason is that the scopes list is
undefined, the reason why is that thefetchAllScopes()function hasn't been called or hasn't finished executing. I made a workaround in this commit to avoid this error message.The funny thing is that your problem isn't strictly related to the LDAP backend, but maybe getting clients from the LDAP backend takes too much time so that's how the error appeared.
Anyway, I'm too verbose here... Can you try with the last commit to see if the problem remains?
No luck with LDAP backend client module.
I built today docker (git pull; make docker).
It's clear installation, I use built-in SQLite database backend.
With this docker image, I can't enable "LDAP backend client module" at all.
When adding "LDAP backend client module" instance (after completion all fields) I see error "Error while adding module" and message message about few mandatory fields (which I completed), and the same info I can see in logs:
Enabled is set to "No".
When I try set Enabled to "Yes", I see the error message "Error while updating module" (and the same logs like with adding).
Did you notice "Glewlwyd ERROR: user_module_init database" in first line on log? Shouldn't it be " client_module_init"?
Is it a new LDAP backend you just created or an previous one? These errors look weird, as if the parameters are corrupted.
Concerning the word "user" in the client module, thanks for noticing, I'll make a cleanup.
Its a new, fresh docker instance, without additional configs (with default built-in SQLite database).
You can save "LDAP backend client module" config, so all required fields are filled (without it you can't save config).
Yes, it's weird...
Hello,
This should be fixed in
github.com/babelouest/glewlwyd@8c9fdbf172, it was an issue with readonly modules...Can you check again with the last commit in master?
It looks good, now I can configure/add OID plugin with LDAP clients active.
Thank you.