Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2006, 10:24 AM
Authorized User
 
Join Date: Oct 2006
Location: , , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok... I am going through the example..

I have unselected Allow Anonymous-Access and checked Integrated Windows authentication

when i run the page a username and password box appear

if for example my computer was called roger, a user who was part of the administrators group was called paul and his password was 12345

surely i would logon

username : roger\paul
password : 12345

this doesnt work... I am just using my normal login to the computer and i am a members of administrators in the user section of computer management in control panel

this is wierd

 
Old October 26th, 2006, 10:36 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Ok the first part of that article is just to illustrate how it COULD work. Here is the problem. In that example it assumes you are hitting the web server from localhost\site and that you are logged on to the webserver as Admin. Now, lets say you wanted to use Windows Authentication to allow people to create virtual directories and execute your above script, now you have a management problem because you have to assign User Name and Passwords to people to allow them to be authenticated and, again, that is an Admin user account that can do ANYTHING on the webserver. This is akin to giving a Bank Robber the keys to the vault and going out to lunch.

The second half of the article gets into the C++ where you design a COM component to provide this functionality.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
 
Old October 26th, 2006, 10:39 AM
Authorized User
 
Join Date: Oct 2006
Location: , , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I agree and understand that..

I just want to get the first part working. and i dotn understand what i was doing wrong...

 
Old October 26th, 2006, 11:10 AM
Authorized User
 
Join Date: Oct 2006
Location: , , .
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is there a way in asp to retrieve part of the URL and use it

say the url was

http://localhost/site/craig

is there anyway of retrieving the word craig so to use it in the page

This is because i could have other addresses that are for example

http://localhost/site/Jon

where i need to retrieve the word jon

 
Old October 26th, 2006, 12:19 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Ya
Request.ServerVariables("URL")

Then just do string manipulation on it.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature




Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Directory MeenaG BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 December 2nd, 2006 01:48 PM
creating new virtual directory red_fiesta Classic ASP Basics 0 October 26th, 2006 04:29 AM
Virtual Directory kristina BOOK: Beginning ASP 3.0 1 April 22nd, 2005 09:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.