473,554 Members | 3,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing windows credentials from server to server.

Hello,

I have been desperately trying to programmaticall y authenticate a windows
user, create their credentials, and then redirect them to a different server
while passing the credentials at the same time so that they don't have to
login again.

Specifically, I have two webservers in the same domain. When I have a user
go to Webserver A (which uses basic authentication) I programmaticall y
create either a user credential or impersonate a user context (for now it's
hardcoded, but in the future it would be entered in forms). Then, I want to
let that user access a page on Webserver B (which uses basic
authentication) , but I don't want them to have to login again -- rather, I
want to use the user context that I programmaticall y created on Webserver A.

For instance, here is an example of the code I use to create the user
credentials:

Dim strURI = "http://www.whatever.co m"
Dim myCred As New NetworkCredenti al("userid", "password", "domain")
Dim myURI As New Uri(strURI)
Dim myCache As New CredentialCache
myCache.Add(myU RI, "Basic", myCred)

From this, I have attempted to use WebRequests and WebResponses to somehow
allow me to direct the browser to a different page, and use the credential I
have generated. The most I can do, however, is create the request and
receive the response:

Dim myWebRequest As System.Net.WebR equest =
System.Net.WebR equest.Create(s trURI)
myWebRequest.Cr edentials = myCache
Dim myWebResponse As WebResponse = myWebRequest.Ge tResponse()

If only I could use the response.redire ct method, and somehow pass the
credentials with the redirection (like you can with the webrequest), it
could work!

I have also attempted to use the LogonUser API (from the advapi32.dll), and
impersonate a user based on the proper logon information -- this works, and
I'm able to successfully impersonate the user, but again, I don't know how
to pass along the user context to a different page.

I know that many people will say "just use form based authentication, " but
this will not work for me, as I want this to work with tools like Outlook
Web Access, which requires windows authentication.

Any help would be greatly appreciated. Thank you!!

Wade
Nov 18 '05 #1
7 2601
Rad
while your only option is to use redirect to
http://username:pa******@somesite.com (if using basic), I wouldn't do that
either.

anything else -- can't do.
"Wade Wegner" <ww*******@hotm ail.com> wrote in message
news:OU******** ******@TK2MSFTN GP10.phx.gbl...
Hello,

I have been desperately trying to programmaticall y authenticate a windows
user, create their credentials, and then redirect them to a different server while passing the credentials at the same time so that they don't have to
login again.

Specifically, I have two webservers in the same domain. When I have a user go to Webserver A (which uses basic authentication) I programmaticall y
create either a user credential or impersonate a user context (for now it's hardcoded, but in the future it would be entered in forms). Then, I want to let that user access a page on Webserver B (which uses basic
authentication) , but I don't want them to have to login again -- rather, I
want to use the user context that I programmaticall y created on Webserver A.
For instance, here is an example of the code I use to create the user
credentials:

Dim strURI = "http://www.whatever.co m"
Dim myCred As New NetworkCredenti al("userid", "password", "domain")
Dim myURI As New Uri(strURI)
Dim myCache As New CredentialCache
myCache.Add(myU RI, "Basic", myCred)

From this, I have attempted to use WebRequests and WebResponses to somehow
allow me to direct the browser to a different page, and use the credential I have generated. The most I can do, however, is create the request and
receive the response:

Dim myWebRequest As System.Net.WebR equest =
System.Net.WebR equest.Create(s trURI)
myWebRequest.Cr edentials = myCache
Dim myWebResponse As WebResponse = myWebRequest.Ge tResponse()

If only I could use the response.redire ct method, and somehow pass the
credentials with the redirection (like you can with the webrequest), it
could work!

I have also attempted to use the LogonUser API (from the advapi32.dll), and impersonate a user based on the proper logon information -- this works, and I'm able to successfully impersonate the user, but again, I don't know how
to pass along the user context to a different page.

I know that many people will say "just use form based authentication, " but this will not work for me, as I want this to work with tools like Outlook
Web Access, which requires windows authentication.

Any help would be greatly appreciated. Thank you!!

Wade

