HighTechTalks DotNet Forums  

Administrator Credential Check

Dotnet Framework microsoft.public.dotnet.framework


Discuss Administrator Credential Check in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Sid Price
 
Posts: n/a

Default Administrator Credential Check - 10-31-2007 , 06:20 PM






My client is asking that when their application is run by a regular user an
administrator level user be able to enter their credentials to enable
certain advanced features. The application does not need to run with the
admin's credentials, we just want to validate that the user asking for the
advanced features has the admin credentials and enable the advanced features
until the application is closed or the advanced features are turned off.
Is this possible?
If so in general how can it be achieved from a managed application (VB.NET)?
Sid.



Reply With Quote
  #2  
Old   
Henning Krause [MVP - Exchange]
 
Posts: n/a

Default Re: Administrator Credential Check - 11-01-2007 , 07:34 AM






Hi Sid,

If the computer is part of a domain or you want to check against a local
administrator account, use the LogonUser method.

See http://www.pinvoke.net/default.aspx/...LogonUser.html.

Kind regards,
Henning Krause



"Sid Price" <sid (AT) nowhere (DOT) com> wrote

Quote:
My client is asking that when their application is run by a regular user
an administrator level user be able to enter their credentials to enable
certain advanced features. The application does not need to run with the
admin's credentials, we just want to validate that the user asking for the
advanced features has the admin credentials and enable the advanced
features until the application is closed or the advanced features are
turned off.
Is this possible?
If so in general how can it be achieved from a managed application
(VB.NET)?
Sid.



Reply With Quote
  #3  
Old   
Sid Price
 
Posts: n/a

Default Re: Administrator Credential Check - 11-01-2007 , 04:16 PM



Thank you for the pointer Henning, the suggestion works very well,
Sid.

"Henning Krause [MVP - Exchange]" <newsgroups_remove (AT) this (DOT) infinitec.de>
wrote in message news:ea4XjsHHIHA.4916 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Quote:
Hi Sid,

If the computer is part of a domain or you want to check against a local
administrator account, use the LogonUser method.

See http://www.pinvoke.net/default.aspx/...LogonUser.html.

Kind regards,
Henning Krause



"Sid Price" <sid (AT) nowhere (DOT) com> wrote in message
news:eNRotxAHIHA.5328 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
My client is asking that when their application is run by a regular user
an administrator level user be able to enter their credentials to enable
certain advanced features. The application does not need to run with the
admin's credentials, we just want to validate that the user asking for
the advanced features has the admin credentials and enable the advanced
features until the application is closed or the advanced features are
turned off.
Is this possible?
If so in general how can it be achieved from a managed application
(VB.NET)?
Sid.





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.