How To Set AD Password
"Sheahan, John" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.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