大网数据广告活动
域与目录服务

Effects of Security on Searching

· 52CE 我爱测

Security is an implicit filter when performing searches, enumerating containers, or reading properties.

Security is an implicit filter when performing searches, enumerating containers, or reading properties.

ADSI can return NO_SUCH_PROPERTY or NO_SUCH_OBJECT errors even when the object exists if you do not have access to read attributes on the object.

For example, a caller may be able to enumerate the child objects in a container because the caller has LIST_CONTENTS rights on the container. But the same caller may not be able to access the enumerated objects if the caller does not have read access to the child objects. In this case, a query for a child object may return NO_SUCH_OBJECT even though the caller successfully enumerated the object.

If the caller does not have sufficient rights, the following return codes may be returned:

E_ADS_INVALID_DOMAIN_OBJECT

E_ADS_PROPERTY_NOT_SUPPORTED

E_ADS_PROPERTY_NOT_FOUND

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。