Samba 4 alpha and OpenLDAP

Andrew Bartlett abartlet at samba.org
Mon Jul 21 02:34:39 GMT 2008


On Wed, 2008-07-16 at 14:03 +0200, Christophe Thibault wrote:
> Hello,
> 
> I'm playing withe Samba 4 alpha and OpenLDAP, but the setup/provision 
> script fails.
> 
> I work on a blank dedicated test machine (running Ubuntu 8.04.1).
> 
> I build and install OpenLDAP (2.4.10) on the machine,
> then download the latest Samba sources
> (smbd -V says "Version 4.0.0alpha6-GIT-f567e17").
> I build Samba (configure, make, make install) then run the provision 
> scripts:
> 
> 
> $ ./setup/provision-backend --realm=test.mycorp.com \
>               --ldap-admin-pass=secret \
>               --ldap-backend-type=openldap \
>               --server-role='domain controller' \
>               --domain=TEST
> 
> => this script run fine
> 
> 
> 
> $ /usr/local/openldap/libexec/slapd -d0 -f 
> /usr/local/samba/private/ldap/slapd.conf -h 
> ldapi://%2Fusr%2Flocal%2Fsamba%2Fprivate%2Fldap%2Fldapi
> 
> => slapd seems to be started
> 
> 
> 
> $ ./setup/provision --realm=TEST.MYCORP.COM \
>           --domain=TEST \
>           --server-role='domain controller' \
>           --ldap-backend=ldapi \
>           --username=samba-admin \
>           --password=secret

You have to also specify
	--ldap-backend-type=openldap \

In the provision arguments.  It must match what was set in
provision-backend.

I'll add an error message to make this more clear in future.  

Thanks,

Andrew Bartlett

-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
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 : http://lists.samba.org/archive/samba-technical/attachments/20080721/41f8b1a7/attachment.bin


More information about the samba-technical mailing list