This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/python | |
| import sys | |
| import ldap | |
| from ldap.controls import SimplePagedResultsControl | |
| from distutils.version import LooseVersion | |
| # Check if we're using the Python "ldap" 2.4 or greater API | |
| LDAP24API = LooseVersion(ldap.__version__) >= LooseVersion('2.4') |