Samba4 provision error with latest OpenLDAP - lt_dlopenext failed

Joe Comeaux joe.comeaux at gmail.com
Tue Dec 7 08:50:17 MST 2010


Attempting to get Samba4 installed using an OpenLDAP back end on an Ubuntu
Linux install (10.10).
Currently getting :

Could not start slapd with: '/usr/local/libexec/slapd'
'-F/usr/local/samba/private/ldap/slapd.d' '-h'
'ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi' '-d0'
ProvisioningError: slapd died before we could make a connection to it

Technical details as follows :
clean ubuntu 10.10 install
instructions of installation of openldap and samba4 taken from
http://wiki.samba.org/index.php/Samba4/LDAP_Backend/OpenLDAP
packages needed for OpenLDAP and Samba4 configure / compile scripts to
complete successfuly --
sudo apt-get install cvs gcc libltdl3-dev gnutls-bin gnutls-dev
libdb-dev libsasl2-dev python-dev bind9
Only problem I had with existing instrutions are with the
cvs -z9 update -dP 2>&1 | grep ^C | cut -b3-| xargs rm
command which seems to bomb out with error -
rm: missing operand
Try `rm --help' for more information.
ran command as printed, as well as ran
cvs -z9 update -dP 2>&1 | grep ^C | cut -b3-

Everything else runs as expected until the dreaded provision script
(
 cd SAMBA_4_0/source
 setup/provision --realm=LDAP.SAMBA.EXAMPLE.COM --domain=LDAP \
 --server-role='domain controller' --ldap-backend-type=openldap
--slapd-path=/usr/local/libexec/slapd
)
Administrator password will be set randomly!
Looking up IPv4 addresses
lt_dlopenext failed: (rdnval) file not found
slaptest: bad configuration directory!
conversion from slapd.conf to cn=config failed slapd started with:
'/usr/local/libexec/slapd' '-Ttest' '-n' '0' '-f'
'/usr/local/samba/private/ldap/slapd.conf' '-F'
'/usr/local/samba/private/ldap/slapd.d'
ProvisioningError: conversion from slapd.conf to cn=config failed

modifying ./SAMBA_4_0/source4/bin/python/samba/provision/backend.py to
give more detailed error from slapd yields ( change -d0 to -d99 ):
( cd SAMBA_4_0/source;  setup/provision --realm=LDAP.SAMBA.EXAMPLE.COM
--domain=LDAP   --server-role='domain controller'
--ldap-backend-type=openldap --slapd-path=/usr/local/libexec/slapd; )
Administrator password will be set randomly!
Looking up IPv4 addresses
@(#) $OpenLDAP: slapd 2.X (Dec  7 2010 08:41:34) $
        root at voss:/home/jcomeaux/openldap/servers/slapd
ldap_pvt_gethostbyname_a: host=voss, r=0
daemon_init: listen on ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi)
daemon: listener initialized
ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi
daemon_init: 1 listeners opened
ldap_create
slapd init: initiated server.
slap_sasl_init: initialized!
hdb_back_initialize: initialize HDB backend
hdb_back_initialize: Berkeley DB 4.8.30: (April  9, 2010)
backend_startup_one: starting "cn=config"
ldif_read_file: no entry file
"/usr/local/samba/private/ldap/slapd.d/cn=config.ldif"
send_ldap_result: conn=-1 op=0 p=0
slapd destroy: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.
Failed to bind - LDAP client internal error: NT_STATUS_UNEXPECTED_NETWORK_ERROR
Failed to connect to
'ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi' with backend
'ldapi'
Could not start slapd with: '/usr/local/libexec/slapd'
'-F/usr/local/samba/private/ldap/slapd.d' '-h'
'ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi' '-d99'
ProvisioningError: slapd died before we could make a connection to it

Successive attempts to run the provision script do not report rdnval
error, but do not start either.
 ( cd SAMBA_4_0/source;  setup/provision
--realm=LDAP.SAMBA.EXAMPLE.COM --domain=LDAP   --server-role='domain
controller' --ldap-backend-type=openldap
--slapd-path=/usr/local/libexec/slapd; )
Administrator password will be set randomly!
Looking up IPv4 addresses
Could not start slapd with: '/usr/local/libexec/slapd'
'-F/usr/local/samba/private/ldap/slapd.d' '-h'
'ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi' '-d0'
ProvisioningError: slapd died before we could make a connection to it


I do believe I was able to actually get the provision script working
with a compiled installation of samba and openldap on the evening of
2010-12-03, but am unable to reproduce the successful results. I'm now
left to compare the installed packages on that instance to the ones
I'm trying now to see if somehow theres a difference. The initial
rdnval error makes me thing that something is not getting compiled in
to the openldap properly, but don't know how to futher investigate
what might be the problem. I also think that adding a flag to the
provision script to allow for extra (slapd) debugging would be helpful
in the future. Detailed logs of compilation will follow in a seperate
message.

Thanks
-Joe Comeaux


More information about the samba-technical mailing list