Wednesday, April 25, 2007

I've forgotten the ColdFusion Administrator password. What can I do?

I've forgotten the ColdFusion Administrator password. What can I do?

In ColdFusion MX, open the file C:\Program Files\ColdFusionMX\lib\neo-security.xml. Alter

<var name="admin.security.enabled">
<boolean value="true" />
</var>

to read

<var name="admin.security.enabled">
<boolean value="false" />
</var>

Restart the ColdFusion MX Application Server service. You can then open the ColdFusion Administrator without being prompted for a password. Enter the new password twice, but don't check the Use a ColdFusion Password box. Click the Submit button and close the browser window. Edit the admin.security.enabled node in neo-security.xml back to true again and restart the ColdFusion MX Application Server service. You will then be able to access the ColdFusion Administrator by supplying the new password.

As a side note, I found that just ticking the Use a ColdFusion Password box in the Administrator just displayed a message saying "Unable to change password" and bombed me out. The procedure above seems to work fine, though.

In ColdFusion 5 Server and earlier, run regedit and go to to

HKLM\Software\Allaire\ColdFusion\CurrentVersion\Server

Change UseAdminPassword from 1 to 0. This will allow you to get into your ColdFusion Administrator without being asked for a password.

Remember to turn on password protection from the Administrator once you get in and change the password.

No comments: