Hi, I'm trying to use an external method and limit the size of my query result to an Active Directory server. def searchUsers(base): i_ldap = ldap.open('####', ###) i_ldap.simple_bind_s('cn=###,cn=Users,dc=rpn,dc=ch','###') result = i_ldap.search_ext_s(base,ldap.SCOPE_SUBTREE,'sn=*',sizelimit=5) return result I know AD MaxPageSize is 1000 but the result is always: SIZELIMIT_EXCEEDED Valeur de l'erreur {'desc': 'Size limit exceeded', 'info': ''} I tried to use directly openldap 2.1.21-1: ldapsearch -W -x -z 5 -b "dc=rpn,dc=ch" -D "cn=###,cn=Users,dc=rpn,dc=ch" -h ### -p ### But the problem is the same, I've got a SIZELIMIT_EXEEDED after 5 users in the result... Any idea?
Since the problem is obviously between python-ldap and AD this post is off-topic. It has nothing to do with Zope. jens On Tuesday, Oct 21, 2003, at 02:48 US/Eastern, Patrick Gelin wrote:
Hi,
I'm trying to use an external method and limit the size of my query result to an Active Directory server.
def searchUsers(base): i_ldap = ldap.open('####', ###) i_ldap.simple_bind_s('cn=###,cn=Users,dc=rpn,dc=ch','###') result = i_ldap.search_ext_s(base,ldap.SCOPE_SUBTREE,'sn=*',sizelimit=5) return result
I know AD MaxPageSize is 1000 but the result is always:
SIZELIMIT_EXCEEDED
Valeur de l'erreur {'desc': 'Size limit exceeded', 'info': ''}
I tried to use directly openldap 2.1.21-1:
ldapsearch -W -x -z 5 -b "dc=rpn,dc=ch" -D "cn=###,cn=Users,dc=rpn,dc=ch" -h ### -p ###
But the problem is the same, I've got a SIZELIMIT_EXEEDED after 5 users in the result...
Any idea?
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Jens Vagelpohl -
Patrick Gelin