Forum Discussion
Bhargav_9588
Nimbostratus
Feb 15, 2010getfield Parsing error
Hello,
I am trying to add an iRule to insert an http header value by stripping out domain from REMOTE_USER header. The following is the iRule I am trying to use:
when HTT...
hoolio
Cirrostratus
Feb 16, 2010What kind of authentication are you using?
I think the REMOTE_USER field you're referring to is a CGI variable--not an actual HTTP header. For basic auth, this is parsed from the Authorization header. The format for this header is:
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Basic indicates the use of basic auth. The string after Basic is a base64 encoding of the username:password (Aladdin:open sesame, in this example).
You could use the HTTP::username command (Click here) to return the parsed and decoded username.
For details on basic auth you can check this wikipedia article:
http://en.wikipedia.org/wiki/Basic_access_authentication
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
