mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-01 01:52:17 +01: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>
|
||||
|
||||
#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>
|
||||
#define PORT_NUMBER LDAP_PORT
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user