I am running 2000 server, sp4, IIS 5
I need to be able to autoexecute an asp page from a batch
file that is placed in the windows scheduler.
I can execute the page fine, but I can't get past the
authentication. How do I pass the username and password
to windows via the URL automatically so this can be done
without any user action? This is not a https but it uses
integrated windows authentication.
I tried http://www.domain.com/page.asp&user=...&password=pass
word
AND http://username:pa******@www.domain.com/page.asp
Found these examples in forums but they wouldn't work for
me. The first one still prompted me for
username,passwo rd. The second didn't work at all. (Do I
need to specify domain somewhere?)
I have to do this because I have a page that runs based
on the calendar day, month, etc but doesn't necessarily
get accessed everyday, so I need to make sure it gets
accessed at least once a day so the proper actions are
taken and everything is updated accordingly. 4 1800
"Anton" <an*******@disc ussions.microso ft.com> wrote in message
news:16******** *************** ******@phx.gbl. .. I am running 2000 server, sp4, IIS 5
I need to be able to autoexecute an asp page from a batch file that is placed in the windows scheduler.
You would be better off converting the ASP page to a VBScript file (.vbs)
and having THAT run in the scheduler.
Regards,
Peter Foti
Why does it have to be an ASP page? http://www.aspfaq.com/2143
--
Aaron Bertrand
SQL Server MVP http://www.aspfaq.com/
"Anton" <an*******@disc ussions.microso ft.com> wrote in message
news:16******** *************** ******@phx.gbl. .. I am running 2000 server, sp4, IIS 5
I need to be able to autoexecute an asp page from a batch file that is placed in the windows scheduler.
I can execute the page fine, but I can't get past the authentication. How do I pass the username and password to windows via the URL automatically so this can be done without any user action? This is not a https but it uses integrated windows authentication.
I tried http://www.domain.com/page.asp&user=...&password=pass word
AND
http://username:pa******@www.domain.com/page.asp
Found these examples in forums but they wouldn't work for me. The first one still prompted me for username,passwo rd. The second didn't work at all. (Do I need to specify domain somewhere?)
I have to do this because I have a page that runs based on the calendar day, month, etc but doesn't necessarily get accessed everyday, so I need to make sure it gets accessed at least once a day so the proper actions are taken and everything is updated accordingly.
Anton,
Microsoft has done away with sending credentials via URL, for security
reasons. So, unless you are using a browser with no patches after say 2
months ago, this will not work.
You can however, try cookie authentication, where you check the cookie for a
value and let the browser in. But, if the server has integrated security
turned on, I guess you have to do this either manually, or programmaticall y
using XMLHTTP.
--
Manohar Kamath
Editor, .netWire www.dotnetwire.com
"Anton" <an*******@disc ussions.microso ft.com> wrote in message
news:16******** *************** ******@phx.gbl. .. I am running 2000 server, sp4, IIS 5
I need to be able to autoexecute an asp page from a batch file that is placed in the windows scheduler.
I can execute the page fine, but I can't get past the authentication. How do I pass the username and password to windows via the URL automatically so this can be done without any user action? This is not a https but it uses integrated windows authentication.
I tried http://www.domain.com/page.asp&user=...&password=pass word
AND
http://username:pa******@www.domain.com/page.asp
Found these examples in forums but they wouldn't work for me. The first one still prompted me for username,passwo rd. The second didn't work at all. (Do I need to specify domain somewhere?)
I have to do this because I have a page that runs based on the calendar day, month, etc but doesn't necessarily get accessed everyday, so I need to make sure it gets accessed at least once a day so the proper actions are taken and everything is updated accordingly.
"Anton" wrote in message news:16******** *************** ******@phx.gbl. ..
: I am running 2000 server, sp4, IIS 5
:
: I need to be able to autoexecute an asp page from a batch
: file that is placed in the windows scheduler.
:
: I can execute the page fine, but I can't get past the
: authentication. How do I pass the username and password
: to windows via the URL automatically so this can be done
: without any user action? This is not a https but it uses
: integrated windows authentication.
:
: I tried
: http://www.domain.com/page.asp&user=...&password=pass
: word
:
: AND
:
: http://username:pa******@www.domain.com/page.asp
:
: Found these examples in forums but they wouldn't work for
: me. The first one still prompted me for
: username,passwo rd. The second didn't work at all. (Do I
: need to specify domain somewhere?)
Basic authentication prompts for name and password. Integrated prompts for
name, password and domain. IE is prompting you, not IIS. IIS only responds
with what is supported. You may be experiencing an authorization failure
and not an authentication failure.
What are your IIS security settings for this particular page, which browser
are you using, and what are your file system settings to that physical path
on your server?
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: bunnytail |
last post by:
hi all,
I wonder if its possible in Apache authentication scheme, to have a
special user that will be authenticated without password in interanl
network, while other users still have to follow the regular policy.
I've tried to use "satisfy any/all" in .htaccess file.
AuthName "Me Only"
AuthType Basic
|
by: Renato Neves |
last post by:
The following code is working fine, i can create the user in the Active
Directory and "enable" it.
My problem is that, when i'm trying to authenticate him, i can't get to
work!! The user and pass is correct, but it can't authenticate. If i try
other user created in the AD, it work just fine!!!
<------------------------------------------------------------------------------------------------------------->
< ...
|
by: tchangmian |
last post by:
Hi, I would like to create an auto-lock out module where users are
unable to continue login attempt after 3-5 unsuccessful logins. In
addition, the user account are automatically suspended after
stipulated unsuccessful logins.
Is there any sample coding in ASP or Javascript for me to refer to??
Thanks alot!!!
|
by: allenj |
last post by:
DB2 UDB 7.2 WSE
Fixpak 9
Linux Red Hat 7.3
A very strange thing just happened w/ my DB2 server. I am on Linux and
using NIS - the instance owner is in the servers /etc/passwd file.
Suddenly, DB2 would not authenticate any NIS-based logins, but it
*would* authenticate the local non-NIS instance owner. This was
happening not only w/ local connections on the server, but also
|
by: Ram |
last post by:
How to Authenticate NDS server using C#
| |
by: ALI-R |
last post by:
I know how to authenticate to a webservice using either of these
ways(Assuming that rService represents the webservice):
1) rService.Credentials = new
System.Net.NetworkCredential("username","password","domainName");
2)rService.Credentials = System.Net.CredentialCache.DefaultCredentials;
My question is that is there a way to authenticate to a user using
WindowsIdentity ???
|
by: EricRybarczyk |
last post by:
I am starting a rewrite of an existing Classic ASP web site in ASP.NET 2.0.
The existing ASP application has several types of users, each with a separate
login process (separate login page, separate DB tables, etc). For one of
these user types, the current application has an additional input field
required for login… they have a username, password, and another “location
code” field. Please don’t make me explain or justify this…...
|
by: laredotornado |
last post by:
Hi,
Using Apache web server, I am protecting certain directories with
..htaccess files. Is there a way in PHP where I can automatically
sjbmit login credentials without having to type them into the gray box
each time? I'm using PHP 4.4.4 if that helps.
Thanks for any advice, - Dave
|
by: Des |
last post by:
I was wondering if anyone could help me out with this. I use Access
2003 to generate certain files and then I convert them to pdf, I was
wondering if anyone would know the code I could use where I would have
the ability to have them automatically emailed after they're converted
to different sources?
I can be emailed via despairingone@aol.com
Thanks..
|
by: Proogeren |
last post by:
I have a problem with a httpwebrequest that I am creating. The request in itself looks correct but using fiddler I see that a www-authentication header is sent along as well. The code is pasted below. I do not add any www-authentication header here so I was wondering if anyone knows how to remove it.
I have used almost 2 days trying to figure this out so help would be highly appreciated.
CORRECT
No proxy-authenticate header is present
no...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |