Updated patch
parent
dc96466462
commit
c08263d1c3
|
@ -59,16 +59,15 @@
|
||||||
{
|
{
|
||||||
NSString *remoteUser;
|
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";
|
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;
|
return remoteUser;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue