[Samba] Accessing external LDAP for classicupgrade
rowlandpenny241155 at gmail.com
Sat Sep 19 10:13:43 UTC 2015
On 19/09/15 10:32, Andrew Bartlett wrote:
> On Fri, 2015-09-18 at 08:36 -0400, Robert Moskowitz wrote:
>> On 09/18/2015 05:19 AM, Andrew Bartlett wrote:
>>> On Thu, 2015-09-17 at 17:02 -0400, Robert Moskowitz wrote:
>>>> I am reading the LDAP portion of:
>>>> The second route may not work for me. When I ran slapcat on the
>>>> system I got:
>>>> # slapcat > ldap.backup.ldif
>>>> 55fb2665 The first database does not allow slapcat; using the
>>>> available one (2)
>>>> and very little in the backup file.
>>>> So since the LDAP backend on the old server is only used for the
>>>> classicupgrade, this looks interesting, but...
>>>> What ldap.conf and smb.conf to I set up to retreive the
>>>> the old LDAP backend host? That is not clear. I would have to
>>>> afresh (going to anyway) to see what a fresh system looks like
>>>> these two files. On the ClearOS system, the ldap.conf says:
>>>> # cat smb.ldap.conf
>>>> # Please do not edit - this file is automatically generated.
>>>> passdb backend = ldapsam:ldap://127.0.0.1
>>>> ldap admin dn = cn=manager,ou=Internal,dc=home,dc=htt
>>>> ldap group suffix = ou=Groups,ou=Accounts
>>>> ldap idmap suffix = ou=Idmap
>>>> ldap machine suffix = ou=Computers,ou=Accounts
>>>> ldap passwd sync = No
>>>> ldap suffix = dc=home,dc=htt
>>>> ldap user suffix = ou=Users,ou=Accounts
>>>> ldap connection timeout = 8
>>>> ldap ssl = Off
>>>> On my new AD, I would use the IP address of the old server (they
>>>> the same fqdn, but different DNS servers in different networks,
>>>> reachable). Plus make sure the ldap port is open; it should be
>>> Just change the 'passdb backend' line in the smb.conf to point to
>>> old server. In general we will only read it, but the backup
>>> process is
>>> there to make sure.
>> So you are saying that on my Samba4 AD system, I setup ITS
>> /etc/ldap/ldap.conf to be the same as my ClearOS, at least for the
>> classicupdate, but to point the 'passdb backend' to it. I will give
>> that a test by deleteing (per the wiki) what the prior run of
>> classicupdate did and try with this then report back. Save the total
>> rebuild after I learn how to also get the machines over. Profiles is
>> 'just' a matter of rsyncing a LOT of files.
> Samba does not read ldap.conf, and when we do the classicupgrade, we
> force 'ldapsam:trusted=yes', so that we do not need nss_ldap
> configured. Instead, the only option we use is 'passdb backend' in the
> smb.conf, and you just need to point that at the old server.
> Andrew Bartlett
Hi Andrew, well, something is going wrong for the OP, he says he has
followed what is on the wiki, but his users are not making it to the new
He followed the wiki and didn't get his users.
He tried to use 'slapcat' to dump the database, it didn't work
He tried again to 'classicupgrade' but this time added the ldap parts to
smb.conf (they were in 'include' lines that the upgrade ignored), he got
I suggested altering ldap.conf on the old server by removing the tls
lines and the access denied error is now gone (you sure that the upgrade
doesn't use ldap.conf?), but he still hasn't got any of his old users in AD.
Does the classicupgrade read ldap ? if so I have an idea how to transfer
the ldap info from the old server to the new one, but it will mean that
this line on the wiki: 'Install openLDAP (incl. headers and libraries)
on the new host' is going to need massive expansion.
More information about the samba