Re: Anonymous access and authentication

2004-08-17 Thread T . J . Frevert
 
  ADSys = createObject("COM", "ADSystemInfo"); 
  UserName = ADSys.UserName; 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Anonymous access and authentication

2004-08-17 Thread T . J . Frevert
 
  ADSys = createObject("COM", "ADSystemInfo"); 
  UserName = ADSys.UserName; 


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Anonymous access and authentication

2003-11-27 Thread Mike Townend
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

 

    oPB = CreateObject("Com", "PhoneBin.PhoneBin");
    oPB.CreatePhoneBinAlbum("foo", "w3csv",
"c:\inetpub\wwwroot\pathtofolder");


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  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.
>>>
>>>
>>> ADSys=createObject('com', 'ADSystemInfo');
>>> // you need a set user on this line.
>>> writeOutput=('User='&ADSys.UserName);
>>>
>>>
>>> 
>>  _  
>>
>> 
>  _  
>
> 
  _  


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




RE: Anonymous access and authentication

2003-11-27 Thread Mike Townend
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  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.
>>
>>
>> ADSys=createObject('com', 'ADSystemInfo');
>> // you need a set user on this line.
>> writeOutput=('User='&ADSys.UserName);
>>
>>
>> 
>  _  
>
> 
  _  


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




RE: Anonymous access and authentication

2003-11-26 Thread Kwang Suh
If it's an active directory component, you won't be able to call it using
createObject.

 
Try the  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.
>
>
> ADSys=createObject('com', 'ADSystemInfo');
> // you need a set user on this line.
> writeOutput=('User='&ADSys.UserName);
>
>
> 
  _  


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




RE: Anonymous access and authentication

2003-11-26 Thread Bryan F. Hogan
Yep, com sucks. :) I don't know of any other way.

-Original Message-
From: cf coder [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 26, 2003 11: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?


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




RE: Anonymous access and authentication

2003-11-26 Thread Bryan F. Hogan
You would run into the same issue. You would still have to provide
access information to execute this code.


	ADSys=createObject('com', 'ADSystemInfo');
	// you need a set user on this line.
	writeOutput=('User='&ADSys.UserName);



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




RE: Anonymous access and authentication

2003-11-26 Thread Barney Boisvert
The CFHTTP tag has 'username' and 'password' attributes that will pass along
credentials for basic authentication.  You probably have to pass the
credentials of your user to IIS.

That's just a WAG, but might be the problem.

Cheers,
barneyb

> -Original Message-
> From: Allan Clarke [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 26, 2003 8:49 AM
> To: CF-Talk
> Subject: Anonymous access and authentication
> 
> Hello everybody, 
> 
> I'm trying to call a .asp file from my coldfusion page
> 
> using cfhttp. When I browse the the cfm file in the
> browser, I see this message displayed on the browser:
> 
> You are not authorized to view this page 
> You do not have permission to view this directory or
> page using the credentials you supplied. 
> 
> HTTP 401.2 - Unauthorized: Logon failed due to server
> configuration Internet Information Services
> 
> Now here is the code in the asp file (user.asp)
> 
> <%
> 
> Set ADSys = CreateObject("ADSystemInfo")
> 
> response.write "User=" & ADSys.UserName
> 
> %>
> 
> Here is the code in the coldfusion file
> (getuserdetails.cfm)
> 
> 
> timeout="30"/>
> #CFHTTP.FileContent#
> 
> As you can see, I'm trying to get the user information
> from the active directory. To get round the error
> message I described above, I went to the webserver IIS
> Management Console, right clicked on the file
> user.asp, hit the "File Security" tab, hit the "Edit"
> button under "Anonymous access and authentication
> control" and ticked the "Annoymous access" check box.
> 
> Now that anonymous access permissions are set on the
> file, when I call this file with the cfhttp tag, I
> don't see the error I was getting earlier (HTTP 401.2
> -
> Unauthorized: Logon failed due to server configuration
> Internet Information Services), but I get an asp error
> (error '80070534') and I know I get this error because
> active directory does not know who to look for because
> anonymous access permissions are set on the file. I
> don't know what to do from this point, was hoping
> somebody might know or have a solution to this
> problem.
> 
> Best 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]




Anonymous access and authentication

2003-11-26 Thread Allan Clarke
Hello everybody, 

I'm trying to call a .asp file from my coldfusion page

using cfhttp. When I browse the the cfm file in the
browser, I see this message displayed on the browser:

You are not authorized to view this page 
You do not have permission to view this directory or
page using the credentials you supplied. 

HTTP 401.2 - Unauthorized: Logon failed due to server
configuration Internet Information Services

Now here is the code in the asp file (user.asp)

<%

Set ADSys = CreateObject("ADSystemInfo")

response.write "User=" & ADSys.UserName

%>

Here is the code in the coldfusion file
(getuserdetails.cfm)


timeout="30"/>
#CFHTTP.FileContent#

As you can see, I'm trying to get the user information
from the active directory. To get round the error
message I described above, I went to the webserver IIS
Management Console, right clicked on the file
user.asp, hit the "File Security" tab, hit the "Edit"
button under "Anonymous access and authentication
control" and ticked the "Annoymous access" check box.

Now that anonymous access permissions are set on the
file, when I call this file with the cfhttp tag, I
don't see the error I was getting earlier (HTTP 401.2
-
Unauthorized: Logon failed due to server configuration
Internet Information Services), but I get an asp error
(error '80070534') and I know I get this error because
active directory does not know who to look for because
anonymous access permissions are set on the file. I
don't know what to do from this point, was hoping
somebody might know or have a solution to this
problem.

Best 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]