Forum Discussion
GavinW_29074
Jun 01, 2012Nimbostratus
Modify Dataclass with iRule
Hi there,
I've been tasked with investigating if it's possible to get an iRule to modify a dataclass on the F5's...
The background is that we've implemented HTTP Basic authenticati...
Joel_Moses
Jun 08, 2012Nimbostratus
GavinW: Well, that's not ENTIRELY true. Think of a sideband connection as a total "clean slate".
You can absolutely send Basic Auth via a sideband connection, you just need to manually construct and send the "Authorization" header to the server in the transaction -- in other words, don't wait for the server to 401, just go ahead and send the header it wants, formatted properly. The Authorization header is basically the username and password joined with a colon, then base64 encoded. See here: http://en.wikipedia.org/wiki/Basic_access_authentication
Pretty simple on the BigIP:
set username "user"
set password "pass"
HTTP::header insert Authorization "Basic [b64encode "${username}:${password}]"
... or in the case of sideband, the header would just be another line of text you send out the socket. Cheers!
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