There is a dragon waiting to bite any who create users programmatically: If you have password policy set that does not allow for blank passwords (you do, right?), you MUST create the user as disabled (ie: do not set the "useraccountcontrol" property), THEN set an acceptable password, THEN enable (useraccountcontrol = 512)
I noticed that Robbie's corrected code reflects this. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robbie Allen (rallen) Sent: Thursday, January 15, 2004 11:20 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] LDIFDE and Perl... You can find a bunch of Perl Net::LDAP examples here: http://www.rallenhome.com/books/managingenterprisead/code.html And the cookbook code page has a lot of Perl ADSI examples: http://www.rallenhome.com/books/adcookbook/code.html Let me know if you have any questions. Robbie Allen > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mike > Hogenauer > Sent: Thursday, January 15, 2004 1:09 AM > To: [EMAIL PROTECTED] > Subject: [ActiveDir] LDIFDE and Perl... > > > I need to import 1500 user accounts into a test environment, I would > like to use LDIFDE. First is there an easy way to batch or create > dummy accounts for a test environment without having to type each one, > and second can any of this be done with Perl? > > I will also be consulting the Cookbook! > > Thanks in advance. > > Mike > > > List info : http://www.activedir.org/mail_list.htm > List FAQ : http://www.activedir.org/list_faq.htm > List archive: > http://www.mail-archive.com/activedir%40mail.activedir.org/ > > List info : http://www.activedir.org/mail_list.htm > List FAQ : http://www.activedir.org/list_faq.htm > List archive: > http://www.mail-archive.com/activedir%40mail.activedir.org/ > > List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
