1

python-ldap ライブラリを使用して LDAP サーバーに接続し、クエリを実行しています。私が直面している問題は、検索にサイズ制限を設定しているにもかかわらず、あまりにも多くの結果を返すクエリで SIZELIMIT_EXCEEDED エラーが発生し続けることです。クエリがユーザーの小さなサブセットを返す場合に結果が得られるため、クエリ自体が機能していることはわかっています。サイズ制限を 1 などのばかげた値に設定しても、これらの大きなクエリでは SIZELIMIT_EXCEEDED が返されます。以下に、クエリの一般的なバージョンを貼り付けました。ここで私が間違っていることについてのアイデアはありますか?

result = self.ldap.search_ext_s(self.base, self.scope, '(personFirstMiddle=<value>*)', sizelimit=5)
4

2 に答える 2

1

When the LDAP client requests a size-limit, that is called a 'client-requested' size limit. A client-requested size limit cannot override the size-limit set by the server. The server may set a size-limit for the server as a whole, for a particular authorization identity, or for other reasons - whichever the case, the client may not override the server size limit. The search request may have to be issued in multiple parts using the simple paged results control or the virtual list view control.

于 2012-07-25T10:04:39.400 に答える