[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldap_search_ext_s...



Hi,

I'm trying to use "ldap_search_ext_s" and/or "ldap_search_ext" from
ldap-python in order to 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 my limit is only 5 and 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 only 5 users
in the result...

I've read this news:

http://www.openldap.org/lists/openldap-software/200206/msg00627.html

I don't understand wy there is an AD error message with only 5 result...

Any idea?