P
pascal
Simple question, already searched but really nothing found.
When I try to access a network resource - of a server I not yet have
authenticated against - I get a Windows Credentials Prompt.
I'm developing an .net application that needs to access a network
share. Is there a .net or WinAPI call I can make that shows this
Windows Credentials Prompt and gives me back a token so that I can
Impersonate that User to access the network resource? Without this i
get security exceptions and can not access files.
Impersonation by using a Token through calling LogonUser API (with
user password given) works. But i would prefer showing the Windows
Prompt instead of doing a own user/pass prompt.
And, is there an API to check if a token exists to access a server?
(checking if it is necessary to show the prompt.)
thanks a lot!
When I try to access a network resource - of a server I not yet have
authenticated against - I get a Windows Credentials Prompt.
I'm developing an .net application that needs to access a network
share. Is there a .net or WinAPI call I can make that shows this
Windows Credentials Prompt and gives me back a token so that I can
Impersonate that User to access the network resource? Without this i
get security exceptions and can not access files.
Impersonation by using a Token through calling LogonUser API (with
user password given) works. But i would prefer showing the Windows
Prompt instead of doing a own user/pass prompt.
And, is there an API to check if a token exists to access a server?
(checking if it is necessary to show the prompt.)
thanks a lot!