Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Convert 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.

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Got it. This works.

expr { "[regsub {(..+)} [mcget {session.logon.last.domain}] "" y; set doamin $y]\[mcget {session.logon.last.username}]" }

1
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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" } 
} 
0