Forum Discussion
Rob_Wismans_179
Feb 22, 2018Nimbostratus
when HTTP_REQUEST {
if { $reject } {
if { $static::debug == 2 } { log local0. "CIP: Client certificate rejected (DN: $cert_subject)" }
HTTP::respond 200 content {
Denied
Your client is denied access.
}
TCP::close
reject
}
if {$auth ne ""} {
if { $static::debug == 2 } { log local0. "CIP: Adding Authorization: Basic $auth" }
HTTP::header remove "Authorization"
HTTP::header insert "Authorization" "Basic $auth"
}
}