21 Oct
2003
21 Oct
'03
6:48 a.m.
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?