[tpop3d-discuss][PATCH]: deprecated ldap

Arkadiusz Miskiewicz arekm at pld-linux.org
Mon, 26 Jun 2006 08:04:54 +0200


Hi,

latest ldap series deprecates some functions by hiding them under LDAP_DEPR=
ECATED ifdef

auth_ldap.c: In function 'auth_ldap_connect':
auth_ldap.c:77: warning: implicit declaration of function 'ldap_open'
auth_ldap.c:77: warning: assignment makes pointer from integer without a ca=
st
auth_ldap.c:96: warning: implicit declaration of function 'ldap_unbind'
auth_ldap.c: In function 'try_ldap_connect_bind':
auth_ldap.c:245: warning: implicit declaration of function 'ldap_simple_bin=
d_s'
auth_ldap.c: In function 'auth_ldap_new_user_pass':
auth_ldap.c:303: warning: implicit declaration of function 'ldap_search_s'
auth_ldap.c:352: warning: implicit declaration of function 'ldap_get_values'
auth_ldap.c:352: warning: assignment makes pointer from integer without a c=
ast
auth_ldap.c:367: warning: implicit declaration of function 'ldap_value_free'

=2D-- ../tpop3d-1.5.3.org/auth_ldap.c     2003-10-23 13:13:59.000000000 +00=
00
+++ auth_ldap.c 2006-06-26 05:55:41.107811250 +0000
@@ -14,6 +14,8 @@
 #ifdef AUTH_LDAP
 static const char rcsid[] =3D "$Id: auth_ldap.c,v 1.16 2003/10/23 09:43:50=
 chris Exp $";

+#define        LDAP_DEPRECATED 1 /* we use deprecated ldap functions */
+
 #include <sys/types.h> /* BSD needs this here, apparently. */

 #include <lber.h>


=2D-=20
Arkadiusz Mi=B6kiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/