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

ldap_get_values: Decoding error



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'.

----- s n i p -----
[donald.ttyp0]$ ldapsearch -b 'OU=QMAILLDAP,O=MODULAR TELECOM,C=SE' '(&(cn=DONALD.AIR2.NET)(objectclass=QMAILCONTROL))' locals
cn=donald.air2.net,ou=QmailLDAP,o=Modular Telecom,c=SE
locals=localhost
locals=donald.air2.net
----- s n i p -----

Basicly what I did was duplicate exactly what's done in qmail-lspawn.c.

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

How do I debug this easiest?

Attached is the debug output from slapd (-d 255).

Attachment: out.gz
Description: SLAPD debug output

--