我正在尝试更改特定用户的密码,您可以在下面找到代码
var directoryEntryObject = new DirectoryEntry("LDAP://<IP>","administraor", "password");
baseObject.directoryEntryObject.Invoke("SetPassword", new object[] { "test@123" });
baseObject.directoryEntryObject.Properties["LockOutTime"].Value = 0;
baseObject.directoryEntryObject.Close();
现在我低于错误::
未知名称。(来自 HRESULT 的异常:0x80020006 (DISP_E_UNKNOWNNAME))