Forum Discussion
TLL_91858
Cirrus
Feb 28, 2008Any way to read the CGI collection?
I am trying to use items from the CGI variable collection, but can't seem to find a way to read, for instance CGI.REMOTE_USER variable.
Anyone know of a way to use these in an iRule?
- hoolio
Cirrostratus
I assume remote user is the base64 encoded value in the Authorization header. If so, you can use HTTP::header value Authorization to get the header value, decode it using b64decode and then split the value on the decoded colon: - TLL_91858
Cirrus
Might be what I need, but when I do a HTTP::header exsits Authorization, I get a 0 back indicating it doesn't exist. Why would it not be in the collection? - hoolio
Cirrostratus
Hi Tom, - TLL_91858
Cirrus
I'm guessing no. There's no Basic Auth prompt for them. The website is set up to not allow anonymous, and allow Windows intergrated, which I thought would force the credentials of the logged on user to be passed.?? - hoolio
Cirrostratus
NTLM is slightly different. An authorization header is still used, but the user/pass aren't sent in every request. Take a look at this page which gives a good summary of the "protocol": - TLL_91858
Cirrus
Well, after going through that, and running some more tests, looks like I can't use that for what I wanted. - hoolio
Cirrostratus
What were/are you trying to do? - TLL_91858
Cirrus
We have a service account that is used by operators in a computer room monitoring situation (computer_operators). They need to be able to get to a web application (What's Up Gold) to monitor status of servers.
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