How To Set AD Password

[email protected] ("Sheahan, John")
Newsgroups perl.ldap
Message-ID <09F205C089889344BDDB6FB253D417215949FD2EBA@NW-E2K7-ECL1.corp.pcln.com>
My script is successfully creating AD and Exchange accounts but I'm having trouble setting the password.

I am setting these attributes:

                                  'userPassword' => 'password',
                                  'userAccountControl' => '66048',  # activates the account and sets the password to never expire


For some reason, the password is not being set but my script does not throw an error.

I have two questions:


1.       Does anyone know what the default password is for a newly created user in AD if none is set?

2.       What is the best way to set the password when creating a new user?


Thanks a lot

John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.