I tried to use Win32::NetAdmin, got frustrated with it and left it... I
could not get the UserCreate to work... I now use Win32API::Net, and I added
a module from www.roth.net called Win32::AdminMisc.. There are some great
utilities in there...
-----Original Message-----
From: Jeroen Bakker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 8:47 AM
To: [EMAIL PROTECTED]
Subject: Re: Creating NT accounts
On Thu, Jun 28, 2001 at 07:41:11AM -0400, rotaiv wrote:
If found a similar module on the server Win32::NetAdmin. It has a similar
function called UserCreate. It seems to work justfine , no need to install
any new modules this way.
Thanks for making me look...
Jeroen
>
>
> Personally, I use the Win32API::Net that is part of the AS package. The
> two options you are trying to set are configured using the "flag"
> field. See below for an example.
>
> rotaiv.
>
> use Win32API::Net qw(UF_PASSWD_CANT_CHANGE UF_DONT_EXPIRE_PASSWD UF_SCRIPT
> USER_PRIV_USER);
>
> %acct_info = (
> 'name' => 'TestUser',
> 'password' => 'testing',
> 'passwordAge' => 0,
> 'priv' => USER_PRIV_USER,
> 'homeDir' => '',
> 'comment' => 'Created by Perl',
> 'flags' => UF_PASSWD_CANT_CHANGE | UF_DONT_EXPIRE_PASSWD | UF_SCRIPT,
> 'scriptPath' => ''
> );
>
> # If no server is specified, current server is assumed
> # To create domain account, use name of PDC - e.g '\\pdc'
> $server = '';
>
> Win32API::Net::UserAdd($server, 1, \%acct_info, $error) || die "$error -
$!";
>
>
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
------------------+--------------------------------+-------------------
Jeroen Bakker | Cysonet Engineering | [EMAIL PROTECTED]
phone 020-4703339 | The magic behind the buzzwords | fax 020-4270604
------------------+--------------------------------+-------------------
_______________________________________________
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