[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Encoding Error?
Thank you for your response. I ended up downloading the latest source
(1.2.9?) or something, building it and then with a linux debugger (ddd)
stepping into the openldap source to find out what the problem was. All
praise open source.
Basically, I didn't put a .mod_op type in the operations. Since I was using
ldap_add_s, I assumed that the code would know that all the attribute types
were "LDAP_ADD" or whatever teh define was.
So I added them and it worked like a champ.
Is there any good API examples document that I should be using. I've been
using the IETF RFC for the C SDK, but openldap doesn't always follow the
standard (the code I copied for adding a new ldap entry didn't require the
ADD mod_op to be set.)
Thanks,
- Shawn
----- Original Message -----
From: Kurt D. Zeilenga <Kurt@OpenLDAP.org>
To: Shawn Rhoads <shawn@rhoads.com>
Cc: <openldap-devel@OpenLDAP.org>
Sent: Wednesday, January 26, 2000 7:46 PM
Subject: Re: Encoding Error?
> At 10:18 PM 1/23/00 -0500, Shawn Rhoads wrote:
> > I'm using the C SDK for openldap (openldap-devel rpms on redhat).
> > I'm attempting to use the ldap_add_s call (in ldap.h) and am
> > getting intermittent "Encoding error" return values.
> > Is this a problem in my mapping of C structures that I'm
> > passing to the method call? This is an intermittent problem
> > (ie if I add code to move around the instructions it seems to go away.)
>
> > Can someone describe what "Encoding error means?"
>
> Encoding error means that API call, ldap_add_s(), was not able
> to encode the LDAP message. This is usually caused by bad
> input, but can also be caused by a variety of other issues
> including resource allocation failure.
>
>