Win32::Lanman::NetUserGetLocalGroups($computer, $username,
LG_INCLUDE_INDIRECT, \@groupS);

It's kind of opposite of what you want but does understand the Indirect
relationship...
A quick foreach on the grouplist could determine if the user matches your
defined group...

Steven

-----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
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to