-----Original Message-----
From: Steven Manross [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 6:10 PM
To: Bullock, Howard A.; '[EMAIL PROTECTED]'
Subject: RE: IsMember ?I read your original mail fully now.. sorry for the half-baked response..
if ( Win32::AdminMisc::UserGetMiscAttributes($server, $username, \%Hash)){
if ($Hash{USER_PRIV} == USER_PRIV_ADMIN) {
print "Admin\n";
}
}-----Original Message-----
From: Bullock, Howard A. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 2:01 PM
To: '[EMAIL PROTECTED]'
Subject: IsMember ?
I thought I read somewhere about a function that would check to see is user
was a member of a local group and intelligently also check global group that
were members of the local. I tried
Win32::NetAdmin:LocalGroupIsMember(server, groupName, user) but it does not
understand if the user is a member of a global group within the local group.
I also check the Lanman.pm but see anything.Is there such a beast or do I have to build it? Is there a some other quick
and dirty way to verify if a user has Administrator permissions?
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
Title: RE: IsMember ?
Actually, the first response was what I was looking for and need to
implement. The response below doesn't yield the desired result when trying to
find out if a master domain user account is a member of the Administrators group
of a workstation in a resource domain when the script is executing on the
workstation. Thanks. I don't know how I could have overlooked the function since
I obviously read it in the Lanman.pm file before.
- IsMember ? Bullock, Howard A.
- RE: IsMember ? Steven Manross
- RE: IsMember ? Steven Manross
- Bullock, Howard A.
