need help with LDAP plug-in code and liblber dependency

Will Fiveash William.Fiveash at
Tue May 23 21:38:14 EDT 2006

On Tue, May 23, 2006 at 09:27:13PM -0400, Ken Raeburn wrote:
> On May 23, 2006, at 19:02, Will Fiveash wrote:
> >As an aside, I'd be happy to contribute changes back to get the MIT  
> >plug-in to work with the native LDAP but I need advice here as to the
> >appropriate files to change (probably related to autoconf).
> Yes, probably ldap/libkdb_ldap/{,} ... I'd  
> suggest creating an LDAP_LIBS variable which would be set to "-lldap - 
> llber" for the OpenLDAP packages on my Red Hat desktop system, and "- 
> lldap" for Solaris, based on detecting what libraries exist and  
> whether they provided (some of) the needed functions.

Okay, I'll look in that direction.

BTW, now that I'm past the liblber issue I need some advice on testing
setup.  I've got a directory server running and fed it the krb schema
but when I run "kdb5_util -P test123 create -r ACME.COM -s"  I get a
core dump because:


is NULL at the time it is called in krb5_db_create().  When I look at
dal_handle->lib_handle->vftabl I see:

dal_handle->lib_handle->vftabl = {
    maj_ver                  = 1
    min_ver                  = 0
    init_library             = 0xfea21e88 = &krb5_ldap_lib_init()
    fini_library             = 0xfea21eb8 = &krb5_ldap_lib_cleanup()
    init_module              = 0xfea1f000 = &krb5_ldap_open()
    fini_module              = 0xfea21ee8 = &krb5_ldap_close()
    db_create                = (nil)
    db_destroy               = (nil)
    db_get_age               = 0xfea1e970 = &krb5_ldap_db_get_age()
    db_set_option            = (nil)
    db_lock                  = (nil)
    db_unlock                = (nil)
    db_get_principal         = 0xfea2d178 = &krb5_ldap_get_principal()
    db_free_principal        = 0xfea2aaf8 = &krb5_ldap_free_principal()
    db_put_principal         = 0xfea2ea48 = &krb5_ldap_put_principal()
    db_delete_principal      = 0xfea2b2c8 = &krb5_ldap_delete_principal()

and so on.  Should kdb5_util support the create command with a ldap
plug-in?  If not, how does one prep the directory so that kadmind and
krb5kdc can use it as they do the db2 KDB?

Will Fiveash
Sun Microsystems Inc.
Austin, TX, USA (TZ=CST6CDT)

More information about the krbdev mailing list