Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

AD Group Name manipulation

Stewart_Hume_24
Nimbostratus
Nimbostratus

I am a complete newcomer to this environment and am having a deal of difficulty with the following

 

From a logon page I use AD Auth to validate the visitor and then I wish to have a dynamic page whose content is based around the AD groups the Visitor is a member of.

 

Example an AD group has a name RDS-Example-1. Example-1 is the name of a Remote desktop server. when any of the members of the group log on the AD query checks for the group membership. thus they return Group name CN=RDS-Example-1

 

What I am having trouble with is manipulating the Group name CN=RDS-Example-1 so that I can extract the Remote Desktop Server name as the dynamic entry for destination in the remote Desktop access policy.

 

I have been looking for information on text string manipulation but am getting more confused. I suspect this is actually quite easy, could some kind person enlighten me please.

 

1 ACCEPTED SOLUTION

Josiah_39459
Historic F5 Account

If you know your string starts with "CN=RDS-" and you want everything after that, you can just snip it with "string range"

http://wiki.tcl.tk/10168

string range $group 7 end

View solution in original post

2 REPLIES 2

Josiah_39459
Historic F5 Account

If you know your string starts with "CN=RDS-" and you want everything after that, you can just snip it with "string range"

http://wiki.tcl.tk/10168

string range $group 7 end

Great, Thanks. Exactly what I needed.