Re: Checking to see if a user is a domain Administrator

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jonny (Jonny_at_discussions.microsoft.com)
Date: 07/12/04


Date: Mon, 12 Jul 2004 07:30:04 -0700

Hi thanks for the response...

I've been looking at the WindowsIdentity and WindowsPrincipal.IsInRole() options since... the only way i can get this to work is using the WindowsIdentity.GetCurrent();. I need to be able to check a given Username and password

Thanks

-- 
/Jonny
"Uri Dor" wrote:
> I'd look up WindowsIdentity and WindowsPrincipal.IsInRole() in MSDN, 
> seems like the answer
> 
> Jonny wrote:
> > Hey all,
> > 
> > I need to verify that a provided username is a Domain Administrator. Any idea's on how to do this?
> > 
> > Thanks,
> > 
> > Jonny
> 


Relevant Pages

  • Re: searching what groups a user belong from AD but errorThe Kerberos subsystem encountered an error
    ... It does work when i use that but i want users to type in a username and hit ... using on the WindowsIdentity object uses Kerberos protocol transition (S4U ... Co-author of "The .NET Developer's Guide to Directory Services ... string username = aduser.Text; ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ActiveDirectory authentication - more issues
    ... User is prompted for username & password. ... authenticated via ActiveDirectory and IsInRole hits ActiveDirectory. ... no -you are doing forms authentication. ... I do not get a WindowsIdentity but instead a FormsIdentity. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Getting GROUPS from Active Directory by inputing an AD username
    ... But whan i want to do is to have a textbox and when i input a AD username ... i would like to retrieve the groups they belong to. ... WindowsIdentity that hangs off Context.User... ... I'm thinking of doing the same but against Active Directory. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • no touch deployment SecurityException
    ... I have deployed an application on web server using no touch deployment. ... I'm trying to get the UserName of the user using WindowsIdentity object. ...
    (microsoft.public.dotnet.security)
  • no touch deployment problem
    ... I have deployed an application on web server using no touch deployment. ... I'm trying to get the UserName of the user using WindowsIdentity object. ...
    (microsoft.public.dotnet.framework.windowsforms)