服务依赖广告客户服务
我有一项在广告环境中运行的Win32服务。在启动阶段的早期,此服务现在需要进行ADSI调用,以便找出计算机帐户的组成员资格。我必须为我的服务配置哪些服务依赖项,以便所有必要的AD客户端服务已事先成功启动,并且我的ADSI呼叫可以成功?我已经对RPCS有一个依赖性,因为该服务实现了RPC服务器,但是过去的经验向我表明,这是不够的,以便在系统启动过程中成功进行ADSI调用。
任何帮助都值得赞赏
- 斯特凡
I have a Win32 service that runs in an AD environment. Very early in its startup phase, this service now needs to make ADSI calls in order to find out the computer account's group membership. What service dependencies do I have to configure for my service so all necessary AD client services have successfully started beforehand and my ADSI calls can succeed? I already have a dependency on rpcss, because the service implements an rpc server, but past experience has shown to me, that this is not sufficient in order to make successful ADSI calls during system startup.
Any help appreciated,
--
Stefan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
•关于'Win32'服务类是WMI中的对象,它代表运行窗口的计算机系统上的服务。它可以从托管对象格式(MOF)代码中简化,并包含所有继承的属性。有关配置的更多信息,通过其各种语法,请参考以下文档链接,该链接详细描述了用于配置其支持的方法和属性的语法: -
https://learn.microsoft.com/en-en-us/windows/windows/windows/windows/windows/wind32/cimwin32222prov/win32prov/win32-service/win32-service
•A >另外,由于您希望您的 win32 Service 可以通过ADSI查找计算机帐户的组成员资格,因此您必须使用 Collection对象来表示目录中的任何任意项目可以使用与Win32服务相同的数据类型表示的服务。集合对象定义为一组 variant 值,代表任何有效的自动化数据类型。收集对象可以表示持续的信息,例如访问控制列表和波动性信息,例如打印队列中的打印作业。组只是支持'iAdsmembers'接口的对象的集合。请参考以下文档使用上述界面,因为它将帮助您从广告组中检索信息: -
https://lealen.microsoft.com/en-us/windows/windows/windows/wind32/api/iad/iad/iad/iads/nn-iad-iarn-iad-iad-iad-iad-iad-iad-iad-iad-iacdsmember
•连接到Active Directory所需的服务是 Kerberos密钥配电中心(KDC),位(背景情报转移服务),WMI(Windows Management Instrumentation),RPC(远程过程呼叫),背景任务基础结构服务(BTIS) ,可扩展身份验证协议(EAP),分布式事务协调器,Netlogon,RPC端点映射器和远程注册表。客户通常要求这些服务连接到广告服务。
• Regarding the ‘Win32’ service class is an object in WMI that represents a service on a computer system running Windows. It is simplified from Managed Object Format (MOF) code and includes all the inherited properties. For more information on configuring, it through its various syntaxes, kindly refer to the below documentation link that describes in detail the syntax for configuring the methods and properties that it supports: -
https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-service
• Also, as you want your Win32 service to find out the computer account's group membership through ADSI, you would have to use collection objects to represent any arbitrary set of items in a directory service that can be represented using the same data type as that of the Win32 service. Collection objects are defined as a set of VARIANT values, representing any of the valid Automation data types. Collection objects can represent both persistent information such as access-control lists and volatile information such as print jobs in a print queue. Groups are simply collections of objects supporting the ‘IADsMembers’ interface. Kindly refer to the documentation below to use the above-stated interface as it will help you to retrieve the information from an AD group: -
https://learn.microsoft.com/en-us/windows/win32/api/iads/nn-iads-iadsmembers
• The services required for the connecting to Active Directory are Kerberos Key Distribution Center (KDC), BITS (Background Intelligence Transfer Service), WMI (Windows Management Instrumentation), RPC (Remote Procedure Call), Background Tasks Infrastructure Service (BTIS), Extensible Authentication Protocol (EAP), Distributed Transaction Coordinator, Netlogon, RPC Endpoint Mapper and Remote Registry. These services are normally required by the client to connect to the AD Services.