I tried this using the code below:
Win32::RasAdmin::UserSetInfo($Domain, $User, $Privilege, 9);
-as well as-
Win32::RasAdmin::UserSetInfo($Domain, $User, $Privilege=>9);
both seem to run fine (I get no errors and the program completes) but the
privilege is not changed.
If I manually force it in user manager and then run a getuserinfo it does
return privilege as 9 so I think this is the right flag as well, just can't
get the set info quite right.
Thanks for the help.
John
> -----Original Message-----
> From: Paul Popour [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, November 14, 2000 3:30 PM
> To: Bateman John Austin-IS; 'perl-win32-adminlistserv1ActiveStatecom'
> Subject: Re: Trouble using Win32::RasAdmin
>
>
> ----- Original Message -----
> From: "Bateman John Austin-IS" <[EMAIL PROTECTED]>
> To: "'perl-win32-adminlistserv1ActiveStatecom'"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, November 14, 2000 4:05 PM
> Subject: Trouble using Win32::RasAdmin
>
>
> > Does anyone have a snippet of code showing how to set a user to have
> dial
> in
> > permissions.
> >
> > I can get everything to work except the :
> > Win32::RasAdmin::UserSetInfo($Domain, $User, $Attribute=>$Value,
> > $Attribute2=>$Value2);
> >
> > I am trying to use the RASPRIV_DialinPrivilege
> >
>
> Try setting the 'Privilege' value to 9.
>
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin