Forum Discussion
Shane_Hickey_19
Nimbostratus
Apr 07, 2016Custom session variable for filtered memberOf AD attribute
Can someone give me a pointer as to the best way to create a custom session variable that returns all AD groups that start with a certain string? I'm not sure if the best way to do it is with an LDA...
Daniel_Varela
Employee
Apr 08, 2016You can use a Variable Assign box with an expression like this:
set list "|";
foreach element [split [mcget {session.ad./Common/myPolicy_act_active_directory_query_ag.attr.member}] "|"] {
if { $element contains "Adm"}{
append list "$element | ";
}
}
return $list;
I assigned it to a variable session.custom.myvar. You will need to modify your session variable accordingly but it should work.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
