I have created a little JDBC driver to sync username (CN) and password to a
mySQL table. I need the password md5 encrypted for the application and off
course I cannot accept cleartext passwords in a DB.
My idea was to use the md5() function from mysql but I have trouble to do
this with a Policy Script. Is that possible?
I have integrated this action in a rule:
reformat operation attribute("nspmDistributionPassword","md

<do-reformat-op-attr name="nspmDistributionPassword">
<arg-value type="string">
<token-text xml:space="preserve">md5("</token-text>
<token-attr name="nspmDistributionPassword"/>
<token-text xml:space="preserve">")</token-text>

Like this the value in the table is set to md5("password") because the md
("password") is a value and is set in double quotes " in the sql command.
Is it possible to strip the quotes?

Any other idea?

Thank you,