-
Notifications
You must be signed in to change notification settings - Fork 39
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
NAV does not follow LDAP referrals during authentication #1166
Comments
(by bruno-galindro) |
(by mbrekkevold) The attached logs contain only OpenLDAP debug logging, not NAV debug logging, so I can't say for sure what NAV is doing. You would have to make sure [levels] Also, would you please post your |
(by bruno-galindro) Here is my ldap config: [ldap] |
(by mbrekkevold) I'm looking into it further, but I'm not sure there's anything we can do except disable referral chasing in libldap. |
(by mbrekkevold) |
(by bruno-galindro) Yes! This is exactly what I'm thinking too, based on pcap files sent. If you see, in the first communication, the correct bind user is sent to my AD DC. So, when it tells to NAV that exists 3 more DCs (referrals), NAV is trying to do a bind on these servers without the correct bind user. It seems that it sent a '' user to the referrals instead of the correct bind user. You can send to me an updated code to do a simple test. What do you think? |
(by mbrekkevold) |
(by bruno-galindro) root@nav:~# patch /usr/share/pyshared/nav/web/ldapauth.py naive-untested-ldap-referral-chasing.patch But an error was displayed in web browser: Something went wrong I've sent to you by mail the apache's log. |
(by mbrekkevold) |
(by bruno-galindro) Environment: Request Method: POST Traceback: Exception Type: TypeError at /index/login/ |
(by mbrekkevold) |
(by bruno-galindro) Thank you very much again! |
(by bruno-galindro) Sent apache log to you by mail. |
(by bruno-galindro) |
(by mbrekkevold) |
(by bruno-galindro) |
Following referrals is disabled, to work around the error caused by Active Directory's referrals to other servers. Uninett#1166
When I configure NAV to search my entire AD domain, it reports the attached error (error.log and error.pcap) and the user can't login.
But, if I change the config to use a specific OU as base DN, the user can login successful, as you can see in the attached files (ok.log and ok.pcap).
Morten, I've sent to you by mail the password of attached file.
Imported from Launchpad using lp2gh.
The text was updated successfully, but these errors were encountered: