Openldap-backend for samba4 big problems

Andrew Bartlett abartlet at
Tue May 12 06:40:54 GMT 2009

On Thu, 2009-05-07 at 01:30 -0700, grimstone wrote:
> Hello,
>  succesfully did provision-backend openldap and when I start
>  /usr/local/libexec/slapd -d -1 -f /usr/local/samba/private/ldap/slapd.conf
> -h ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi

> Weird thing is that if I try sto start:
> /usr/local/libexec/slapd -d -1 -f 
> /root/thedor/source/samba-4.0.0alpha7/source4/st/provision/openldap-backend/private/ldap/slapd.conf
> -h ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi
> All is ok, slapd starts ....

That is because
the /root/thedor/source/samba-4.0.0alpha7/source4/st/provision/openldap-backend/private/ldap/modules.conf file contains the 'right' magic for your system to find the modules it needs.  On systems where slapd has all the modules already compiled into it, this is not needed.  Otherwise, it must include the lines you see there.

> I think there is a problem in the provision-backend script.
> If anyoane has any ideea or sugestion please help because I've been in this
> problem for about 2 weeks now.

The problem could be addressed in two ways:

One is, as I have suggested on this list in the past:  We could run the
code currently found in selftest/target/ as part of

The other is to suggest that users run OpenLDAP from CVS (or OpenLDAP
2.4.17 when released) which will load the modules automatically. 

Note that there is a known issue at the moment that the OpenLDAP slapd
can hang after the provision, and during 'make test'.  I think it's an
OpenLDAP bug, and Howard Chu is looking into it.  

Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team 
Samba Developer, Red Hat Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the samba-technical mailing list