Nov 18 '05 #2
if they are your own servers, you could set up a webservice to transfer
session info back and forth...
"Wade Wegner" <ww*******@hotm ail.com> wrote in message
news:OU******** ******@TK2MSFTN GP10.phx.gbl...
Hello,

I have been desperately trying to programmaticall y authenticate a windows
user, create their credentials, and then redirect them to a different server while passing the credentials at the same time so that they don't have to
login again.

Specifically, I have two webservers in the same domain. When I have a user go to Webserver A (which uses basic authentication) I programmaticall y
create either a user credential or impersonate a user context (for now it's hardcoded, but in the future it would be entered in forms). Then, I want to let that user access a page on Webserver B (which uses basic
authentication) , but I don't want them to have to login again -- rather, I
want to use the user context that I programmaticall y created on Webserver A.
For instance, here is an example of the code I use to create the user
credentials:

Dim strURI = "http://www.whatever.co m"
Dim myCred As New NetworkCredenti al("userid", "password", "domain")
Dim myURI As New Uri(strURI)
Dim myCache As New CredentialCache
myCache.Add(myU RI, "Basic", myCred)

From this, I have attempted to use WebRequests and WebResponses to somehow
allow me to direct the browser to a different page, and use the credential I have generated. The most I can do, however, is create the request and
receive the response:

Dim myWebRequest As System.Net.WebR equest =
System.Net.WebR equest.Create(s trURI)
myWebRequest.Cr edentials = myCache
Dim myWebResponse As WebResponse = myWebRequest.Ge tResponse()

If only I could use the response.redire ct method, and somehow pass the
credentials with the redirection (like you can with the webrequest), it
could work!

I have also attempted to use the LogonUser API (from the advapi32.dll), and impersonate a user based on the proper logon information -- this works, and I'm able to successfully impersonate the user, but again, I don't know how
to pass along the user context to a different page.

I know that many people will say "just use form based authentication, " but this will not work for me, as I want this to work with tools like Outlook
Web Access, which requires windows authentication.

Any help would be greatly appreciated. Thank you!!

Wade

Nov 18 '05 #3
Huh!

I never you could do that to pass login information to a site with basic
authentication. Is there a name for that? Something that would allow me to
look it up in MSDN? I wonder what the security considerations are. If used
with SSL, is it safe? Etc.

Thanks for the idea, though ... I'll look into it some more.

Wade

"Rad" <as*******@hot. spam.mail.com> wrote in message
news:hj******** **************@ twister.southea st.rr.com...
while your only option is to use redirect to
http://username:pa******@somesite.com (if using basic), I wouldn't do that
either.

anything else -- can't do.
"Wade Wegner" <ww*******@hotm ail.com> wrote in message
news:OU******** ******@TK2MSFTN GP10.phx.gbl...
Hello,

I have been desperately trying to programmaticall y authenticate a windows user, create their credentials, and then redirect them to a different server
while passing the credentials at the same time so that they don't have to login again.

Specifically, I have two webservers in the same domain. When I have a

user
go to Webserver A (which uses basic authentication) I programmaticall y
create either a user credential or impersonate a user context (for now

it's
hardcoded, but in the future it would be entered in forms). Then, I want to
let that user access a page on Webserver B (which uses basic
authentication) , but I don't want them to have to login again -- rather,
I want to use the user context that I programmaticall y created on Webserver A.

For instance, here is an example of the code I use to create the user
credentials:

Dim strURI = "http://www.whatever.co m"
Dim myCred As New NetworkCredenti al("userid", "password", "domain")
Dim myURI As New Uri(strURI)
Dim myCache As New CredentialCache
myCache.Add(myU RI, "Basic", myCred)

From this, I have attempted to use WebRequests and WebResponses to
somehow allow me to direct the browser to a different page, and use the credential I
have generated. The most I can do, however, is create the request and
receive the response:

Dim myWebRequest As System.Net.WebR equest =
System.Net.WebR equest.Create(s trURI)
myWebRequest.Cr edentials = myCache
Dim myWebResponse As WebResponse = myWebRequest.Ge tResponse()

If only I could use the response.redire ct method, and somehow pass the
credentials with the redirection (like you can with the webrequest), it
could work!

I have also attempted to use the LogonUser API (from the advapi32.dll),

