0001-python3-retrieve-python-ldap-major-version-number-32.patch
src/authentic2/backends/ldap_backend.py | ||
---|---|---|
6 | 6 |
from ldap.dn import escape_dn_chars |
7 | 7 |
from ldap.ldapobject import ReconnectLDAPObject as NativeLDAPObject |
8 | 8 |
from ldap.controls import SimplePagedResultsControl |
9 |
PYTHON_LDAP3 = map(int, ldap.__version__.split('.')) >= [3]
|
|
9 |
PYTHON_LDAP3 = list(map(int, ldap.__version__.split('.'))) >= [3]
|
|
10 | 10 |
LDAPObject = NativeLDAPObject |
11 | 11 |
except ImportError: |
12 | 12 |
ldap = None |
13 |
- |