Samba 4 alpha and OpenLDAP
Christophe Thibault
christophe.thibault at planisware.com
Tue Jul 22 08:38:14 GMT 2008
Hi,
The OpenLDAP server starts fine, Samba also starts fine, but after
running the scripts, the database seems to be quite empty.
It only contains the following objects (dumped with the "openldap
slapcat command):
## start -----
dn: cn=Samba
objectClass: top
objectClass: container
cn: Samba
dn: cn=samba-admin,cn=Samba
objectClass: top
objectClass: person
cn: samba-admin
userPassword:: c2VjcmV0
## end -------
I expected more objects, containers for groups, users, etc.
Do I miss something?
Thanks,
chris
Christophe Thibault a écrit :
> Hi Andrew,
>
> with the "--ldap-backend-type=openldap" option, the last script works fine.
>
> I can now continue in my testing.
>
> Thanks,
>
> chris
>
>
>
> Andrew Bartlett a écrit :
>> 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
>>
>>
>
>
More information about the samba-technical
mailing list