>if you have all the code that attachs to the ADSystemInfo object, then put
>these into private methods of say a VB com object, then create a public
>method which you pass in simple values which then calls the private methods.
>
>So in our case we have something like this in CF
>
><CFSCRIPT>
> oPB = CreateObject("Com", "PhoneBin.PhoneBin");
> oPB.CreatePhoneBinAlbum("foo", "w3csv",
>"c:\inetpub\wwwroot\pathtofolder");
></CFSCRIPT>
>
>
>then inside the CreatePhoneBinAlbum call are all the calls to the IIS
>instance where we can then manipulate the metabase.
>
>Thus all the complex code is wrapped up and a simple function call is made
>by CF
>
>HTH
>
>
>
>
>-----Original Message-----
>From: cf coder [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 27, 2003 12:43
>To: CF-Talk
>Subject: Re:Anonymous access and authentication
>
>
>how do you do that?
>
>>how about writing a wrapper COM object? thats what we did to get around
>lots
>>of problems with creating Virtual Dirs on the fly
>>
>>
>>HTH
>>
>>Mikey
>>
>>
>>-----Original Message-----
>>From: cf coder [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, November 27, 2003 12:12
>>To: CF-Talk
>>Subject: Re:Anonymous access and authentication
>>
>>
>>I downloaded the asdi.zip custom tag from the exchange, I don't know how to
>>use it. Guys, there must be some way for ColdFusion to invoke the
>>ADSystemInfo com object, please can somebody show me how to do this.
>>
>>>If it's an active directory component, you won't be able to call it using
>>>createObject.
>>>
>>>Try the <cf_adsi> tag in the developer's exchange.
>>>
>>>-----Original Message-----
>>>From: cf coder [mailto:[EMAIL PROTECTED]
>>>Sent: November 26, 2003 9:20 AM
>>>To: CF-Talk
>>>Subject: Re:Anonymous access and authentication
>>>
>>>
>>>no, I won't use the cfhttp tag, I'll use the code directly in my file. Oh
>>>and btw, I get this error when I view in the browser
>>>
>>>An exception occurred when instantiating a Com object.
>>>The cause of this exception was that: java.lang.NullPointerException.
>>>
>>>any ideas?
>>>
>>>>You would run into the same issue. You would still have to provide
>>>>access information to execute this code.
>>>>
>>>><cfscript>
>>>> ADSys=createObject('com', 'ADSystemInfo');
>>>> // you need a set user on this line.
>>>> writeOutput=('User='&ADSys.UserName);
>>>></cfscript>
>>>>
>>>>
>>> _____
>>>
>>>
>> _____
>>
>>
> _____
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

