Forum Discussion
Set APM Username & Pass From Header Field
Hello,
I am attempting to grab a username and password that is base64 encoded from a custom http header field and pass it to APM as the session.logon.last.username and session.logon.last.password in order to do an AD Auth. I am able to grab the values and print them, but for some reason when I check the APM log I see an "AD Agent: invalid user password ciphertext". If I check the reports, I am able to see the password and username properly populated. Any ideas on how to set this password so it gets sent properly to AD?
I am decoding the field in a custom 'iRule Event' and then doing a 'Variable Assign' to push my temp variables from the event into the session.logon.last.username and session.logon.last.password fields, and then doing an 'AD Auth'. The code where I am assigning it to the temp vars is as follows:
ACCESS::session data set session.temp.username $userName
ACCESS::session data set session.temp.password $userPass
This is for a custom app (iPhone) which is why we are doing it this way, I'm aware of the security concerns associated. Thanks in advance.
3 Replies
- mrnap_12474
Nimbostratus
Disregard this post, it was an AD problem (of course).- bfrancom_123272
Nimbostratus
What was the AD problem? I'm having a similar issue. Thanks!
- Robb_Ritchey_79
Nimbostratus
Would you mind sharing the iRule you used to grab the username and password from the headers? I'm currently struggling with this. Thanks!
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