I've written some php codes (see codes below) to add a new user in our Active Directory.
I've attached the php codes below. It does actually add a new user and put in all the settings in attributes correctly.
However, even though I've set the userpassword (I can see the attribute set in ldap), the password is still blank when you first login.
If I set the unicodepwd attribute instead of userpassword, it generates error.
Any idea? Your advise will be much appreciated :)
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!