I'll have to dig deep for it...are you looking for the ldif, or the perl script that reads from a file and makes a netsh batch file? I am pretty sure that you can add users via netsh. The ldif thing was a bit cheasy. I used it to add 60K user objects into AD with email address attributes.
do a netsh /? on your server, or google for netsh commands. You basicly send a line from the command prompt that goes like:
netsh <server context stuff><attribute stuff>
my dhcp was like netsh dhcp server 192.168.0.1 scope 192.168.0.0 reservation add <Mac><Reservation name><Reservation comments>.
I had a CSV file with MAC,NAM,COMMENTS.
here is the script, in original format. I just had it print to a web page, so that we could pull it up on the dhcp server and copy it to a text file.
Code:
#!/usr/bin/perl
#this is a subroutine to build the array
use warnings;
use strict;
print "Content-Type: text/plain\n\n";
print "rem batch file for creation of DHCP reservations\n";
open ALTDB, "/home/nickw/hp.ssv" or die $!;
my $lineno = 1;
while (<ALTDB>) {
print "rem adding $_";
print "netsh ";
print "dhcp ";
print "server ";
print "scope 216.119.196.0 ";
print "add reservedip ";
print "$_";
$lineno++;
}