Closed (outdated)
Project:
LDAP Single Sign On
Version:
8.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2012 at 00:08 UTC
Updated:
20 Aug 2017 at 10:03 UTC
Jump to comment: Most recent
Comments
Comment #1
haydeniv commentedI have LDAP SSO connecting to a Windows 2008 Active Directory environment on an Apache web server running Perl's AuthenNTLM
We are having quite a bit of success with this config in inside of Apache's VirtualHost section (field in brackets need your environments information):
You have to be careful that you only limit AuthenNTLM to /user/login/sso because it will slowly crash your apache server if it gets too many simultaneous login request. Feel free to ping me with questions.
Comment #2
figtree_development commentedUsing the above conf in my sites-enabled. I am getting an redirect error. my site on load redirects to user/login/sso?destination= with a internal server error.
any thoughts? perl seems to like my conf settings file as the server restarted.
THe LDAP module works as designed SSO is the only piece that is causing a headache!
Thanks for your help in advance!
here is the errors in my log:
[Thu Oct 18 12:32:02 2012] [error] Bad/Missing NTLM/Basic Authorization Header for /user/login/sso
[Thu Oct 18 12:32:02 2012] [error] No PDC and no fallbackdomain given for domain ntdomain
[Thu Oct 18 12:32:02 2012] [error] Cannot get nonce
The best i can tell, is that my ldap server is ntlm v2 and i am trying to pass ntlm v1?
Comment #3
haydeniv commentedIf you are using Windows Vista or above by default IE transmits NTLMv2 unless you use a registry hack to tell it not to. I have been looking into a python version of an apache module to support NTLMv2. https://github.com/Legrandin/PyAuthenNTLM2
I have PyAuthenNTLM2 working in a test environment because we have GoodLink for mobile phones and tablets to connect to our private network which has a proprietary browser that only will send v2 credentials. So far it has worked in my test environment and is pretty simple to set up by following the README file.
Comment #4
figtree_development commentedCurious! Thanks haydeniv for the tip, we now have ldap auth working in a commandline environment. Its now working correctly once we correctly configured the the vhost file. Thanks! again.
Comment #5
jolimas commentedI'm having the same error. How did you fix it?
Thanks.
Comment #6
haydeniv commented@jolimas are you using NTLMv1 or v2? Some more information about your setup would be helpful.
Operating System Version
Apache Version
Current virtualhost config (sensor any sensitive data)
PHP Version
Comment #7
jolimas commentedHaydeniv,
I end up using the https://github.com/Legrandin/PyAuthenNTLM2, and now every works fine.
Thanks.
Comment #8
johnbarclay commentedI started to rough out the simpletest for ldap_sso. they are at http://drupalcode.org/project/ldap.git/blobdiff/2d319b15f70bced8ea594955...
The main work involved at this point is correctly setting or not setting $_SERVER, $_SESSION, and cookies within the simpletests. This is done within the function setSsoServerEnvironment().
LDAP SSO is particulary needy of simpletest coverage as it is difficult to test in multiple real environments.
Comment #9
grahlReview in regards to 8
Comment #10
grahl