Impersonate

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    #1

    Impersonate

    VS2003
    I have a windowsform app that I wrote in VB.net. I am using SQL2005
    reporting services on 2003 server. In my vb.net code I place the URL of the
    report in a link that does a
    Process.Start(" http:\\www.myse rver.com\report s....").
    The windows 2k3 server has (needs) Windows Authen so it prompts me to login
    in with a standard windows logon box. I enter the username and password of a
    common user on the server and the web page shows up. I would like to pass
    the credentials through to the server from the vb app without prompting them
    every time they try to access the server. How can I do this? I tried to use
    impersonation code using WNetAddConnecti on2 passing
    "http:\www.myse rver.com...",us ername,password ,"reports" with the NETRESOURCE
    struc
    but I get error network name not found. I cant find the right parameter
    combo. How can I pass credentials to the web server, instead of manually
    entering them every time. I have already authenticated the user when he
    first runs the app. The server is an internet server. I thought about using
    SENDKEYS but that seems cheesy...
    Thanks,
    BUC


  • Herfried K. Wagner [MVP]

    #2
    Re: Impersonate

    <Buc> schrieb:[color=blue]
    > I have a windowsform app that I wrote in VB.net. I am using SQL2005
    > reporting services on 2003 server. In my vb.net code I place the URL of
    > the report in a link that does a
    > Process.Start(" http:\\www.myse rver.com\report s....").[/color]

    Replace "\\" with "//" and "\" with "/".
    [color=blue]
    > "http:\www.myse rver.com...",us ername,password ,"reports" with the
    > NETRESOURCE[/color]

    Dito.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    Working...