Skip to main content
New Participant
March 11, 2008
Question

cfNTAuthenticate with Special Characters

  • March 11, 2008
  • 1 reply
  • 314 views
I have a basic form that authenticates against our domain controller. It works fine when user passwords don't contain special non-standard passwords, but if the password contains special characters such as Å or ¥ and so forth it fails to autheticate the user. How do I fix this problem? Here is the basic cfNTauthenticate code (not much too it):

<cfNTauthenticate domain="ourDomainName" username="#FORM.userLogin#" password="#FORM.userPassword#" result="authresult" listgroups="yes">
    This topic has been closed for replies.

    1 reply

    Inspiring
    March 11, 2008
    aehardin wrote:
    > I have a basic form that authenticates against our domain controller. It works
    > fine when user passwords don't contain special non-standard passwords, but if
    > the password contains special characters such as Å or ¥ and so forth it fails
    > to autheticate the user. How do I fix this problem? Here is the basic
    > cfNTauthenticate code (not much too it):
    >
    > <cfNTauthenticate domain="ourDomainName" username="#FORM.userLogin#"
    > password="#FORM.userPassword#" result="authresult" listgroups="yes">
    >

    You may need to add the appropriate character encoding information with
    <cfset setencoding("form","xyz")> and <cfset setencoding("url","xyz")>
    for good measure. You may also need to include other character encoding
    logic to ensure special, non-ascii characters work from one end to the
    other in your application.

    The CF documentation and internet has extensive discussions on all the
    details.