samba-tool user.py
L.P.H. van Belle
belle at bazuin.nl
Mon Jun 4 08:11:09 UTC 2018
Hi Rowland,
Read this threads, i can try to explain that, but its a much easier read for you.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835598
And
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846311
This one is known in debian samba bug list.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886333
But these should help you understanding better whats going on here.
For you, my packages need the gpgme still, untill we move up to buster, this is because of a build depend with qtbase5-dev.
Installing that, will remove my needed packages from backports: debhelper dh-autoreconf dh-exec dh-strip-nondeterminism dh-systemd equivs
And yes, i could fix the build-depend, but then im getting to much packages im need to backport.
As far i could understand the python-gpgme in buster and up depends on python-gpg and are useing the same source.
Samba ( at least my packages ) and Debian Testing and up use
https://packages.debian.org/stretch/libgpgme11
Sources : https://packages.debian.org/source/stretch/gpgme1.0
Builds https://packages.debian.org/stretch/python-gpg
And
Sources: https://packages.debian.org/source/stretch/pygpgme (0.3-1.2)
https://packages.debian.org/stretch/python-gpgme
But the gpgme to python-gpg transition is still a bit of a maze to me.
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba-technical
> [mailto:samba-technical-bounces at lists.samba.org] Namens
> Rowland Penny via samba-technical
> Verzonden: vrijdag 1 juni 2018 18:27
> Aan: samba-technical at lists.samba.org
> Onderwerp: samba-tool user.py
>
>
> At the top of user.py, there is this:
>
> try:
> import io
> import gpgme
> gpgme_support = True
> decrypt_samba_gpg_help = "Decrypt the SambaGPG password
> as cleartext source"
> except ImportError as e:
> gpgme_support = False
> decrypt_samba_gpg_help = "Decrypt the SambaGPG password
> not supported, " + \
> "python-gpgme required"
>
> The Debian based distros are moving to python-gpg instead of
> python-gpgme, but the 'samba_tool.user.samba.tests.samba_tool.user'
> test fails with python-gpg:
>
> time: 2018-06-01 13:59:27.457334Z
> failure:
> samba.tests.samba_tool.user.samba.tests.samba_tool.user.UserCm
> dTestCase.test_setpassword(ad_dc_ntvfs:local) [
> Exception: Exception: Traceback (most recent call last):
> File
> "/usr/src/git/samba-master/bin/python/samba/tests/samba_tool/u
ser.py", line 214, in test_setpassword
> self.assertCmdSuccess(result, out, err, "Ensure
> syncpasswords --cache-ldb-initialize runs")
> File
> "/usr/src/git/samba-master/bin/python/samba/tests/samba_tool/b
ase.py", line 110, in assertCmdSuccess
> exit, out, err, msg))
> AssertionError: exit[-1] stdout[] stderr[ERROR: Decrypt the
> SambaGPG password not supported, python-gpgme required
> ]: Ensure syncpasswords --cache-ldb-initialize runs
>
> I suppose I could replace 'import gpgme' with 'import python-gpg', but
> I feel this will break other distros.
>
> Suggestions ??
>
> Rowland
>
>
More information about the samba-technical
mailing list