and
impersonate a user based on the proper logon information -- this works,

and
I'm able to successfully impersonate the user, but again, I don't know

how to pass along the user context to a different page.

I know that many people will say "just use form based authentication, "

but
this will not work for me, as I want this to work with tools like Outlook Web Access, which requires windows authentication.

Any help would be greatly appreciated. Thank you!!

Wade


Nov 18 '05 #4
Okay, as I've been playing with the method you mentioned, I've noted the
following.

If I create a login form, and then programmaticall y create a URL string, and
then redirect to that URL, it prompts me to login. However, if I register a
vbscript that uses window.location to redirect the user to this script, it
doesn't. Does the response.redire ct not work?

For example, this is what I use for the response.redire ct:

Dim strURL as string
strURL = "http://" & txtUserID.Text & ":" & txtPassword.Tex t &
"@mydomain. com"

response.redire ct(strURL)

That doesn't work, and it prompts me to login.

However, I can get the following to work fine:

Dim strURL as string
strURL = "http://" & txtUserID.Text & ":" & txtPassword.Tex t &
"@mydomain. com"

Dim txtScript as new System.Text.Str ingBuilder
txtScript.Appen d(vbCr & "<script language=vbscri pt>")
txtScript.Appen d(vbCr & "window.locatio n = """ & strURL & """")
txtScript.Appen d(vbCr & "</script>" & vbCr & vbCr)

Page.RegisterSt artupScript("re direct", txtScript.ToStr ing)

When I redirect from the client, this works fine. Additionally, if I simply
type in the address into the browser, it works properly.

Any ideas? Will I have to do this from the client?

Thanks,

Wade

"Rad" <as*******@hot. spam.mail.com> wrote in message
news:hj******** **************@ twister.southea st.rr.com...
while your only option is to use redirect to
http://username:pa******@somesite.com (if using basic), I wouldn't do that
either.

anything else -- can't do.
"Wade Wegner" <ww*******@hotm ail.com> wrote in message
news:OU******** ******@TK2MSFTN GP10.phx.gbl...
Hello,

I have been desperately trying to programmaticall y authenticate a windows user, create their credentials, and then redirect them to a different server
while passing the credentials at the same time so that they don't have to login again.

Specifically, I have two webservers in the same domain. When I have a

user
go to Webserver A (which uses basic authentication) I programmaticall y
create either a user credential or impersonate a user context (for now

it's
hardcoded, but in the future it would be entered in forms). Then, I want to
let that user access a page on Webserver B (which uses basic
authentication) , but I don't want them to have to login again -- rather,
I want to use the user context that I programmaticall y created on Webserver A.

For instance, here is an example of the code I use to create the user
credentials:

Dim strURI = "http://www.whatever.co m"
Dim myCred As New NetworkCredenti al("userid", "password", "domain")
Dim myURI As New Uri(strURI)
Dim myCache As New CredentialCache
myCache.Add(myU RI, "Basic", myCred)

From this, I have attempted to use WebRequests and WebResponses to
somehow allow me to direct the browser to a different page, and use the credential I
have generated. The most I can do, however, is create the request and
receive the response:

Dim myWebRequest As System.Net.WebR equest =
System.Net.WebR equest.Create(s trURI)
myWebRequest.Cr edentials = myCache
Dim myWebResponse As WebResponse = myWebRequest.Ge tResponse()

If only I could use the response.redire ct method, and somehow pass the
credentials with the redirection (like you can with the webrequest), it
could work!

I have also attempted to use the LogonUser API (from the advapi32.dll),

and
impersonate a user based on the proper logon information -- this works,

and
I'm able to successfully impersonate the user, but again, I don't know

how to pass along the user context to a different page.

I know that many people will say "just use form based authentication, "

but
this will not work for me, as I want this to work with tools like Outlook Web Access, which requires windows authentication.

Any help would be greatly appreciated. Thank you!!

Wade


Nov 18 '05 #5
Rad
I don't like this approach (of passing credentials like this) at all.. it's
visible in the address bar.. so I'm not sure this is really a good idea.

it's an HTTP thingie.. so you would want to look at it there.. MSDN may have
it.. but may not...

"Wade Wegner" <ww*******@hotm ail.com> wrote in message
news:uU******** ******@TK2MSFTN GP12.phx.gbl...
Okay, as I've been playing with the method you mentioned, I've noted the
following.

If I create a login form, and then programmaticall y create a URL string, and then redirect to that URL, it prompts me to login. However, if I register a vbscript that uses window.location to redirect the user to this script, it
doesn't. Does the response.redire ct not work?

For example, this is what I use for the response.redire ct:

Dim strURL as string
strURL = "http://" & txtUserID.Text & ":" & txtPassword.Tex t &
"@mydomain. com"

response.redire ct(strURL)

That doesn't work, and it prompts me to login.

However, I can get the following to work fine:

Dim strURL as string
strURL = "http://" & txtUserID.Text & ":" & txtPassword.Tex t &
"@mydomain. com"

Dim txtScript as new System.Text.Str ingBuilder
txtScript.Appen d(vbCr & "<script language=vbscri pt>")
txtScript.Appen d(vbCr & "window.locatio n = """ & strURL & """")
txtScript.Appen d(vbCr & "</script>" & vbCr & vbCr)

Page.RegisterSt artupScript("re direct", txtScript.ToStr ing)

When I redirect from the client, this works fine. Additionally, if I simply type in the address into the browser, it works properly.

Any ideas? Will I have to do this from the client?

Thanks,

Wade

"Rad" <as*******@hot. spam.mail.com> wrote in message
news:hj******** **************@ twister.southea st.rr.com...
while your only option is to use redirect to
http://username:pa******@somesite.com (if using basic), I wouldn't do that
either.

anything else -- can't do.
"Wade Wegner" <ww*******@hotm ail.com> wrote in message
news:OU******** ******@TK2MSFTN GP10.phx.gbl...
Hello,

I have been desperately trying to programmaticall y authenticate a windows user, create their credentials, and then redirect them to a different server
while passing the credentials at the same time so that they don't have to login again.

Specifically, I have two webservers in the same domain. When I have a

user
go to Webserver A (which uses basic authentication) I programmaticall y
create either a user credential or impersonate a user context (for now

it's
hardcoded, but in the future it would be entered in forms). Then, I want
to
let that user access a page on Webserver B (which uses basic
authentication) , but I don't want them to have to login again -- rather, I want to use the user context that I programmaticall y created on Webserver
A.

For instance, here is an example of the code I use to create the user
credentials:

Dim strURI = "http://www.whatever.co m"
Dim myCred As New NetworkCredenti al("userid", "password",

"domain") Dim myURI As New Uri(strURI)
Dim myCache As New CredentialCache
myCache.Add(myU RI, "Basic", myCred)

From this, I have attempted to use WebRequests and WebResponses to

somehow allow me to direct the browser to a different page, and use the credential
I
have generated. The most I can do, however, is create the request and
receive the response:

Dim myWebRequest As System.Net.WebR equest =
System.Net.WebR equest.Create(s trURI)
myWebRequest.Cr edentials = myCache
Dim myWebResponse As WebResponse = myWebRequest.Ge tResponse()

If only I could use the response.redire ct method, and somehow pass the
credentials with the redirection (like you can with the webrequest), it could work!

I have also attempted to use the LogonUser API (from the

advapi32.dll), and
impersonate a user based on the proper logon information -- this
works, and
I'm able to successfully impersonate the user, but again, I don't know

how to pass along the user context to a different page.

I know that many people will say "just use form based authentication, "

but
this will not work for me, as I want this to work with tools like Outlook Web Access, which requires windows authentication.

Any help would be greatly appreciated. Thank you!!

Wade



Nov 18 '05 #6
See, I do not experience it displaying in the address bar. I have not been
able to find anything in MSDN concerning this, but I started to think that
all this method does is mimic what basic authentication does -- I mean,
basic authentication is unencrypted, clear text. Is employing this method
any different than using basic authentication? In both cases, obviously, it
would be worthwhile to encrypt using SSL.

I still wish I understood why this solution would not work if redirected
from the server, via response.redire ct, but will if it is redirected at the
client. Even if this isn't a good solution, I'd like to know the answer to
that.
"Rad" <as*******@hot. spam.mail.com> wrote in message
news:or******** *************** @twister.southe ast.rr.com...
I don't like this approach (of passing credentials like this) at all.. it's visible in the address bar.. so I'm not sure this is really a good idea.

it's an HTTP thingie.. so you would want to look at it there.. MSDN may have it.. but may not...

"Wade Wegner" <ww*******@hotm ail.com> wrote in message
news:uU******** ******@TK2MSFTN GP12.phx.gbl...
Okay, as I've been playing with the method you mentioned, I've noted the
following.

If I create a login form, and then programmaticall y create a URL string, and
then redirect to that URL, it prompts me to login. However, if I register a
vbscript that uses window.location to redirect the user to this script, it doesn't. Does the response.redire ct not work?

For example, this is what I use for the response.redire ct:

Dim strURL as string
strURL = "http://" & txtUserID.Text & ":" & txtPassword.Tex t &
"@mydomain. com"

response.redire ct(strURL)

That doesn't work, and it prompts me to login.

However, I can get the following to work fine:

Dim strURL as string
strURL = "http://" & txtUserID.Text & ":" & txtPassword.Tex t &
"@mydomain. com"

Dim txtScript as new System.Text.Str ingBuilder
txtScript.Appen d(vbCr & "<script language=vbscri pt>")
txtScript.Appen d(vbCr & "window.locatio n = """ & strURL & """")
txtScript.Appen d(vbCr & "</script>" & vbCr & vbCr)

Page.RegisterSt artupScript("re direct", txtScript.ToStr ing)

When I redirect from the client, this works fine. Additionally, if I

simply
type in the address into the browser, it works properly.

Any ideas? Will I have to do this from the client?

Thanks,

Wade

"Rad" <as*******@hot. spam.mail.com> wrote in message
news:hj******** **************@ twister.southea st.rr.com...
while your only option is to use redirect to
http://username:pa******@somesite.com (if using basic), I wouldn't do that either.

anything else -- can't do.
"Wade Wegner" <ww*******@hotm ail.com> wrote in message
news:OU******** ******@TK2MSFTN GP10.phx.gbl...
> Hello,
>
> I have been desperately trying to programmaticall y authenticate a

windows
> user, create their credentials, and then redirect them to a different server
> while passing the credentials at the same time so that they don't have to
> login again.
>
> Specifically, I have two webservers in the same domain. When I have
a user
> go to Webserver A (which uses basic authentication) I programmaticall y > create either a user credential or impersonate a user context (for now it's
> hardcoded, but in the future it would be entered in forms). Then, I

want
to
> let that user access a page on Webserver B (which uses basic
> authentication) , but I don't want them to have to login again -- rather,
I
> want to use the user context that I programmaticall y created on

Webserver
A.
>
> For instance, here is an example of the code I use to create the user > credentials:
>
> Dim strURI = "http://www.whatever.co m"
> Dim myCred As New NetworkCredenti al("userid", "password",

"domain") > Dim myURI As New Uri(strURI)
> Dim myCache As New CredentialCache
> myCache.Add(myU RI, "Basic", myCred)
>
> From this, I have attempted to use WebRequests and WebResponses to

somehow
> allow me to direct the browser to a different page, and use the

credential
I
> have generated. The most I can do, however, is create the request and > receive the response:
>
> Dim myWebRequest As System.Net.WebR equest =
> System.Net.WebR equest.Create(s trURI)
> myWebRequest.Cr edentials = myCache
> Dim myWebResponse As WebResponse = myWebRequest.Ge tResponse()
>
> If only I could use the response.redire ct method, and somehow pass the > credentials with the redirection (like you can with the webrequest), it > could work!
>
> I have also attempted to use the LogonUser API (from the advapi32.dll), and
> impersonate a user based on the proper logon information -- this works, and
> I'm able to successfully impersonate the user, but again, I don't know how
> to pass along the user context to a different page.
>
> I know that many people will say "just use form based

authentication, " but
> this will not work for me, as I want this to work with tools like

Outlook
> Web Access, which requires windows authentication.
>
> Any help would be greatly appreciated. Thank you!!
>
> Wade
>
>



Nov 18 '05 #7
Rad
Look at HTTP specs... see what it says for 302 (that's what
response.redire ct really is)...

as I said, all this is http stuff.. so MSDN may not have it (just like they
dont' have http specs there...) you'd probably want to start looking at
w3c's site
"Wade Wegner" <ww*******@hotm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
See, I do not experience it displaying in the address bar. I have not been able to find anything in MSDN concerning this, but I started to think that
all this method does is mimic what basic authentication does -- I mean,
basic authentication is unencrypted, clear text. Is employing this method
any different than using basic authentication? In both cases, obviously, it would be worthwhile to encrypt using SSL.

I still wish I understood why this solution would not work if redirected
from the server, via response.redire ct, but will if it is redirected at the client. Even if this isn't a good solution, I'd like to know the answer to that.
"Rad" <as*******@hot. spam.mail.com> wrote in message
news:or******** *************** @twister.southe ast.rr.com...
I don't like this approach (of passing credentials like this) at all.. it's
visible in the address bar.. so I'm not sure this is really a good idea.

it's an HTTP thingie.. so you would want to look at it there.. MSDN may

have
it.. but may not...

"Wade Wegner" <ww*******@hotm ail.com> wrote in message
news:uU******** ******@TK2MSFTN GP12.phx.gbl...
Okay, as I've been playing with the method you mentioned, I've noted the following.

If I create a login form, and then programmaticall y create a URL string,
and
then redirect to that URL, it prompts me to login. However, if I register
a
vbscript that uses window.location to redirect the user to this
script, it doesn't. Does the response.redire ct not work?

For example, this is what I use for the response.redire ct:

Dim strURL as string
strURL = "http://" & txtUserID.Text & ":" & txtPassword.Tex t &
"@mydomain. com"

response.redire ct(strURL)

That doesn't work, and it prompts me to login.

However, I can get the following to work fine:

Dim strURL as string
strURL = "http://" & txtUserID.Text & ":" & txtPassword.Tex t &
"@mydomain. com"

Dim txtScript as new System.Text.Str ingBuilder
txtScript.Appen d(vbCr & "<script language=vbscri pt>")
txtScript.Appen d(vbCr & "window.locatio n = """ & strURL & """")
txtScript.Appen d(vbCr & "</script>" & vbCr & vbCr)

Page.RegisterSt artupScript("re direct", txtScript.ToStr ing)

When I redirect from the client, this works fine. Additionally, if I simply
type in the address into the browser, it works properly.

Any ideas? Will I have to do this from the client?

Thanks,

Wade

"Rad" <as*******@hot. spam.mail.com> wrote in message
news:hj******** **************@ twister.southea st.rr.com...
> while your only option is to use redirect to
> http://username:pa******@somesite.com (if using basic), I wouldn't
do that
> either.
>
> anything else -- can't do.
>
>
> "Wade Wegner" <ww*******@hotm ail.com> wrote in message
> news:OU******** ******@TK2MSFTN GP10.phx.gbl...
> > Hello,
> >
> > I have been desperately trying to programmaticall y authenticate a
windows
> > user, create their credentials, and then redirect them to a different > server
> > while passing the credentials at the same time so that they don't have to
> > login again.
> >
> > Specifically, I have two webservers in the same domain. When I
have a > user
> > go to Webserver A (which uses basic authentication) I programmaticall y > > create either a user credential or impersonate a user context (for now > it's
> > hardcoded, but in the future it would be entered in forms). Then,
I want
> to
> > let that user access a page on Webserver B (which uses basic
> > authentication) , but I don't want them to have to login again --

rather,
I
> > want to use the user context that I programmaticall y created on
Webserver
> A.
> >
> > For instance, here is an example of the code I use to create the

user > > credentials:
> >
> > Dim strURI = "http://www.whatever.co m"
> > Dim myCred As New NetworkCredenti al("userid", "password",

"domain")
> > Dim myURI As New Uri(strURI)
> > Dim myCache As New CredentialCache
> > myCache.Add(myU RI, "Basic", myCred)
> >
> > From this, I have attempted to use WebRequests and WebResponses to
somehow
> > allow me to direct the browser to a different page, and use the
credential
> I
> > have generated. The most I can do, however, is create the request and > > receive the response:
> >
> > Dim myWebRequest As System.Net.WebR equest =
> > System.Net.WebR equest.Create(s trURI)
> > myWebRequest.Cr edentials = myCache
> > Dim myWebResponse As WebResponse = myWebRequest.Ge tResponse()
> >
> > If only I could use the response.redire ct method, and somehow pass the > > credentials with the redirection (like you can with the
webrequest), it
> > could work!
> >
> > I have also attempted to use the LogonUser API (from the

advapi32.dll),
> and
> > impersonate a user based on the proper logon information -- this

works,
> and
> > I'm able to successfully impersonate the user, but again, I don't

know how
> > to pass along the user context to a different page.
> >
> > I know that many people will say "just use form based authentication, " > but
> > this will not work for me, as I want this to work with tools like
Outlook
> > Web Access, which requires windows authentication.
> >
> > Any help would be greatly appreciated. Thank you!!
> >
> > Wade
> >
> >
>
>



Nov 18 '05 #8

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

Similar topics

2
7512
by: Angelo Vargheese | last post by:
Hi, I am trying to retrieve XML created by ASP pages on different servers and display them on a single ASP.Net page. I was planning to use the XMLDocument and XMLResolver objects like below: xmlResolver.Credentials = CredentialCache.DefaultCredentials xmlDoc = New XmlDocument xmlDoc.XmlResolver = xmlResolver
3
2255
by: Das | last post by:
Hi all, I'm writig an application that sends an http request to java servlet file. I have to pass an xml file to the servlet. How should I pass xml file to the file. When I try to access the url directly it shows me Forbidden You do not have permission to access /RequestListenerServlet on this server.
1
5242
by: jadher | last post by:
I try to access an asp page in a machine that has windows integrated authentication turned on. I use System.Net.Networkcredentials as well as System.Net.Webrequest and Webresponse. I receive a response but when I try to use Response.Redirect(), a popup windows appears asking me for user, password, domain. Is there a way to pass the...
3
6091
by: Patrick.O.Ige | last post by:
Hi folks, How can i pass credentials to windows integrated authentication. I want to use my credentials from windows authentication and pass it on to different asp.net and asp pages without having to login again. Any help?
5
4384
by: cdlipfert | last post by:
Our intranet is running under windows integrated security. We have domain users that want to access our intranet site via ssl vpn. SSL VPN can not authenticate against services that run under windows integrated security. In order to get around this issue it seems that we would need to create a login page on a separate site that runs under...
3
4899
by: GRB | last post by:
My webiste has integrated windows authentication. I need to pass a clients credentials (username, password) to my site without the login pop up. I send the client to an anonymous page, get an encrypted cookie and read it to get the credentials. Then redirect the client to my web site. How can I pass the credentials to IIS and avoid the login...
0
1489
by: solex | last post by:
Am I to assume that if I have a windows client using DotNet and VBA respectively that the way to pass the default credentials is: DotNET: ws.Credentials = System.Net.CredentialCache.DefaultCredentials VBA: ws.ConnectorProperty("ProxyServer") = "<CURRENT_USER>" If the above is true how do I then use the credentials in a...
6
9866
by: =?Utf-8?B?UGFyYWcgR2Fpa3dhZA==?= | last post by:
Hi All, We have a requirement where we have to develop a custom Login Page which will accept user's NT credentials ( Username , password, domain name). This then needs to be passed to a website which uses Windows Authentication Now my question is how do we pass these credentials to IIS in classic ASP? Would appreciate any help/pointers on...
0
2844
by: Jesper Lund Stocholm | last post by:
I have created a WCF-service running on IIS. The virtual directory has anonymous access disabled and requires integrated windows authentication. The proxy to the service is auto-generated using Visual Studio 2008's "Add Service reference". My problem is that when I try to execute a method on the service, I get the following exception: ...
0
7584
marktang
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7512
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...
0
7783
Oralloy
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. ...
0
8023
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...
0
5144
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...
0
3536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2009
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
1
1117
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
828
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...

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.