Add check for remote_user variable for trusted proxy auth

If trusted proxy authentication is on, yet the proxy did not authenticate the
user, then the default authentication method is used instead of returning 'Unauthorized'.
This commit is contained in:
Robin McCorkell committed 2014-11-24 09:43:28 +00:00
1 parent bb227443ed
commit b0633ba1f4
2 files changed
+14 -2

No files matched your search

+1 -1
View File
@@ -283,7 +283,7 @@ static BOOL debugLeaks;
{
id authenticator;
if (trustProxyAuthentication)
if (trustProxyAuthentication && [[context request] headerForKey: @"x-webobjects-remote-user"])
authenticator = [SOGoProxyAuthenticator sharedSOGoProxyAuthenticator];
else
{