Forum Discussion
RobC
Nimbostratus
Oct 25, 2016Regex for parsing LDAP attribute string value
I'm trying to pull a specific variable from an LDAP string attribute. The attribute is proxyAddresses, I need the value of "SMTP:" (case sensitive). I'm using the variable assign option in the VPE. H...
Stanislas_Piro2
Cumulonimbus
Oct 25, 2016Hi,
in APM variable,
| character is the list delimiter....
you can try the following expression:
foreach address [mcget {session.ad.last.attr.proxyAddresses}] {
if { [scan $address {SMTP:%s} mail] } {
return $mail
}
}
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