Forum Discussion
meena_60183
Nimbostratus
Dec 17, 2008removing authorization header for LDAP
Hi All,
I have looked at some iRule examples that show show to remove the authorization http header but have some hard time making it to work.
Basically, I have http traffic that needs to be authenticated using LDAP. But I want to remove the authorization http header on the server side. When the LDAP authentication is successful, the users are allowed to see the data.
I tried "request header erase" on the http profile but it erases it even before the user gets authenticated.
Also, I found the following irule in the forum but this also erases the authorization information from the header before the authentication.
when HTTP_REQUEST priority 501 {
Remove the Authorization header after the system authorization iRule runs (at priority 500)
if {[HTTP::header exists Authorization]} {
[serverside {HTTP::header remove Authorization}]}
}
Any ideas?
Meena
1 Reply
- Colin_Walker_12Historic F5 AccountI think what you're looking for is the AUTH_SUCCESS event. You could set a variable in this event, then in the HTTP_RESPONSE event you could use the HTTP::header remove command if the variable is set, showing that an AUTH_SUCCESS event occured. This way you could remove the header on the server side, but only if the login worked.
Sound about right?
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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