从PHP更新Active Directory

时间:2016-07-28 11:50:18

标签: php sql-server ldap odbc

我已将SQL Server链接到Active Directory,并尝试使用PHP创建ODBC连接以提取数据。我可以从Active Directory中读取正常但当我尝试使用SQL UPDATE更新它时,我收到此错误

 Msg 7390, Level 16, State 2, Line 1
 The requested operation could not be performed because OLE DB provider "ADSDSOObject" for linked server "ADSI" does not support the required transaction interface.

我知道我必须使用PHP的LDAP函数,但我不确定如何重写要在PHP中使用的LDAP字符串。我最好的猜测是:

我试过(示例字符串):     OU =人员,DC =例如,DC =内部

但这不起作用。我的问题是:假设无法从我的SQL视图更新Active Directory,如何使用PHP更新LDAP?

0 个答案:

没有答案