Closed (fixed)
Project:
Lightweight Directory Access Protocol
Version:
7.x-1.x-dev
Component:
SimpleTests
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2012 at 16:51 UTC
Updated:
22 May 2012 at 22:35 UTC
Jump to comment: Most recent file
Comments
Comment #1
johnbarclay commentedthanks. this looks good to me. But would the following work and can you test it:
Its just slightly cleaner and a preg_replace might even be a one liner.
Comment #2
smsearcy commentedThe issue I see is that the order of domain and username depends on which character $remote_user is split on, i.e. user@domain vs. domain\user.
So I think it would need to be something like this (haven't tested it yet, but I will):
I'm open to better ways to write that, or maybe I'll think of something else while testing.
Comment #3
smsearcy commentedOk, here's some working code (patch attached). However, looking at the context of the code I have a new question, because in the prior "case 'mod_auth_kerb':" section, it strips out the domain/realm automatically. For consistency, maybe this code should go into the "case 'mod_auth_sspi':" section? Or the realm should always be stripped out and it was an oversight that it wasn't in SSPI authentication?
Either way, I think this functionally works (at least with "domain\user", I don't have the ability to test "user@domain").
Comment #4
johnbarclay commentedlooks good to me. I'll apply this as soon as I get back from drupalcon.
Comment #5
johnbarclay commentedThanks. I committed this to 7.x-1.x-dev. Can you double check it when you get a chance as well as someone who uses the user@domain format. I'm changing this to be of component simpletest so I don't forget to add testing.
Comment #6
smsearcy commentedI verified that the current development snapshot works for me on IIS with usernames in the format of domain\user.
Thank you for your work on this project.
Comment #7
johnbarclay commentedThanks. appreciate the testing and follow through.
Comment #9
jrsinclair commentedThis has been a big help. Many thanks.