[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LDAP_FILT_MAXSIZ



On Mon, Jul 07, 2003 at 04:01:53PM -0300, Mariano Absatz wrote:
> Hi,
> 
> it seems newer versions of OpenLDAP's ldap.h no longer have the 
> LDAP_FILT_MAXSIZ constant defined (I'm using OpenLDAP 2.1.21 compiled from 
> source).

  Right.  I got around to configure LDAP into my test system,
  and saw this same thing also.   I am not quite 100% sure
  that the related code handles safely e.g.  sprintf() call
  inside it.

> This produces an error while compiling router/libdb/ldap.c:
> ldap.c: In function `search_ldap':
> ldap.c:182: `LDAP_FILT_MAXSIZ' undeclared (first use in this function)
> ldap.c:182: (Each undeclared identifier is reported
> 
> The attached little patch (which defines the constant only if it's not 
> defined) seems to solve the problem.

  Yes it appears to do the fix.

> --
> Mariano Absatz
> El Baby
> ----------------------------------------------------------
> Computers are only human.
-- 
/Matti Aarnio	<mea@nic.funet.fi>
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi