Clarification regarding APM "HTTP 401 Response" expected behavior

Hello,

I want to add HTTP Basic auth to a VIP in clientless mode. I crafted the following basic policy

When the client provides a proper Authorization: Basic xxxxxx header the policy proceeds to AD Auth as expected. But when the client does not provide any Authorization header logs show that the “Negociate” branch is used instead. While I was expecting the client to get an HTTP 401 response with WWW-Authenticate: "Basic realm=somestring" header.

Am I missing something obvious here? Or does the “HTTP 401 Response” agent does not what its name suggest it’s supposed to do: actually send an HTTP 401 Response?

All exemples I’ve found out in the forum use iRules to handles the gymnastic of sending HTTP 401 when Authorization header is missing which from my standpoint voids parts of what the “HTTP 401 Response” is expected to do.

Can anyone chime light on this?

Youssef

Curiously the “HTTP 407 Response” agent (which mimics the 401 but for HTTP Proxies) works exactly as expected. When a client does not supply an Authorization header it gets an HTTP 407 right away with the appropriate text and Proxy-Authenticate header!