Hello everyone,
I've hit a brick wall with the new admin api. I'm trying to dynamically
update a Datasource name that I originally set up in the ColdFusion
Administrator. Using the new admin api I can change the user name,
description etc. no problem at all. However, when I try to change the
password, I get this error message:
There has been an error while trying to encrypt or decrypt your input
string: The input and output encodings are not same..
I've toggled the encryptpassword parameter but that doesn't help. Any ideas
as to what I'm doing wrong? I've posted on the macromedia forums but no joy
there.
Here's my code.
<cfscript>
// Login to CF Administrator.
adminObj = createObject("component","cfide.adminapi.administrator");
adminObj.login("myAdminPassword");
// Instantiate the data source object.
myObj = createObject("component","cfide.adminapi.datasource");
// The DSN I'm modifying
myObj.setOther (
name="myDSN",
url="jdbc:teradata://myDSN",
class="com.ncr.teradata.TeraDriver",
driver="JDBC Driver myDSN",
username = "myUsername",
password = "myNewDSNPassword",
encryptpassword="false",
description="testing 1-2-3",
selectmethod="direct"
);
</cfscript>
Many thanks if you can help
Neil H
Bournemouth, UK
This e-mail and any attachments are confidential and intended solely
for the addressee and may also be privileged or exempt from disclosure
under applicable law. If you are not the addressee, or have received
this e-mail in error, please notify the sender immediately, delete it
from your system and do not copy, disclose or otherwise act upon any
part of this e-mail or its attachments..
Internet communications are not guaranteed to be secure or virus-free.
The Barclays Group does not accept responsibility for any loss arising
from unauthorised access to, or interference with, any Internet
communications by any third party, or from the transmission of any
viruses. Replies to this e-mail may be monitored by the Barclays
Group for operational or business reasons..
Any opinion or other information in this e-mail or its attachments
that does not relate to the business of the Barclays Group is personal
to the sender and is not given or endorsed by the Barclays Group.
Barclays Bank PLC.Registered in England and Wales (registered no. 1026167).
Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom.
Barclays Bank PLC is authorised and regulated by the Financial Services
Authority.
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/