Forum Discussion
JimT
Nimbostratus
Apr 10, 2019How to keep only the value of "CN" part in session.ldap.last.attr.memberOf
Hi all,
I have been reading around here on devcentral and I did found some articles which I tried out , but I can't get this to work.
We have an ldap server which responds with group names, and ...
Stanislas_Piro2
Cumulonimbus
Apr 12, 2019Look at this article:
https://devcentral.f5.com/codeshare/apm-variable-assign-examples-1107
use this variable assign:
set group_name[split [lindex [mcget {session.ldap.last.attr.memberOf}] 0] ",="];
foreach {name value} $group_name{
if {[string trim $name] equals "CN"} {
return [string trim $value];
}
}
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