开发者

Can I set a default password for Active Directory entries? Or is there one already?

开发者 https://www.devze.com 2023-03-12 16:53 出处:网络
I am adding users to Active Directory with PHP. I can add all the attributes I like, but not a password it seems, or unicdepwd for that matter. The thing is, my users don\'t need to specify a password

I am adding users to Active Directory with PHP. I can add all the attributes I like, but not a password it seems, or unicdepwd for that matter. The thing is, my users don't need to specify a password as they are authenticated only on their email address, but the authentication server does require something in that field. I would hardcode the same one for everyone, but I can't seem to achieve th开发者_如何学Cat either.

So... Is it possible to set a default password for all new entries into a particular OU or CN on the AD server?


I am not aware of any mechanism in AD itself to let you specify a default password.

It's possible to set the password from PHP, but you need to enable SSL on the AD server first. Details can be found in this post:

Change Password in Active Directory using LDAP/PHP/IIS/SSL

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号