Forum Discussion
Faaiz_28768
Nimbostratus
Feb 14, 2011BIGIP-LTM-Version-9.4.8:irule to extract username from HTTP request
6 Replies
Sort By
- Chris_Miller
Altostratus
Are you not seeing anything logged, or is it incorrect info? Also, is OAS using basic auth? - Faaiz_28768
Nimbostratus
Dear Chris, - Chris_Miller
Altostratus
Posted By Faaiz on 02/14/2011 08:24 PMhttp://devcentral.f5.com/wiki/defau...rname.html
I'm not sure whether your LDAP server is using basic, SASL, or something else.
- hoolio
Cirrostratus
If the application prompts the user to send the credentials in a POST request, you'd need to inspect the HTTP request payload--not the HTTP Authorization header value (like HTTP::username and HTTP::password do). If you just want to log the username and password, you could use a stream profile and STREAM::expression based iRule. Here's an example that is probably more involved than you need: - Faaiz_28768
Nimbostratus
Dear hoolie, - hoolio
Cirrostratus
Calling HTTP::payload in HTTP_REQUEST will return any of the HTTP payload that was included in the packet(s) which contain the HTTP headers. It's not guaranteed to return any or all of the payload unless you explicitly tell TMM to collect the payload with HTTP::collect and call HTTP::payload in HTTP_REQUEST_DATA.
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