mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-04-11 08:02:24 +02:00
Avoid LDAP warnings about deprecated functions.
Patch by judas.iscariote.
This commit is contained in:
parent
6a0c8fc82b
commit
90a7fd0f0a
@ -66,6 +66,13 @@
|
|||||||
#include <ykclient.h>
|
#include <ykclient.h>
|
||||||
|
|
||||||
#ifdef HAVE_LIBLDAP
|
#ifdef HAVE_LIBLDAP
|
||||||
|
/* Some functions like ldap_init, ldap_simple_bind_s, ldap_unbind are
|
||||||
|
deprecated but still available. We will drop support for 'ldapserver'
|
||||||
|
(in favour of 'ldap_uri' and update to using the new functions instead
|
||||||
|
soon.
|
||||||
|
*/
|
||||||
|
#define LDAP_DEPRECATED 1
|
||||||
|
|
||||||
#include <ldap.h>
|
#include <ldap.h>
|
||||||
#define PORT_NUMBER LDAP_PORT
|
#define PORT_NUMBER LDAP_PORT
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user