Forum Discussion
APM local user db mail lookup
Hi, what is the way to read mail as value from local user db? We need it in order to send mail with OTP to users stored in our local user db and nothing like: %{session.localdb.email} works..
Thanks Zdenek
3 Replies
tried a couple of things but im unable to get this to work, though I was close via the VPE element Local Database, but those also only give limited access to some variables.
my conclusion is that you can't access the first name, last name and email address. this is kinda weird as they are stored so why not allow access. so perhaps someone else knows how to do this or knows for sure it isn't possible. in any case if you can please open a support case and report back the answer.
a possible (though ugly) work around would be the groups option in the local database, it has been abused for something similar before, see links below.
https://devcentral.f5.com/questions/apm-local-user-database-and-otp
https://devcentral.f5.com/questions/apm-sms-otp-local-user-database
- Fred_WittenbergHistoric F5 AccountWhile it does not appear you can query the local first/last name or email address of the local user DB (you can see all the variables by dumping a session with sessiondump --sid SESSION_ID). To get around this, I simply used the user email address as the username then used the %{session.logon.last.username} variable. Alternatively, you could use %{session.logon.last.username}@doamin.com if you want to use just the username variable. Either works just fine....
grin nice workaround.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
