Validate using the CF Administrator password

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. Administrator password forgotten
      http://support.microsoft.com/?kbid=290260 EFS, Credentials, and Private Keys from Certificates Are Unavailable After a Password Is Reset ...
    2. 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?...
    3. 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...
    4. 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...
    5. administrator password for xp pro
      Follow the instruction on this site: http://home.eunet.no/~pnordahl/ntpasswd/ "LaVa" <lavaism@hotmail.com> wrote in message...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139