Forum Discussion
hooleylist
Apr 05, 2012Cirrostratus
Hi Clint,
Some of the double quotes were replaced with non-standard quotes. Can you try this?
when RULE_INIT {
set static::disable_ntlm 0
set static::disable_negotiate 1
set static::disable_basic 1
}
when HTTP_REQUEST {
set lync_auth_in_progress 0
if { [HTTP::header User-Agent] contains "Microsoft Lync" } {
if { [HTTP::header "Authorization"] ne "" } {
set lync_auth_in_progress 0
} else {
set lync_auth_in_progress 1
}
}
}
when HTTP_RESPONSE {
if { $lync_auth_in_progress && [HTTP::status] == 401 && [HTTP::header WWW-Authenticate] ne ""} {
set auth_values_list [HTTP::header values WWW-Authenticate]
HTTP::header remove WWW-Authenticate
foreach auth_value $auth_values_list {
switch -glob [string tolower $auth_value] {
"ntlm" -
"ntlm *" {
if { not $static::disable_ntlm } {
HTTP::header insert "WWW-Authenticate" "$auth_value"
}
}
"negotiate" -
"negotiate *" {
if { not $static::disable_negotiate } {
HTTP::header insert "WWW-Authenticate" "$auth_value"
}
}
"basic" -
"basic *" {
if { not $static::disable_basic } {
HTTP::header insert "WWW-Authenticate" "$auth_value"
}
}
}
}
set lync_auth_in_progress 0
}
}
Aaron