Forum Discussion
John_Masgalas_4
Nimbostratus
Jan 30, 2009iRule modification - rdp
I currently use the below iRule with our Terminal Services pool. It strips everything after the "@" in the username so that the persistence entry is only the username. I would like to modify it so tha...
hoolio
Cirrostratus
Feb 06, 2009If the string you're trying to parse can have three forms:
jmasgalas@example.local
EXAMPLE\jmasgalas
jmasgalas
You can use something like this to parse them down to the account name:
if {$account contains "@"}{
set account [getfield $account "@" 1]
} elseif {$account contains "\\"}{
Need to escape the backslash with a backslash
set account [getfield $account "\\" 1]
}
If I've missed the issue, let me know.
Thanks,
Aaron
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