python-ldap 中 SimplePagedResultsControl 中的 'criticality' 属性是什么?
What is the 'criticality' attribute in SimplePagedResultsControl in python-ldap?
我正在使用 python-ldap 进行 LDAP 搜索的分页。
我在网上找了很多类似的参考资料,都设置了:
page_control = SimplePagedResultsControl(True, size={some_size}, cookie='')
例如:https://medium.com/@alpolishchuk/pagination-of-ldap-search-results-with-python-ldap-845de60b90d2
我查看了 python-ldap 的文档,没有找到有用的解释:
https://www.python-ldap.org/en/latest/reference/ldap-controls.html#ldap.controls.libldap.SimplePagedResultsControl
我找到了答案:https://www.rfc-editor.org/rfc/rfc2696
If the server does not support pagedResultsControl,
the server MUST return an error of unsupportedCriticalExtension if the client
requested it as critical, otherwise the server SHOULD ignore the control.
我正在使用 python-ldap 进行 LDAP 搜索的分页。
我在网上找了很多类似的参考资料,都设置了:
page_control = SimplePagedResultsControl(True, size={some_size}, cookie='')
例如:https://medium.com/@alpolishchuk/pagination-of-ldap-search-results-with-python-ldap-845de60b90d2
我查看了 python-ldap 的文档,没有找到有用的解释:
https://www.python-ldap.org/en/latest/reference/ldap-controls.html#ldap.controls.libldap.SimplePagedResultsControl
我找到了答案:https://www.rfc-editor.org/rfc/rfc2696
If the server does not support pagedResultsControl,
the server MUST return an error of unsupportedCriticalExtension if the client
requested it as critical, otherwise the server SHOULD ignore the control.