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

Reply via email to