use Perl Log In
Programming Active Directory
An anonymous user writes, "I just noticed an article with a couple of links about Perl and NetWare and being able (if I read it right) to manipulate the NDS.
Is it possible to use Perl to manipulate the Windows 2000 Active Directory?"
Beats me.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.

All AD can be manipulated via WSH (Score:1)
Not difficult at all (Score:1)
Re:Not difficult at all (Score:1)
/J\
Re:Not difficult at all (Score:1)
ADSILDAP Perl Module (Score:1)
A sample (Score:1)
---------------------
use Win32::OLE;
use strict;
my $sysinfo = Win32::OLE->new('ADSystemInfo') || die ("Can't get sysinfo: ".Win32::OLE->LastError()."\n");
my $username=$sysinfo->{UserName};
print "Username:$username\n";
my $adsuser = Win32::OLE->GetObject("LDAP://$username") || die ("Can't find user: ".Win32::OLE->LastError()."\n");
print "CN: $adsuser->{cn}\n";
print "Email address: $adsuser->{EmailAddress}\n";
---------------------
This firs
ugly code available (Score:1)
This was some code I was monkeying with in an effort to grok ADSI a while back. It doesn't try to write anything, but just lets you nose around the directory structure via cgi. It's not pretty, but maybe you'd find it useful. The comments reference a couple of other resources I used when working on that stuff
http://opensource.activestate.com/authors/tobyever ett/
http://www.asptoday.com/articles/19990310.htm