[Samba] classic upgrade issue from samba 4.20

Rowland Penny rpenny at samba.org
Fri Jan 3 10:30:17 UTC 2025


On Thu, 2 Jan 2025 16:58:09 +0100
Arnaud FLORENT via samba <samba at lists.samba.org> wrote:

> Hi and happy new year everyone
> 
> 
> i am testing classic upgrade with recent samba versions
> 
> everything is ok until version 4.19
> 
> 
> but for samba version 4.20 (4.20.6+dfsg-1~~mjt+ubt22 amd64) and 4.21,
> it fails with this message
> 
> 
> Failed to connect to 'ldap://localhost' with backend 'ldap':
> operations error at lib/ldb-samba/ldb_ildap.c:923
> 
> 
> my smb.conf settings are
> 
> passdb backend = ldapsam:ldap://localhost

Try changing that to:
passdb backend = ldapsam:ldap://<your computers IP address>

> 
> ldap ssl = off
> 
> and ldap admin dn, and ldap * suffix parameters matching slapd db
> 
> 
> 
> slapd is running and responds to ldapsearch queries
> 
> 
> i tried to read upgrade_from_samba3 code in 
> /usr/lib/python3/dist-packages/samba/upgrade.py but i did not see
> change from 4.19.
> 
> is there any updates on samba-tool connect to slapd from version 4.20?

Not that I am aware off, but there was a change in
lib/ldb-samba/ldb_ildap.c that appears to be relevant, as in it wasn't
there before.

Rowland






More information about the samba mailing list