Re: Successful LDAP signing test

From: Mike Markley <mike_at_markley.org>
Date: Mon, 22 Feb 2010 14:02:30 -0800

On Mon, Feb 22, 2010 at 01:58:18PM -0800, Murray S. Kucherawy <msk_at_cloudmark.com> wrote:
> > $ ./opendkim-genzone -x ~/dkim-testldap.conf
> > 'ldap://localhost/ou=dkim,dc=loopted,dc=com,o=internet?opendkimDomain,o
> > pendkimSelector,opendkimPrivateKey?sub?(&(objectClass=opendkimKeyTable)
> > (opendkimKeyName=$d))'
> > ; DKIM public key zone data
> > ; auto-generated by (null) at Mon Feb 22 13:46:56 2010
> >
> > (null): dkimf_db_walk(0) failed
> >
> > That's my KeyTable definition from the same config file. Using -x to
> > ensure that the proper LDAP credentials get used. I'm not entirely sure
> > on how exactly genzone would be gathering the data; what's being
> > substituted for $d in this case?
>
> The empty string is passed to ldap_search_ext_s() as the query for dkimf_db_walk().
>
> That the program's name (based on argv[0]) is "(null)" probably means some memory is getting clobbered someplace. Can you try it again with "-v -v" added to the command line?

(Bypassing the libtool wrapper just in case that's causing an issue):

$ LD_LIBRARY_PATH="../libar/.libs:../libopendkim/.libs" .libs/opendkim-genzone -v -v -x ~/dkim-testldap.conf 'ldap://localhost/ou=dkim,dc=loopted,dc=com,o=internet?opendkimDomain,opendkimSelector,opendkimPrivateKey?sub?(&(objectClass=opendkimKeyTable)(opendkimKeyName=$d))'
(null): database opened
; DKIM public key zone data
; auto-generated by (null) at Mon Feb 22 14:00:38 2010

(null): dkimf_db_walk(0) failed

> I'll revv up my VM test environment shortly. My LDAP test environment is buried in there.

I can give you credentials to my LDAP server if that's helpful.

-- 
Mike Markley <mike_at_markley.org>
Understanding is always the understanding of a smaller problem
in relation to a bigger problem.
- P. D. Ouspensky
Received on Mon Feb 22 2010 - 22:02:39 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:32:52 PST