ldap_open

Herb Lewis hlewis at panasas.com
Tue Sep 9 19:11:33 GMT 2008


That is what I already did. :-) My comment was meant to be a heads up
that we propably need to move away from the deprecated functions. Here
is the change I made to make it build properly.

+++ src/samba/source/include/includes.h
@@ -186,6 +186,7 @@
  #endif

  #if HAVE_LDAP_H
+#define LDAP_DEPRECATED 1
  #include <ldap.h>
  #ifndef LDAP_CONST
  #define LDAP_CONST const

simo wrote:
> On Tue, 2008-09-09 at 10:09 -0700, Herb Lewis wrote:
> 
>>It appears that ldap_open is considered a deprecated interface
>>and we call it in source/libads/ldap.c. On a 64 bit system that
>>causes a problem because there is no prototype for the function
>>so we get a mismatch on the return size.
> 
> 
> define LDAP_DEPRECATED so that the proper header gets included.
> 
> Simo.
> 


More information about the samba-technical mailing list