On 12/16/25 5:28 PM, Lee Garrett wrote:
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

Hi Lee,

Thanks for this bug report.
I have backported the upstream patch as you suggested.

If you can take care of fixing Stable, please do do, that'd be great! If so, please send a MR against the debian/epoxy branch of the repo in Salsa, so we can continue to track changes to Trixie in Git.

Cheers,

Thomas Goirand (zigo)

Reply via email to