[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_get_values: Decoding error



At 06:28 AM 2/17/00 +0100, Turbo Fredriksson wrote:
>I'm working on getting qmail to read it's config files from
>a LDAP database, instead of the flat files, but I'm having a
>little problem with the ldap_get_values() function.
>
>I get 'Decoding error' when searching. This is what 'msg->lm_ber->ber_buf'
>(LDAPMessage *msg) look like: 'db6cn=donald.air2.net,ou=QmailLDAP,o=Modular Telecom,c=SE0(0&locals1  localhostdonald.air2.net*ass'.

Looks like you're not calling ldap_get_values() on an entry.

>Also, the function ldap_count_entries() doesn't seem to work. I'm always
>getting 'ld->ld_errno = 0' in return...

ldap_count_entries returns the number entries... it doesn't
muck with ld->ld_errno unless an error occurs.

Kurt