简体   繁体   English

我可以通过分页获取 Active Directory 中的更新(DirSync Cookie)吗?

[英]Can I get updates (DirSync Cookie) in Active Directory with paging?

I am using DirSync Control (Cookie) to get the latest changes using the below technique.我正在使用 DirSync Control (Cookie) 使用以下技术获取最新更改。 Is it possible to get that result with pagination?是否有可能通过分页获得该结果?

https://docs.microsoft.com/en-us/windows/win32/ad/polling-for-changes-using-the-dirsync-control https://docs.microsoft.com/en-us/windows/win32/ad/polling-for-changes-using-the-dirsync-control

Example: If 500 updates have happened, can i get updates from 1-50, or 51-100 (paging with skip)?示例:如果发生了 500 次更新,我可以从 1-50 或 51-100 获取更新(带跳过的分页)吗?

The result returned is paginated.返回的结果是分页的。 You need to put the cookie, returned from the previous response into the next request.您需要将从上一个响应返回的 cookie 放入下一个请求中。 However, from my experience the number of changes on every page may vary.但是,根据我的经验,每个页面上的更改数量可能会有所不同。 You can set the upper border, but I would not recommend to rely on it.您可以设置上边界,但我不建议依赖它。 If you want to display/send changes in batches with predefined size additional processing should be done on the client side如果您想以预定义的大小批量显示/发送更改,则应在客户端进行附加处理

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM