Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfNTAuthenticate with Special Characters

New Here ,
Mar 11, 2008 Mar 11, 2008
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">
295
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 11, 2008 Mar 11, 2008
LATEST
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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources