If I'm not mistaken, there is a java class from M$ for authenticating to an
NT domain.  Here is a link to a tutorial:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/ad/p
rogramming_adsi_with_javacom.asp

Here is some of the sample code:
import activeds.*;                 // ADSI COM Wrapper classes
import com.ms.com.*;               // to use _Guid data type in COM.

public Class SimpleADSI 
{
    IADs obj;
    String path = "WinNT://domain/machine,computer";
    _Guid riid = IADs.iid;
    public static void main(String args[]) 
    {
        try 
        {
            obj = (IADs)ADsGetObject(path, riid);
            System.out.println( "Object name:  " + obj.getName() );
            System.out.println( "      class:  " + obj.getSchema() );
            System.out.println( "    ADsPath:  " + obj.getADsPath() );
            System.out.println( "     parent:  " + obj.getParent() );
        }
        catch (Exception e) 
        {
            System.out.println( "SimpleADSI Error: " + e.toString() );
        }
    }

    /** @dll.import("activeds", ole) */
    private static native IUnknown ADsGetObject(String path, _Guid riid);
}

Neil Giarratana
Director of eServices
IniNet, Incorporated
________________________________________________
IniNet, Incorporated has announced that it will spin off its
Internet application development business, which includes
the eServices division, into a separate company. The new 
company, Lucidus Corporation, will carry on the eServices 
Division's reputation as the Monadnock Region's Internet 
development leader. Read more at http://www.lucidus.net. 

-----Original Message-----
From: Dave Carabetta [mailto:cbetta@;hotmail.com] 
Sent: Thursday, November 14, 2002 1:26 PM
To: CF-Linux
Subject: Authenticate against NT domain?

Is it possible to have a to authenticate a user's name and password against 
an NT domain from CF on Linux/Solaris? The only solutions I've seen for this

are COM-based, which does me no good. We're on Solaris 5.7 right now, but 
are looking to migrate to RedHat, if that makes a difference in the response

as far as what's available on each platform.

Thanks,
Dave.



______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to