Forum Discussion
Faaiz_28768
Feb 14, 2011Nimbostratus
BIGIP-LTM-Version-9.4.8:irule to extract username from HTTP request
- Chris_MillerAltostratusAre you not seeing anything logged, or is it incorrect info? Also, is OAS using basic auth?
- Faaiz_28768NimbostratusDear Chris,
- Chris_MillerAltostratusPosted By Faaiz on 02/14/2011 08:24 PM
http://devcentral.f5.com/wiki/defau...rname.html
I'm not sure whether your LDAP server is using basic, SASL, or something else.
- hooleylistCirrostratusIf 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_28768NimbostratusDear hoolie,
- hooleylistCirrostratusCalling 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