[Date Prev][Date Next]
Re: Passing a valid result to ldap_first_entry? (ITS#984)
On Mon, Jan 29, 2001 at 12:51:50PM +0100, Pierangelo Masarati wrote:
% Your code is basically correct; what Kurt meant in
% is that you should not rely on ldap_first_entry to trap NULL res; you
% should check it before you call ldap_first_entry. The point is that
% synchronous searches do NOT return -1 in case of failure; they rather
% return an error code OR LDAP_SUCCESS in case everything was fine.
% Your code should read:
Ok, gotcha. Thanks for your help (you too, Kurt).
John Morrissey _o /\ ---- __o
firstname.lastname@example.org _-< \_ / \ ---- < \,
www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__