Package: python3-pyspnego
Version: 0.10.2-2
Severity: minor
X-Debbugs-Cc: [email protected]
Hi,
I'm using this module in the context of ansible, where I control a
Windows machine via winrm. When using this module, I get a rather noisy
deprecation warning on any task I call against the VM:
$ ansible -m win_ping win11test
[WARNING]: WorkerProcess for [win11test/TASK: win_ping] errantly sent data
directly to stderr instead of using Display:
/usr/lib/python3/dist-packages/spnego/_ntlm_raw/crypto.py:46:
CryptographyDeprecationWarning: ARC4 has been moved to
cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from
this module in 48.0.0.
arc4 = algorithms.ARC4(self._key)
win11test | SUCCESS => {
"changed": false,
"ping": "pong"
}
This can trivially be fixed by updating the import similar to what
upstream merged:
https://github.com/jborean93/pyspnego/pull/87/files#diff-79833740d82004c75cf28de2e216fb0b0c11f7a271470f9a9503bb374e85ba4fR36
For testing/unstable just packaging the latest should suffice.
If you don't have the time I'm happy to prepare an upload to fix it in
trixie.
Greets,
Lee
-- System Information:
Debian Release: 13.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.57+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-pyspnego depends on:
ii python3 3.13.5-1
ii python3-cryptography 43.0.0-3
ii python3-gssapi 1.9.0-1+b2
python3-pyspnego recommends no packages.
python3-pyspnego suggests no packages.
-- no debconf information