By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,896 Members | 1,997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,896 IT Pros & Developers. It's quick & easy.

Username & Password as parameters

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
Hello kvicky,

smth like http://yousite/youpase.asmx?User=<userName>?Pass=<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

P: n/a
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?User=<userName>?Pass=<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

P: n/a
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?User=<userName>?Pass=<hashOfPassand
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
---
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

P: n/a
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
UseDefaultCredentials 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.com

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:17***************************@msnews.microsof t.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?User=<userName>?Pass=<hashOfPassand
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
---
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 discussion thread is closed

Replies have been disabled for this discussion.