"Mike Garner" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This may not be the best place to post this as PERL is only part of my
> question but here goes:
> I need to add several thousand user accounts to a Windows 2000 Server
> (Active Directory). The accounts are exisitng accounts on multiple NT
> domains.  Using PERL scripts coupled with Microsoft's addusers.exe I'm
able
> to dump and manipulate the current user information as needed but I can't
> figure out how to add these accounts to the new domain (AD). Does anyone
> have experience with this?  I think I need to use Microsoft's ADSI API to
> interface with the AD/LDAP and nearly all the examples and discussion I
see
> on this use VBScript.  I'd really prefer to stick with PERL as this
> processes will be part of a much larger PERL process already in
> place.  Here are my questions:
> Can (and how/what modules) does PERL interface with this ASDI API for the
> Active Directory?
> Is this the best way to do it or am I overlooking other Win2K/AD
> commandline tools for user creation? (more of a windoze question, if you
> know of a better place to post this, let me know)
> If anyone has a simple example, I'd love to see it.

I dont have any examples as I am not a windows net admin, but there are
modules galore bundled with the libwin32 API library. Get it via CPAN or ppm
if you use activestate. You wont even need to use the adduser program (I
would guess).

The module you are looking for is called Win32::NetAdmin (I would guess).

http://search.cpan.org/search?mode=module&query=Win32%3A%3ANetAdmin

Todd W.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to