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...
Feb 16, 2010
Most likely the problem is that the backslash character is an escape sequence (ie. \n for newline, \t for tab, etc). Try adding a second slash to your comparisons.
when HTTP_REQUEST {
set login_user [HTTP::header remote_user ]
if { $login_user contains "\\" } {
set ldap_user [getfield $login_user "\\" 2]
HTTP::header replace SAPUserID $ldap_user
}
}
Let me know if this doesn't work.
-Joe
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
