473,941 Members | 8,918 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Username & Password as parameters

I am trying to set a scheduled task for one of my ASP.net application
that I developed on a monthly basis. This application requires a login
authentication. I am sending the url of the login page in the Windows
scheduled task. But I also want to send the username and password as
Parameters (that is identified through windows authentication) . and
automatically assigned these parameters to loging into the application
and conduct my operation.

The problem here is I am not getting any idea as how to send the login
information as parameters in the url assigned to the schedule task.
Thanks
K

Sep 21 '06 #1
4 2369
Hello kvicky,

smth like http://yousite/youpase.asmx?Us er=<userName>?P ass=<hashOfPass >
and parse it receiver

kI am trying to set a scheduled task for one of my ASP.net application
kthat I developed on a monthly basis. This application requires a
klogin authentication. I am sending the url of the login page in the
kWindows scheduled task. But I also want to send the username and
kpassword as Parameters (that is identified through windows
kauthentication ). and automatically assigned these parameters to
kloging into the application and conduct my operation.
k>
kThe problem here is I am not getting any idea as how to send the
klogin information as parameters in the url assigned to the schedule
ktask.
k>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Sep 21 '06 #2
Thanks for your response.
Can you be more specific, what do you mean by hashofPassword

Thanks
K
Michael Nemtsev wrote:
Hello kvicky,

smth like http://yousite/youpase.asmx?Us er=<userName>?P ass=<hashOfPass >
and parse it receiver

kI am trying to set a scheduled task for one of my ASP.net application
kthat I developed on a monthly basis. This application requires a
klogin authentication. I am sending the url of the login page in the
kWindows scheduled task. But I also want to send the username and
kpassword as Parameters (that is identified through windows
kauthentication ). and automatically assigned these parameters to
kloging into the application and conduct my operation.
k>
kThe problem here is I am not getting any idea as how to send the
klogin information as parameters in the url assigned to the schedule
ktask.
k>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Sep 21 '06 #3
Hello kvicky,

Don't send and keed pass in plain text, send the hash value of you pass
kThanks for your response.
kCan you be more specific, what do you mean by hashofPassword
kThanks
kK
kMichael Nemtsev wrote:
k>
>Hello kvicky,

smth like
http://yousite/youpase.asmx?Us er=<userName>?P ass=<hashOfPass and
parse it receiver

kI am trying to set a scheduled task for one of my ASP.net
application
kthat I developed on a monthly basis. This application requires a
klogin authentication. I am sending the url of the login page in
the
kWindows scheduled task. But I also want to send the username and
kpassword as Parameters (that is identified through windows
kauthenticatio n). and automatically assigned these parameters to
kloging into the application and conduct my operation.
k>
kThe problem here is I am not getting any idea as how to send the
klogin information as parameters in the url assigned to the
schedule
ktask.
k>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents
do not cease to be insipid." (c) Friedrich Nietzsche
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Sep 21 '06 #4
I don't believe that this is the right solution. If windows
authentication is being used on the server side to identify the caller, then
you need to impersonate that caller. You can do this by setting the
scheduled task to run under the username/password you want to impersonate.

Then, on your HttpWebRequest instances, you would set the
UseDefaultCrede ntials property to true. This will take use the credentials
of the currently logged in user (the one you specify for your scheduled
task) and use those to identify yourself against your site.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Michael Nemtsev" <ne*****@msn.co mwrote in message
news:17******** *************** ****@msnews.mic rosoft.com...
Hello kvicky,

Don't send and keed pass in plain text, send the hash value of you pass
kThanks for your response.
kCan you be more specific, what do you mean by hashofPassword
kThanks
kK
kMichael Nemtsev wrote:
k>
>>Hello kvicky,

smth like
http://yousite/youpase.asmx?Us er=<userName>?P ass=<hashOfPass and
parse it receiver

kI am trying to set a scheduled task for one of my ASP.net
application
kthat I developed on a monthly basis. This application requires a
klogin authentication. I am sending the url of the login page in
the
kWindows scheduled task. But I also want to send the username and
kpassword as Parameters (that is identified through windows
kauthenticati on). and automatically assigned these parameters to
kloging into the application and conduct my operation.
k>
kThe problem here is I am not getting any idea as how to send the
klogin information as parameters in the url assigned to the
schedule
ktask.
k>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents
do not cease to be insipid." (c) Friedrich Nietzsche
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche


Sep 22 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6091
by: Lobang Trader | last post by:
Hi all, I am trying to create a username and a password class. I would like to know what are the RECOMMENDED minimum and maximum length for both fields? These fields will be something like this: private static final int DEFAULT_MINIMUM_LENGTH = ??????
2
18597
by: john brown | last post by:
There is a web page that I access frequently and would like to automate the authentication of the username and password. I would like to user a perl script but I'm not really sure about the steps. If someone could point me in the right direction. I don't know if it's this simple but wouldn't it just be a matter of using the LWP module. Calling the webpage and passing in the parameters? Any help would be appreciated. <html>...
15
9762
by: Eugene Anthony | last post by:
Is this method of validation for password and username considered to be secured. In my previous post I was given a solution that uses command object and the values are parsed by parameters. But the solution only worked well for insert and delete, but not select. <% if Request.QueryString("Action") = 1 then username = Trim(request.form("username")) password = Trim(request.form("password")) if username <> "" and password <> "" then
11
13988
by: Kevin O'Brien | last post by:
Hello, I am creating a sign on screen for my application in which I want to store the username and password in a database table. I was thinking of putting a combo box connected to the database to pull up the usernames and then having a textbox for the user to enter their password. Can someone tell me please how to compare the contents of the textbox to the password in the database?
0
1193
by: gujarsachin2001 | last post by:
hello friends i m connecting to http or https url programatically through console application using follwoing methods of credentilas but if there is username & password for that url through this code I m able to download files from that url using "DefaultCredentials" but i want to use password and username to access resources if tht url contains. & if for tht specific url if user enters wrong username & password so tht he must not able...
1
1652
by: gujarsachin2001 | last post by:
hello friends i m connecting to http or https url programatically through console application using follwoing methods of credentilas but if there is username & password for that url through this code I m able to download files from that url using "DefaultCredentials" but i want to use password and username to access resources if tht url contains. & if for tht specific url if user enters wrong username & password so tht he must not...
0
3008
by: sanbm79 | last post by:
Hi All, I am facing a problem in posting Web request with username and password credentials. I am working on migrating Java client application to .Net which will send request to Java servlet. Java Client application code: HttpClient httpclient; httpclient = new HttpClient();
3
1465
by: patelxxx | last post by:
Guy's, I'm using the following code and before I even enter my username and password I get the following error: 'Username or password did not match', what I'm I doing wrong? my $session = VM::Generic->new(); my $input = $session->parse_input; my $templateprefix = $input->{'area'} || 'reporting'; $session->validate_session($input);
3
19660
by: rodrigo | last post by:
I am trying to retrieve a password protected page using: get = urllib.urlopen('http://password.protected.url"').read() While doing this interactively, I'm asked for the username, then the password at the terminal. Is there any way to do this non-interactively? To hardcode the user/ pass into the script so I can get the page automatically? (This is not a cracking attempt, I am trying to retrieve a page I have
0
9963
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11110
jinu1996
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...
0
10659
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8218
isladogs
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...
0
7389
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();...
0
6078
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...
1
4908
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
2
4447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3505
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.