Re: opening files on file shares with different username/passwords



Or, you can impersonate that user and try and open the file. See
LogonUser(), ImpersonateLoggedOnUser().

-Farooque

"Doug" <probsolv@xxxxxxxxxxxxxx> wrote in message
news:730A55DD-181B-474C-AAE9-2C21C46628D8@xxxxxxxxxxxxxxxx
> I would think this should be simple but have not found anything which
would
> let me us different credentials opening files. ie. I don't want to give
the
> users using the app access to the share just my app. I know this can be
done
> as I've seen apps which ask for username/password which it would use to
> connect to these file shares. Try as I might I can't find it. I assume
would
> open a connection to the share(ie. mount it). After that i should be able
to
> access the file system in that share.
>
> Using visual c++ 6.0 2000/xp/2003
>
> thanks
>


.



Relevant Pages

  • Re: ASP.NET Forms Authentication & LogonUser API
    ... Did you impersonate the token you received as a result of the call to ... current thread's security context execute as the returned token. ... I am using both of above in my ASP.Net app. ... To use the LogonUser API i have to add the ASPNET account to the Local ...
    (microsoft.public.dotnet.security)
  • Re: LogonUser from ASP.NET
    ... privileges), this attempt to elevate privileges will fail. ... > the impersonization since i call impersonate in the COM+ component. ... > obtained from the LogonUser and then calling Impersonate from ASP.NET ... What should I change in the config file to allow ASP.NET app ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • q: asp.net: changing logon time to get LOGON32_LOGON_NETWORK_CLEARTEXT ?
    ... mode="Windows", so the app will impersonate under the user, which access ... app identity was logged on w/out the NETWORK_CLEARTEXT flag ... can I change that flag somehow for current application ... I can not do the LogonUser, because my server-side code do not ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: LogonUser from ASP.NET
    ... COM+ to call LogonUser to get the token handle. ... The exception that I get while trying to call Impersonate from the ASP.NET ... app is the SecurityException. ... > SecurityException or some other type of exception? ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Remote call to COM impersonating another user
    ... When I call LogonUser, it fails, I think because the domain I need to log ... the local domain it works fine - I become the other user when I impersonate ... This can be done by calling "CoInitializeSecurity" using PInvoke, ... IntPtr asAuthSvc, ...
    (microsoft.public.dotnet.languages.csharp)