Click here to get back home

user administrator validation

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
user administrator validation Omar Vera 03-17-2006
Get Chitika Premium
Posted by Omar Vera on March 17, 2006, 6:00 pm
Please log in for more thread options
Hi all,

I am developer an installer and I need to verify if the account a user
enters to run a service is an administrator account (local or domain). Do you
know which functions of the API can I use? Is there any documentation about
this?


Thanks in advance.

Omar Vera

Posted by Roger Abell [MVP] on March 18, 2006, 11:34 am
Please log in for more thread options
You want such as what IsMember does ?
Why not look at the groups the account has direct membership in,
and then look at the membership of the local Administrators group,
and, if no matches fall out immediately then span the membership
trees forward from the account's memberships and/or backward
from the groups within Administrators. If you are lucky this is for
a single domain forest, or at least a forest without trusts, at least
if you want a fully general solution. You could use either WMI
or the ADSI Ldap provider to get at the info.

That said, I certainly hope that the install docs for the software
indicate the (I assume) requirement that the service be run in
context of account that is an Administrators member.
When I buy software, and after the fact find this out as it was
not listed in the pre-purchase requirements disclosure, I am very
unhappy and invariably send the software back. Most third-party
services should be able to run without that.


> Hi all,
>
> I am developer an installer and I need to verify if the account a user
> enters to run a service is an administrator account (local or domain). Do
> you
> know which functions of the API can I use? Is there any documentation
> about
> this?
>
>
> Thanks in advance.
>
> Omar Vera



Similar ThreadsPosted
Can't remove user from administrator group November 11, 2005, 2:47 pm
CD Drive not accessible to user, works fine for Administrator October 26, 2006, 1:45 pm
Main Administrator account doesn't have Administrator groups right March 1, 2006, 2:35 pm
Unexpected security restriction for a user in both a user and administrative group. April 24, 2008, 10:05 pm
SBS new user wizard -v- manual user setup June 7, 2006, 10:19 pm
HOW CAN i GET THE ADMINISTRATOR PASSWORD? November 20, 2006, 7:43 am
Administrator account July 6, 2007, 12:43 pm
Change Administrator SID September 21, 2008, 11:15 am
Forgot Administrator Password August 26, 2005, 4:06 pm
Administrator account locking out April 1, 2006, 9:22 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap