Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

Use another login

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rui Oliveira - 15 Jun 2005 11:25 GMT
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

Jochen Kalmbach [MVP] - 15 Jun 2005 11:31 GMT
> How can I use a different login in an application?

- LogonUser
- ImpersonateLoggedOnUser
- RevertToSelf

Signature

Greetings
  Jochen

   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/

Rui Oliveira - 16 Jun 2005 20:28 GMT
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 - 16 Jun 2005 21:13 GMT
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
William DePalo [MVP VC++] - 16 Jun 2005 23:42 GMT
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.