简体   繁体   English

如何在PHP中绕过ldap

[英]How to bypass ldaps in PHP

I am trying to use a basic PHP page to create a new user in a Windows 2008R2 domain. 我正在尝试使用基本的PHP页面在Windows 2008R2域中创建新用户。 However when ever I try to specify a password I receive a error stating that the server was unwilling to perform my request. 但是,当我尝试指定密码时,都会收到一条错误消息,指出服务器不愿意执行我的请求。

I was wondering if there is any other way to create a new domain user with PHP that will allow me to set the password of the user. 我想知道是否还有其他方法可以使用PHP创建新的域用户,从而允许我设置用户密码。

Thank you for your time! 感谢您的时间!

It's completely possible. 这是完全可能的。 You need to connect to the Active Directory domain using LDAP(s), and authenticate with it using a user account that has enough privileges to create/modify user accounts within that domain. 您需要使用LDAP连接到Active Directory域,并使用具有足够权限在该域内创建/修改用户帐户的用户帐户对其进行身份验证。 There are third party libraries/projects that exist that could take care of some of the leg work for you, but without that credentialed account, you'll never be able to accomplish this. 有一些第三方库/项目可以为您完成一些日常工作,但是如果没有该认证帐户,您将永远无法实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM