Windows Domain Authentication from ColdFusion MX

by @jehiah on 2004-01-05 16:32UTC
Filed under: All , ColdFusion

Following is a snip of code that will give the capability for user authentication to a Windows Domain from ColdFusion MX web application running on a Windows 2000 server.

Reference for the NTLMAuthenticate function used.

<cflock name="singlesignon" timeout="5" throwontimeout="yes">   
// create object to authenticate to NT Domain 
ntauth = createObject ("java", "com.linar.jintegra.NTLMAuthenticate" );   
// call validate function 
ntauth.validate ("Windows Domain Servername", "domain", arguments.userid, arguments.passwd);   
    <!--- if any problems logging in, fail login, give error message --->      
    <cflog application="yes" file="windows200auth" type="warning" text="Login Failure for #arguments.userid#">    
Subscribe via RSS ı Email
© 2023 - Jehiah Czebotar