On Fri, 3 Jan 2025 11:45:36 +0100
Arnaud FLORENT via samba <samba at lists.samba.org> wrote:
> Hi Rowland
>
> Le 03/01/2025 ? 11:30, Rowland Penny via samba a ?crit?:
> > 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>
> unfortunately same error with 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.
>
> yes, this change matches line 923 reported by python exception
This sounds like a possible regression, Can you please open a bug
report.
Rowland