Did you try the <cf_adsi> tag?

-----Original Message-----
From: cf coder [mailto:[EMAIL PROTECTED]
Sent: November 27, 2003 8:39 AM
To: CF-Talk
Subject: Re:Can get coldfusion to call the ADSystemInfo com object (ADSI)

Mike Townend suggested the same solution in response to my question in this
thread:
http://www.houseoffusion.com/lists.cfm/link=m:4:28947:145329

I however don't know how to do this, have no vbskills

>ADSI components cannot be called directly in CF.  You need to write a
>wrapper class.
>
>-----Original Message-----
>From: cf coder [mailto:[EMAIL PROTECTED]
>Sent: November 27, 2003 9:22 AM
>To: CF-Talk
>Subject: Can get coldfusion to call the ADSystemInfo com object (ADSI)
>
>
>Hi, has anybody used the "ADSystemInfo" ADSI component
>to retreive basic login information. I am trying to
>invoke it using the createObject method. I have
>registered the component. I can get it to work with
>ASP, but get this error in ColdFusion.
>
>Error Occurred While Processing Request  
>An exception occurred when instantiating a Com object.
>The cause of this exception was that:
>java.lang.NullPointerException.  
>
>
>Here is my cfm code : It fails
>
><cfscript>
>  ADSysInfo=createObject("com", "ADSystemInfo");
>  // you need a set user on this line.
>  writeOutput=('User='&ADSysInfo.UserName);
></cfscript>
>
>Here is my asp code : It works
>
><%
>
>Set ADSysInfo = CreateObject("ADSystemInfo")
>
>response.write "Current User=" & ADSysInfo.UserName
>
>%>
>
>Can somebody please help me. I need to get this
>working in ColdFusion.
>Regards,
>cf coder
>
>__________________________________
>Do you Yahoo!?
>Free Pop-Up Blocker - Get it now
>http://companion.yahoo.com/
>  _____  
>
>
  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to