Samba4 provision error with latest OpenLDAP - lt_dlopenext failed

Indexer indexer at internode.on.net
Tue Dec 7 15:51:48 MST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 08/12/2010, at 04:54, Joe Comeaux wrote:

> Attached is output from all commands run during compilation /
> installation of OpenLDAP and Samba4 as per
> http://wiki.samba.org/index.php/Samba4/LDAP_Backend/OpenLDAP
> ( see previous message with summary of error )
> 
> root at voss:~# cd openldap
> root at voss:~/openldap# (
>> cvs -z9 update -dP 2>&1 | grep ^C | cut -b3-| xargs rm
>> cvs -z9 update -dP
>> )
> 


Why are you using CVS versions of openldap? 

The wiki states

"This guide presumes you are running OpenLDAP CVS HEAD from after 22 April 2010 (or a release after that date)"

You can get 2.4.23 which was released in July from 

http://www.openldap.org/software/download/

Again, make sure you enable the deref and rdnval overlays.

> @(#) $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
> 


This certainly looks like a slapd error, rather than a samba4 one. Can you please add to your slapd.d/cn=config.ldif , found inside yoru samba4 dirs, 

olcLogLevel: 256

Then in syslog add 

!slapd
*.*                             /var/log/slapd.log


Alternatively, run slapd from the command line, with slapd -d 256 -F /usr/local/samba/private/ldap/slapd.d -h ldap:/// ldapi://usr/local/samba/private/ldap/ldapi


This should post a log of why slapd wont start.

Again, i would advise using 2.4.23 rather than CVS ldap now. 


> Thanks
> -Joe Comeaux

William Brown

pgp.mit.edu



-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)

iQIcBAEBAgAGBQJM/rqJAAoJEHF16AnLoz6JJDAP/2MqyzO747/MQ395g+jJfyNG
k/AAbur7aWD7z3TCMKcdSw3iBQQqgs7tF2PJwBtvB6BOTT/sk/3cpASj3oWjrYz3
G0m7eFftVwclJBvTezldyJxdElP4ok7xR6gy1X7EbV8qjvI6tiUCWRo3FEHIu8+A
BkCA1kAOiVk1cR/TxvE+cqCBLPvH4y8ETt/jKFlKDmNxOWXHaQvrVdb3rLL5n0GT
YLXTW3bENn8Exias0iKfdfNkZGEEyRhrvfXoSd8pVDAkUEP1duEwsLAhZXobOYgN
BpT3O/O+b70sOJHroR8PlVgKrkOwvdOZJITSVtgHpR38AVu3f/Zhv/1QX5JmlNlt
mtFYMGJE/U4K6Jo+XbqYllYoxWKPofa71xH7uIKMWskVT+RzW8tNf66uDluktn+1
MmkpGXLI7xywF8f+Ls9SnfbZfq0yVVapVAN+NKukbCrjDiFMQDx8vTgROILkPXEV
7vg4oIlCsl1Wg8Gj7jbK29tTHgtCHnKP5q8ikQe9i7PQUaCE3XqEI9MzKytLecS1
O1bSyt0RVCnFDkT8HU8rCV9cYayc89Zu85GWfFISddi4LgSfcswHEgtqvy6z5t/f
5MJ64Go5l55pMjjmG4nI9NiPQXYGRi9KnpZxc+6a2cj0n9bIZ6KWXYoqoopyBQyy
J86eZF8QLGT5RQOmH02k
=1nTP
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list