Forum Discussion

mrnap_12474's avatar
mrnap_12474
Icon for Nimbostratus rankNimbostratus
Mar 19, 2013

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.