Thanks again for giving me some stuff to try.if ( $IS_NT ) { require "Win32/AuthenticateUser.pm"; import Win32::AuthenticateUser AuthenticateUser; require "Win32/NetAdmin.pm"; import Win32::NetAdmin GroupGetMembers; } if (&check_passwd_nt($user_text,$passwd_text) && &check_group_nt($user_text,"supercam")) { print "user IS a member of supercam\n"; } else { print "NOT a member of supercam or typed wrong password\n"; } sub check_passwd_nt { my ($uname,$guess) = @_; return(AuthenticateUser("ANAHEIM",$uname,$guess)); } sub check_group_nt { my ($uname,$group) = @_; my @users = (); GroupGetMembers("ah_nt1",$group,\@users); return(grep { lc($_) eq lc($uname) } @users); }
Prost,
Moe
In reply to Re: How do I authenticate users on multiple platforms?
by el-moe
in thread How do I authenticate users on multiple platforms?
by el-moe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |