Use another login

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want have access to restrict folders when inside one application. A general
user using the browser does not have access to these folders, but using the
application is supposed have access to those folders.

Is possible the application use a specific login to have access to a
specific resource?

How can I use a different login in an application?

Thanks,
Rui
 
I used these functions to logon like user administrator to have access to a
folder (with name “FolderAAAâ€) that a normal user do not have.

I have the following situation:
- When I logon in windows with user administrator, my application has access
to folder “FolderAAA†and the application use CopyFile function to copy files
from that folder.
- When I logon windows with a normal user that do not have access to that
folder, the application use functions “LogonUser/ImpersonateLoggedOnUser†to
logon like user administrator. But after these steps my application cannot
copy files anyway.

Is not suppose after call “LogonUser†and “ImpersonateLoggedOnUserâ€
functions have the user administrator permissions??

Tks,
Rui
 
I used these functions to logon like user administrator to have access to a
folder (with name “FolderAAAâ€) that a normal user do not have.

I have the following situation:
- When I logon in windows with user administrator, my application has access
to folder “FolderAAA†and the application use CopyFile function to copy files
from that folder.
- When I logon windows with a normal user that do not have access to that
folder, the application use functions “LogonUser/ImpersonateLoggedOnUser†to
logon like user administrator. But after these steps my application cannot
copy files anyway.

Is not suppose after call “LogonUser†and “ImpersonateLoggedOnUserâ€
functions have the user administrator permissions??

Tks,
Rui
 
Rui Oliveira said:
Is not suppose after call "LogonUser" and "ImpersonateLoggedOnUser"
functions have the user administrator permissions??

Did you check the return codes from those functions? What function are you
using to copy the file? What value did it return.

Regards,
Will
 

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

Back
Top