-
Notifications
You must be signed in to change notification settings - Fork 13
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
LDAP Configuration doesn't pick up AUTH_LDAP_USER_SEARCH correctly. #25
Comments
Did you try to enable django ldap logging to see if it gives something, with a config like (see also logging.py)?
|
Hmm, I have not yet attempted to do this inside the container as I couldn't come up with a good way to configure logging inside. Is there some trick to setting up logging or should I just exec in and edit the file? |
The file should be mounted in the container if you use the docker compose base setup. Just editing it and restarting the containers should be enough. |
Ah, I am deploying the containers via another mechanism. I'll just exec in and make an edit, will likely be tomorrow though before I can mess with this again though. |
Doesn't look like that has made any change. I ported all my ldap config down to the docker-compose environment so I could debug more easily. This is what the log shows for my login attempt:
Anything else I need to do to make logging work in the compose environment? |
Do you see some lines like |
Yes, I did see the relevant lines in the output. I am now running the
example directly to make my debug environment closer to the provided
example that is known working.
…On Wed, Feb 8, 2023, 4:52 PM Guillaume Mazoyer ***@***.***> wrote:
Do you see some lines like Loaded config <path to file> in your docker
logs?
Did you mount all the configuration directory like it's done in the docker
compose example ./configuration:/etc/peering-manager/config?
—
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARW3FTIPNTB57ZZ45QVFW3WWQPTFANCNFSM6AAAAAAUCA23OM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Too bad it does not log anything then :/ Did you try to inspect via
|
Well, that looks like a smoking gun to me:
What's curious to me is that in
This gets installed to |
OK so I tried to reproduce your issue and managed to so by using the default setup. However that's actually weird behaviour. Peering Manager settings load the
But for some reason, the main settings module does not pick these settings up.
I either don't know how this work anymore or there is an issue somewhere, well there's obviously an issue somewhere. |
At any rate I'm glad this isn't just me having missed something simple. Let me know if there's anything I can do to further assist in troubleshooting. |
Hi, any fixes or workarounds for this? I seem to be having the same issues. I've also tried volume mounting directly over |
some debug by volume mounting directly over
Watching access logs on LDAP I do not see peering-manager hitting it. Happy to try things if you have suggestions |
Progress Update + Final SuccessIndeed volume mounting/overwriting Also blink and you miss it, the commented out logging file has With the above two fixed I was able to see what i needed to adjust in my |
Nice catch. I completely overlooked this one. |
I am trying to debug LDAP configuration for allowing users to sign in with single sign on. My LDAP server is OpenLDAP with base schemas available for posixAccount and InetOrgPerson, which should be sufficient. SSO from netbox to ldap works, so I know it is possible to get django-auth-ldap to be happy with this setup at the least.
I added the following lines to my environment file to configure ldap, and changed the tag on the pulled image to be the ldap one:
I reliably get the error message that
AUTH_LDAP_USER_SEARCH
is not an instance ofLDAPSearch
:However when I check the type of that config attribute via a manage.py shell, the type is clearly
LDAPSearch
:I'm at my whit's end here for what could still be preventing this from working, is there something I've just missed?
The text was updated successfully, but these errors were encountered: