Skip to content

Commit

Permalink
Preferrably import from ldap.controls.pagedresults
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder committed Dec 12, 2014
1 parent 8014f4c commit d1b8688
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Demo/page_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
trace_level = 0

import ldap,pprint
#from ldap.controls.libldap import SimplePagedResultsControl
from ldap.controls.pagedresults import SimplePagedResultsControl

try:
from ldap.controls.pagedresults import SimplePagedResultsControl
except ImportError:
from ldap.controls.libldap import SimplePagedResultsControl

searchreq_attrlist=['cn','entryDN','entryUUID','mail','objectClass']

Expand Down

0 comments on commit d1b8688

Please sign in to comment.