Updated patch

pull/12/head
Ludovic Marcotte 2013-06-19 17:36:43 -04:00
parent dc96466462
commit c08263d1c3
1 changed files with 6 additions and 7 deletions

View File

@ -59,16 +59,15 @@
{
NSString *remoteUser;
if ([[SOGoSystemDefaults sharedSystemDefaults] trustProxyAuthentication])
/* If such a header is not provided by the proxy, SOPE will attempt to
deduce it from the "Authorization" header. */
remoteUser = [[context request] headerForKey: @"x-webobjects-remote-user"];
if ([remoteUser length] == 0 && [[SOGoSystemDefaults sharedSystemDefaults] trustProxyAuthentication])
{
remoteUser = @"anonymous";
}
else
{
/* If such a header is not provided by the proxy, SOPE will attempt to
deduce it from the "Authorization" header. */
remoteUser = [[context request] headerForKey: @"x-webobjects-remote-user"];
}
return remoteUser;
}