通过System.DirectoryServices.DirectoryEntry de = new System.DirectoryServices.DirectoryEntry(path); path的格式为:“LDAP://<GUID=XXX>” 得到一个DirectoryEntry对象,如果此GUID的值在AD中不存在,会报“从服务器返回了一个参照”错误。
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3