[Samba] Samba 4.1.17 classic update w/LDAP - parsing error
Andrew Bartlett
abartlet at samba.org
Wed Sep 23 18:59:54 UTC 2015
On Wed, 2015-09-23 at 10:42 +0200, Mgr. Peter Tuharsky wrote:
> Hallo,
>
> I'm trying Samba 4.1.17 (Debian Jessie packages) classic update
> process
> with previous LDAP backend. The process goes normal, occasional
> "group
> already exists" etc.
>
> But it ends up with an error:
>
> ERROR(<type 'exceptions.ValueError'>): uncaught exception - unable to
> parse dn string
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py",
> line
> 175, in _run
> return self.run(*args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py",
> line
> 1321, in run
> useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs)
> File "/usr/lib/python2.7/dist-packages/samba/upgrade.py", line 903,
> in
> upgrade_from_samba3
> add_group_from_mapping_entry(result.samdb, g, logger)
> File "/usr/lib/python2.7/dist-packages/samba/upgrade.py", line 274,
> in
> add_group_from_mapping_entry
> m.dn = ldb.Dn(samdb, "CN=%s,CN=Users,%s" % (groupmap.nt_name,
> samdb.get_default_basedn()))
>
>
> Does someone have a clue, please?
That looks like a bug. My guess is that, as Roland suggested, the
group name isn't just normal characters. We do support other chars in
group names, but the bug here was not to escape the values. You could
expect a particular problem with any of these in particular: =,()
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba
mailing list