Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Andrew (Webworld) #1
Validate using the CF Administrator password
I figure I am not the first to want to do this but my searches have not yielded
any results. I'd like to have a login page similar to the ColdFusion
Administrator page that checks to make sure the user has the CF Administrator
password. I don't need my code to know what the password is and I doubt the
password itself is sitting somewhere obvious unless it's hashed or encrypted
somehow. I was simply wondering if there are any hooks into the system that I
could call and pass a password entered by the user that would tell me that they
do in fact have the CF Admin password?
Andrew (Webworld) Guest
-
Administrator password forgotten
http://support.microsoft.com/?kbid=290260 EFS, Credentials, and Private Keys from Certificates Are Unavailable After a Password Is Reset ... -
Administrator Password & Account Password
I took my computer in to have a drive replaced. My account password no longer works, and I do not know the Administrator password. What can I do?... -
administrator password
Hello I have Windows Xp installed on my system with only one login. I lost the password of it and now unable to get into the system. Please... -
i am administrator and i forgot my password?
Bobby; The password is Case Sensitive. Check Caps Lock and try various of Capital combinations. http://support.microsoft.com/?kbid=321305 Or... -
administrator password for xp pro
Follow the instruction on this site: http://home.eunet.no/~pnordahl/ntpasswd/ "LaVa" <lavaism@hotmail.com> wrote in message... -
Andrew (Webworld) #2
Re: Validate using the CF Administrator password
Ok, I believe I have figured this one out. You need to use the ColdFusion
factory service. You can test to see if the password the user enters is in fact
the ColdFusion Administrator password by doing the following:
<cfobject type="JAVA" action="Create" name="factory"
class="coldfusion.server.ServiceFactory">
<cfset bValid = factory.SecurityService.checkAdminPassword('#form. password#')>
<cfoutput>#bValid#</cfoutput>
Hope this helps someone else. The factory service gives you a lot of other
hooks into CF that you can use by the way say for instance getting a list of
the datasources defined.
Andrew (Webworld) Guest



Reply With Quote

