Forum Discussion
jsipes
Nimbostratus
Mar 12, 2019Convert FQDN to netbios domain name
Looking for a way to convert FQDN to netbios domain name using SSO Credential Mapping or some other method. When I pass session.logon.last.domain with my user name I get test.contoso.com\username. I need to pass test\username. Thanks for any help.
- jsipes
Nimbostratus
Got it. This works.
expr { "[regsub {(..+)} [mcget {session.logon.last.domain}] "" y; set doamin $y]\[mcget {session.logon.last.username}]" }
- Stanislas_Piro2
Cumulonimbus
Look at this link https://devcentral.f5.com/codeshare/apm-variable-assign-examples-1107
You can create a variable assign for variable
session.logon.last.domain
switch [string tolower [mcget {session.logon.last.domain}]] { "test.contoso.com" { return "test" } "test2.contoso.com" { return "test2" } default { return "test3" } }
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