Username & Password as parameters

K

kvicky

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
 
M

Michael Nemtsev

Hello kvicky,

smth like http://yousite/youpase.asmx?User=<userName>?Pass=<hashOfPass>
and parse it receiver

k> I am trying to set a scheduled task for one of my ASP.net application
k> that I developed on a monthly basis. This application requires a
k> login authentication. I am sending the url of the login page in the
k> Windows scheduled task. But I also want to send the username and
k> password as Parameters (that is identified through windows
k> authentication). and automatically assigned these parameters to
k> loging into the application and conduct my operation.
k>
k> The problem here is I am not getting any idea as how to send the
k> login information as parameters in the url assigned to the schedule
k> task.
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
 
K

kvicky

Thanks for your response.
Can you be more specific, what do you mean by hashofPassword

Thanks
K
 
M

Michael Nemtsev

Hello kvicky,

Don't send and keed pass in plain text, send the hash value of you pass


k> Thanks for your response.
k> Can you be more specific, what do you mean by hashofPassword
k> Thanks
k> K
k> Michael Nemtsev wrote:
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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top