Forum Discussion
Clint_Denham_16
Apr 05, 2012Nimbostratus
Unable to Save iRule Due To Formatting - Lync Clients With Negotiate Challenge
Can't seem to figure out how to post the iRule to DevCentral without it being one long string.
We're using LTM 10.2.3 HF1 and trying to add the iRule described here...
http://jerryslyncblog....
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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects