Skip to content

Commit d45ad6a

Browse files
tiranencukou
authored andcommitted
Drop HAVE_LDAP_INIT_FD
python-ldap requires OpenLDAP 2.4.0 that provides ldap_init_fd. Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent f50b197 commit d45ad6a

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

Modules/common.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
* see https://bugs.openldap.org/show_bug.cgi?id=8671
2626
*/
2727
#include <openldap.h>
28-
#ifndef HAVE_LDAP_INIT_FD
29-
#define HAVE_LDAP_INIT_FD
30-
#endif
3128
#else
3229
/* ldap_init_fd() has been around for a very long time
3330
* SSSD has been defining the function for a while, so it's probably OK.

Modules/functions.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ l_ldap_initialize(PyObject *unused, PyObject *args)
3030
return (PyObject *)newLDAPObject(ld);
3131
}
3232

33-
#ifdef HAVE_LDAP_INIT_FD
34-
3533
/* initialize_fd(fileno, url) */
3634

3735
static PyObject *
@@ -84,7 +82,6 @@ l_ldap_initialize_fd(PyObject *unused, PyObject *args)
8482

8583
return (PyObject *)newLDAPObject(ld);
8684
}
87-
#endif /* HAVE_LDAP_INIT_FD */
8885

8986
/* ldap_str2dn */
9087

@@ -193,9 +190,7 @@ l_ldap_get_option(PyObject *self, PyObject *args)
193190

194191
static PyMethodDef methods[] = {
195192
{"initialize", (PyCFunction)l_ldap_initialize, METH_VARARGS},
196-
#ifdef HAVE_LDAP_INIT_FD
197193
{"initialize_fd", (PyCFunction)l_ldap_initialize_fd, METH_VARARGS},
198-
#endif
199194
{"str2dn", (PyCFunction)l_ldap_str2dn, METH_VARARGS},
200195
{"set_option", (PyCFunction)l_ldap_set_option, METH_VARARGS},
201196
{"get_option", (PyCFunction)l_ldap_get_option, METH_VARARGS},

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ class OpenLDAP2:
145145
('LDAPMODULE_VERSION', pkginfo.__version__),
146146
('LDAPMODULE_AUTHOR', pkginfo.__author__),
147147
('LDAPMODULE_LICENSE', pkginfo.__license__),
148-
('HAVE_LDAP_INIT_FD', None),
149148
]
150149
),
151150
],

0 commit comments

Comments
 (0)