You might be able to use the <cfldap> tag to do what you need.

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

I downloaded it (http://www.cfcomet.com/utilities/CF_ADSI.zip) but don't
know how to use it. I copied and registered the dll to the system 32 folder,
registered the component. If you already have downloaded the custom tag, in
the documentation it shows you how to call the tag

<cf_adsi task="VerifyGroupMembership"
         domain="Domain_Name"
         user="NT_User_ID"
         computer="Machine_Name"
         group="Administrators"
         return="blnMembership">

You always will have a "task" and "return" attribute. The other attributes
depend on the "task" you need. There is an excel spreadsheet which lists the
tasks, and I don't know which one to use. I want to be able to get the
follwing user details:

Set ADSysInfo = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName)
CurrentUser.adspath
currentuser.cn
currentuser.givenname
currentuser.sn
currentuser.mail
currentuser.telephoneNumber
currentuser.mobile

>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