snippet.host

minimal text and code snippet hosting

welcome, guest. why not login or register?

python-dirsearch.build.log

created: language: bash views: 153 size: 235.4 KiB lines: 4500 clone raw download
~/dotfiles [main] λ guix build -L ~/dotfiles/ python-dirsearch
error: specifications->manifest: unbound variable
hint: Did you forget `(use-modules (gnu packages))'?

The following derivations will be built:
/gnu/store/fzyajbxnmhcmy69ww29ibqgks15gsmr5-python-dirsearch-0.4.3.post1.drv
/gnu/store/j6a1f88miz3z122krpfb6qr7kldh5r62-python-requests-ntlm-1.2.0.drv
/gnu/store/rsw8i2ypn7xyhl2g3lvdcjvii4pja60v-python-pyspnego-0.1.6.drv
building /gnu/store/rsw8i2ypn7xyhl2g3lvdcjvii4pja60v-python-pyspnego-0.1.6.drv...
starting phase `set-SOURCE-DATE-EPOCH'
phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds
starting phase `set-paths'
environment variable `PATH' set to `/gnu/store/l6fpy0i9hlll9b6k8vy2i2a4cshwz3cv-python-wrapper-3.10.7/bin:/gnu/store/9kmpn99l328qx5q5gyn6hs9dk5hm3mmg-python-pytest-7.1.3/bin:/gnu/store/ngani4il0cxlaxqkwp3rxmh3ak6f9vxp-python-cryptography-40.0.1/bin:/gnu/store/sxx22f98vfbavcqmdksm6as8fvskpxiw-tar-1.34/bin:/gnu/store/x24bm49ag5dvki72mjdz195bfb89nrnb-gzip-1.12/bin:/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/bin:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/bin:/gnu/store/zmcf5kpqiighkbh7wslf91qdjwj06yr1-diffutils-3.8/bin:/gnu/store/210yfax18r2g2inxrml9435ikhfcca6m-patch-2.7.6/bin:/gnu/store/c8jyph2lxw0m9na34fg8h70n4nnnz7is-findutils-4.9.0/bin:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/bin:/gnu/store/xxcfsimvxz7z4dj593gnqbkzc6picwzq-sed-4.8/bin:/gnu/store/yrv5f70mn83a876b78i5s79dd2hsh0zf-grep-3.8/bin:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/bin:/gnu/store/a5i8avx826brw5grn3n4qv40g514505c-coreutils-9.1/bin:/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/bin:/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin:/gnu/store/na1dpbbcxjaa3n8wkwrfpch476f90hlf-ld-wrapper-0/bin:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/bin:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/bin:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/sbin:/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/bin:/gnu/store/k6vh9bkji0drim54bid882vqr95gnxih-python-tomli-2.0.1/bin'
environment variable `GUIX_PYTHONPATH' set to `/gnu/store/9kmpn99l328qx5q5gyn6hs9dk5hm3mmg-python-pytest-7.1.3/lib/python3.10/site-packages:/gnu/store/s3bll3nn10f7y04h1l7rmi39pfcd2vlg-python-pytest-mock-3.10.0/lib/python3.10/site-packages:/gnu/store/ngani4il0cxlaxqkwp3rxmh3ak6f9vxp-python-cryptography-40.0.1/lib/python3.10/site-packages:/gnu/store/229gmzdjli7f1ahxp0xgz3rf6j6kfksh-python-gssapi-1.8.2/lib/python3.10/site-packages:/gnu/store/nrp1q0kd79y5rr3k9fz14qlwmcbgppxl-python-ruamel.yaml-0.16.13/lib/python3.10/site-packages:/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/site-packages:/gnu/store/k6vh9bkji0drim54bid882vqr95gnxih-python-tomli-2.0.1/lib/python3.10/site-packages:/gnu/store/gyjydv54gp7a24w1i0dw3zs7icikx5qm-python-py-1.11.0/lib/python3.10/site-packages:/gnu/store/q4iq67qsfrw6qfaspc0lmqdziq173vbl-python-pluggy-1.0.0/lib/python3.10/site-packages:/gnu/store/wlv503fbq1h31hpv6qrv4xxirmynjmjr-python-packaging-bootstrap-21.3/lib/python3.10/site-packages:/gnu/store/afm9kq14qibif5w81xp4s12cyv51rk55-python-iniconfig-1.1.1/lib/python3.10/site-packages:/gnu/store/6yk9ymwrz7yazql336bg0mcia6cjcr9g-python-attrs-bootstrap-21.2.0/lib/python3.10/site-packages:/gnu/store/00zqb99vnf2crg9wvfv9gb79pyb4vr6i-python-cffi-1.15.1/lib/python3.10/site-packages:/gnu/store/9pij0h1hg37k0l7n1hqyi8s7am843f37-python-six-1.16.0/lib/python3.10/site-packages:/gnu/store/4vls9m3jv56xzqx3kgksy2i72jn9nbli-python-decorator-5.0.9/lib/python3.10/site-packages:/gnu/store/lwy9428ibf0yg3s85wbp8bw8lfk6q9ib-python-ruamel.yaml.clib-0.2.6/lib/python3.10/site-packages:/gnu/store/ij3wk9likzyv9jbwx60rmi0vyjhdi2dw-python-six-bootstrap-1.16.0/lib/python3.10/site-packages:/gnu/store/wlmf5spfdmsjiw6cx30h0rpydfpz3gil-python-pyparsing-3.0.6/lib/python3.10/site-packages:/gnu/store/k7svck56hhagdg3q4nqlk5z1j57w9sli-python-pycparser-2.21/lib/python3.10/site-packages'
environment variable `PYTHONTZPATH' unset
environment variable `BASH_LOADABLES_PATH' unset
environment variable `C_INCLUDE_PATH' set to `/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/include:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/include:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/include:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/include:/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/include:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/include:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/include:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/include:/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/include:/gnu/store/5iklcps70c0sfkxvlrhg8jhf3q4h18bj-linux-libre-headers-5.15.49/include'
environment variable `CPLUS_INCLUDE_PATH' set to `/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/include:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/include:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/include:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/include:/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/include:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/include:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/include/c++:/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/include:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/include:/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/include:/gnu/store/5iklcps70c0sfkxvlrhg8jhf3q4h18bj-linux-libre-headers-5.15.49/include'
environment variable `LIBRARY_PATH' set to `/gnu/store/9kmpn99l328qx5q5gyn6hs9dk5hm3mmg-python-pytest-7.1.3/lib:/gnu/store/s3bll3nn10f7y04h1l7rmi39pfcd2vlg-python-pytest-mock-3.10.0/lib:/gnu/store/ngani4il0cxlaxqkwp3rxmh3ak6f9vxp-python-cryptography-40.0.1/lib:/gnu/store/229gmzdjli7f1ahxp0xgz3rf6j6kfksh-python-gssapi-1.8.2/lib:/gnu/store/nrp1q0kd79y5rr3k9fz14qlwmcbgppxl-python-ruamel.yaml-0.16.13/lib:/gnu/store/j8wlfmlmfvpbza6is9wv9xsd8psrxn00-bzip2-1.0.8/lib:/gnu/store/gr0sy0m1mv36qv54idm6cn10l3mngshq-file-5.44/lib:/gnu/store/hc05d76f1j3iz3v2bs5jz4fpljl1r4dj-gawk-5.2.1/lib:/gnu/store/6k1yys9wqrfn4y41ic1win8gpnimncwj-xz-5.2.8/lib:/gnu/store/zh4x65snfis7svs6906gj1z8i7dx2j3m-binutils-2.38/lib:/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib:/gnu/store/l0yryi5jsa1grnvw01c9nkz9c81cv224-glibc-2.35-static/lib:/gnu/store/visfdda934gvivwihwhlm63fdqhhcc8a-glibc-utf8-locales-2.35/lib:/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib:/gnu/store/k6vh9bkji0drim54bid882vqr95gnxih-python-tomli-2.0.1/lib:/gnu/store/gyjydv54gp7a24w1i0dw3zs7icikx5qm-python-py-1.11.0/lib:/gnu/store/q4iq67qsfrw6qfaspc0lmqdziq173vbl-python-pluggy-1.0.0/lib:/gnu/store/wlv503fbq1h31hpv6qrv4xxirmynjmjr-python-packaging-bootstrap-21.3/lib:/gnu/store/afm9kq14qibif5w81xp4s12cyv51rk55-python-iniconfig-1.1.1/lib:/gnu/store/6yk9ymwrz7yazql336bg0mcia6cjcr9g-python-attrs-bootstrap-21.2.0/lib:/gnu/store/00zqb99vnf2crg9wvfv9gb79pyb4vr6i-python-cffi-1.15.1/lib:/gnu/store/9pij0h1hg37k0l7n1hqyi8s7am843f37-python-six-1.16.0/lib:/gnu/store/4vls9m3jv56xzqx3kgksy2i72jn9nbli-python-decorator-5.0.9/lib:/gnu/store/lwy9428ibf0yg3s85wbp8bw8lfk6q9ib-python-ruamel.yaml.clib-0.2.6/lib:/gnu/store/ij3wk9likzyv9jbwx60rmi0vyjhdi2dw-python-six-bootstrap-1.16.0/lib:/gnu/store/wlmf5spfdmsjiw6cx30h0rpydfpz3gil-python-pyparsing-3.0.6/lib:/gnu/store/k7svck56hhagdg3q4nqlk5z1j57w9sli-python-pycparser-2.21/lib'
environment variable `GUIX_LOCPATH' set to `/gnu/store/visfdda934gvivwihwhlm63fdqhhcc8a-glibc-utf8-locales-2.35/lib/locale'
phase `set-paths' succeeded after 0.0 seconds
starting phase `install-locale'
using 'en_US.utf8' locale for category "LC_ALL"
phase `install-locale' succeeded after 0.0 seconds
starting phase `unpack'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/.gitignore' -> `./.gitignore'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/requirements-test.txt' -> `./requirements-test.txt'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/LICENSE' -> `./LICENSE'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/README.md' -> `./README.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/CHANGELOG.md' -> `./CHANGELOG.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/setup.cfg' -> `./setup.cfg'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/setup.py' -> `./setup.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tox.ini' -> `./tox.ini'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/azure-pipelines.yml' -> `./azure-pipelines.yml'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/.coveragerc' -> `./.coveragerc'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/MANIFEST.in' -> `./MANIFEST.in'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_context.py' -> `./tests/test_context.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_negotiate.py' -> `./tests/test_negotiate.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_sspi.py' -> `./tests/test_sspi.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_spnego.py' -> `./tests/test_spnego.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_channel_bindings.py' -> `./tests/test_channel_bindings.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_main.py' -> `./tests/test_main.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/constraints.txt' -> `./tests/constraints.txt'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_gss.py' -> `./tests/test_gss.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/conftest.py' -> `./tests/conftest.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_kerberos.py' -> `./tests/test_kerberos.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_text.py' -> `./tests/test_text.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_ntlm.py' -> `./tests/test_ntlm.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_auth.py' -> `./tests/test_auth.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/__init__.py' -> `./tests/__init__.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_asn1.py' -> `./tests/test_asn1.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/test_exceptions.py' -> `./tests/test_exceptions.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/integration/Vagrantfile' -> `./tests/integration/Vagrantfile'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/integration/inventory.yml' -> `./tests/integration/inventory.yml'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/integration/tests.yml' -> `./tests/integration/tests.yml'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/integration/ansible.cfg' -> `./tests/integration/ansible.cfg'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/integration/main.yml' -> `./tests/integration/main.yml'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/integration/README.md' -> `./tests/integration/README.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/integration/templates/krb5.conf.tmpl' -> `./tests/integration/templates/krb5.conf.tmpl'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/integration/templates/test_integration.py.tmpl' -> `./tests/integration/templates/test_integration.py.tmpl'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/_sspi_raw/test_sspi.py' -> `./tests/_sspi_raw/test_sspi.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/_sspi_raw/test_text.py' -> `./tests/_sspi_raw/test_text.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/_sspi_raw/__init__.py' -> `./tests/_sspi_raw/__init__.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/krb_as_req' -> `./tests/data/krb_as_req'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/krb_error' -> `./tests/data/krb_error'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/test_context.py' -> `./tests/data/test_context.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/ntlm_authenticate_no_sign_seal' -> `./tests/data/ntlm_authenticate_no_sign_seal'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/neg_token_resp' -> `./tests/data/neg_token_resp'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/initial_context_token_neg_token_init2' -> `./tests/data/initial_context_token_neg_token_init2'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/initial_context_token_neg_token_init' -> `./tests/data/initial_context_token_neg_token_init'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/initial_context_token_krb_ap_rep' -> `./tests/data/initial_context_token_krb_ap_rep'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/ntlm_authenticate' -> `./tests/data/ntlm_authenticate'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/ntlm_negotiate' -> `./tests/data/ntlm_negotiate'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/pyspnego.ps1' -> `./tests/data/pyspnego.ps1'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/krb_tgs_rep' -> `./tests/data/krb_tgs_rep'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/krb_tgs_req' -> `./tests/data/krb_tgs_req'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/ntlm_challenge' -> `./tests/data/ntlm_challenge'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/__init__.py' -> `./tests/data/__init__.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/krb_as_rep' -> `./tests/data/krb_as_rep'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/data/initial_context_token_krb_ap_req' -> `./tests/data/initial_context_token_krb_ap_req'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/_ntlm_raw/test_des.py' -> `./tests/_ntlm_raw/test_des.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/_ntlm_raw/test_security.py' -> `./tests/_ntlm_raw/test_security.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/_ntlm_raw/test_messages.py' -> `./tests/_ntlm_raw/test_messages.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/_ntlm_raw/test_crypto.py' -> `./tests/_ntlm_raw/test_crypto.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/tests/_ntlm_raw/__init__.py' -> `./tests/_ntlm_raw/__init__.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/auth.py' -> `./spnego/auth.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_asn1.py' -> `./spnego/_asn1.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/negotiate.py' -> `./spnego/negotiate.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/__main__.py' -> `./spnego/__main__.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_compat.py' -> `./spnego/_compat.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_spnego.py' -> `./spnego/_spnego.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_version.py' -> `./spnego/_version.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/gss.py' -> `./spnego/gss.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/exceptions.py' -> `./spnego/exceptions.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/ntlm.py' -> `./spnego/ntlm.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/sspi.py' -> `./spnego/sspi.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/iov.py' -> `./spnego/iov.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_kerberos.py' -> `./spnego/_kerberos.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/channel_bindings.py' -> `./spnego/channel_bindings.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_text.py' -> `./spnego/_text.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_context.py' -> `./spnego/_context.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/__init__.py' -> `./spnego/__init__.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_sspi_raw/windows.pxd' -> `./spnego/_sspi_raw/windows.pxd'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_sspi_raw/sspi.pxd' -> `./spnego/_sspi_raw/sspi.pxd'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_sspi_raw/text.pyx' -> `./spnego/_sspi_raw/text.pyx'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_sspi_raw/sspi.pyx' -> `./spnego/_sspi_raw/sspi.pyx'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_sspi_raw/__init__.py' -> `./spnego/_sspi_raw/__init__.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_sspi_raw/security.pxd' -> `./spnego/_sspi_raw/security.pxd'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_sspi_raw/text.pxd' -> `./spnego/_sspi_raw/text.pxd'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_ntlm_raw/security.py' -> `./spnego/_ntlm_raw/security.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_ntlm_raw/des.py' -> `./spnego/_ntlm_raw/des.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_ntlm_raw/messages.py' -> `./spnego/_ntlm_raw/messages.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_ntlm_raw/crypto.py' -> `./spnego/_ntlm_raw/crypto.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/spnego/_ntlm_raw/__init__.py' -> `./spnego/_ntlm_raw/__init__.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/debugging.md' -> `./docs/debugging.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/gssapi_issues.md' -> `./docs/gssapi_issues.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/gssapi_negotiate_ntlm_with_ntlm.md' -> `./docs/scenarios/gssapi_negotiate_ntlm_with_ntlm.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/gssapi_kerberos.md' -> `./docs/scenarios/gssapi_kerberos.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/template.md' -> `./docs/scenarios/template.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/gssapi_negotiate_ntlm_fallback.md' -> `./docs/scenarios/gssapi_negotiate_ntlm_fallback.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/kerberos_data.md' -> `./docs/scenarios/kerberos_data.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/sspi_ntlm_invalid_spn.md' -> `./docs/scenarios/sspi_ntlm_invalid_spn.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/heimdal_macos_ntlm.md' -> `./docs/scenarios/heimdal_macos_ntlm.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/sspi_ntlm.md' -> `./docs/scenarios/sspi_ntlm.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/heimdal_ntlm.md' -> `./docs/scenarios/heimdal_ntlm.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/gssapi_ntlm.md' -> `./docs/scenarios/gssapi_ntlm.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/sspi_ntlm_in_smb_spnego.md' -> `./docs/scenarios/sspi_ntlm_in_smb_spnego.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/gssapi_negotiate_kerberos_with_ntlm.md' -> `./docs/scenarios/gssapi_negotiate_kerberos_with_ntlm.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/gssapi_negotiate_kerberos_without_ntlm.md' -> `./docs/scenarios/gssapi_negotiate_kerberos_without_ntlm.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/scenarios/sspi_kerberos_in_smb_spnego.md' -> `./docs/scenarios/sspi_kerberos_in_smb_spnego.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/exceptions/wrapping.md' -> `./docs/exceptions/wrapping.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/exceptions/authentication.md' -> `./docs/exceptions/authentication.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/exceptions/credentials.md' -> `./docs/exceptions/credentials.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/exceptions/negotiate.md' -> `./docs/exceptions/negotiate.md'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/examples/local_auth.py' -> `./docs/examples/local_auth.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/examples/client_auth.py' -> `./docs/examples/client_auth.py'
`/gnu/store/ljs4s19nxs2p2kr65sjbxlr02d9rd30r-python-pyspnego-0.1.6-checkout/docs/examples/iov_wrapping.py' -> `./docs/examples/iov_wrapping.py'
phase `unpack' succeeded after 0.0 seconds
starting phase `ensure-no-mtimes-pre-1980'
phase `ensure-no-mtimes-pre-1980' succeeded after 0.0 seconds
starting phase `enable-bytecode-determinism'
phase `enable-bytecode-determinism' succeeded after 0.0 seconds
starting phase `ensure-no-cythonized-files'
phase `ensure-no-cythonized-files' succeeded after 0.0 seconds
starting phase `patch-usr-bin-file'
phase `patch-usr-bin-file' succeeded after 0.0 seconds
starting phase `patch-source-shebangs'
patch-shebang: ./docs/examples/client_auth.py: changing `/usr/bin/python' to `/gnu/store/l6fpy0i9hlll9b6k8vy2i2a4cshwz3cv-python-wrapper-3.10.7/bin/python'
patch-shebang: ./docs/examples/iov_wrapping.py: changing `/usr/bin/python' to `/gnu/store/l6fpy0i9hlll9b6k8vy2i2a4cshwz3cv-python-wrapper-3.10.7/bin/python'
patch-shebang: ./docs/examples/local_auth.py: changing `/usr/bin/python' to `/gnu/store/l6fpy0i9hlll9b6k8vy2i2a4cshwz3cv-python-wrapper-3.10.7/bin/python'
patch-shebang: ./setup.py: changing `/usr/bin/env python' to `/gnu/store/l6fpy0i9hlll9b6k8vy2i2a4cshwz3cv-python-wrapper-3.10.7/bin/python'
patch-shebang: ./spnego/__main__.py: changing `/usr/bin/env python' to `/gnu/store/l6fpy0i9hlll9b6k8vy2i2a4cshwz3cv-python-wrapper-3.10.7/bin/python'
phase `patch-source-shebangs' succeeded after 0.0 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
running "python setup.py" with command "build" and parameters ()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running build
running build_py
creating build
creating build/lib
creating build/lib/spnego
copying spnego/auth.py -> build/lib/spnego
copying spnego/_asn1.py -> build/lib/spnego
copying spnego/negotiate.py -> build/lib/spnego
copying spnego/__main__.py -> build/lib/spnego
copying spnego/_compat.py -> build/lib/spnego
copying spnego/_spnego.py -> build/lib/spnego
copying spnego/_version.py -> build/lib/spnego
copying spnego/gss.py -> build/lib/spnego
copying spnego/exceptions.py -> build/lib/spnego
copying spnego/ntlm.py -> build/lib/spnego
copying spnego/sspi.py -> build/lib/spnego
copying spnego/iov.py -> build/lib/spnego
copying spnego/_kerberos.py -> build/lib/spnego
copying spnego/channel_bindings.py -> build/lib/spnego
copying spnego/_text.py -> build/lib/spnego
copying spnego/_context.py -> build/lib/spnego
copying spnego/__init__.py -> build/lib/spnego
creating build/lib/spnego/_ntlm_raw
copying spnego/_ntlm_raw/security.py -> build/lib/spnego/_ntlm_raw
copying spnego/_ntlm_raw/des.py -> build/lib/spnego/_ntlm_raw
copying spnego/_ntlm_raw/messages.py -> build/lib/spnego/_ntlm_raw
copying spnego/_ntlm_raw/crypto.py -> build/lib/spnego/_ntlm_raw
copying spnego/_ntlm_raw/__init__.py -> build/lib/spnego/_ntlm_raw
creating build/lib/spnego/_sspi_raw
copying spnego/_sspi_raw/__init__.py -> build/lib/spnego/_sspi_raw
running egg_info
creating pyspnego.egg-info
writing pyspnego.egg-info/PKG-INFO
writing dependency_links to pyspnego.egg-info/dependency_links.txt
writing entry points to pyspnego.egg-info/entry_points.txt
writing requirements to pyspnego.egg-info/requires.txt
writing top-level names to pyspnego.egg-info/top_level.txt
writing manifest file 'pyspnego.egg-info/SOURCES.txt'
reading manifest file 'pyspnego.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'pyspnego.egg-info/SOURCES.txt'
copying spnego/_sspi_raw/security.pxd -> build/lib/spnego/_sspi_raw
copying spnego/_sspi_raw/sspi.pxd -> build/lib/spnego/_sspi_raw
copying spnego/_sspi_raw/sspi.pyx -> build/lib/spnego/_sspi_raw
copying spnego/_sspi_raw/text.pxd -> build/lib/spnego/_sspi_raw
copying spnego/_sspi_raw/text.pyx -> build/lib/spnego/_sspi_raw
copying spnego/_sspi_raw/windows.pxd -> build/lib/spnego/_sspi_raw
warning: build_py: byte-compiling is disabled, skipping.

phase `build' succeeded after 0.3 seconds
starting phase `install'
running "python setup.py" with command "install" and parameters ("--prefix=/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6" "--no-compile" "--single-version-externally-managed" "--root=/")
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running install
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
running egg_info
writing pyspnego.egg-info/PKG-INFO
writing dependency_links to pyspnego.egg-info/dependency_links.txt
writing entry points to pyspnego.egg-info/entry_points.txt
writing requirements to pyspnego.egg-info/requires.txt
writing top-level names to pyspnego.egg-info/top_level.txt
reading manifest file 'pyspnego.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'pyspnego.egg-info/SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.

running install_lib
creating /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6
creating /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib
creating /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10
creating /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages
creating /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
creating /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw
copying build/lib/spnego/_ntlm_raw/security.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw
copying build/lib/spnego/_ntlm_raw/des.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw
copying build/lib/spnego/_ntlm_raw/messages.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw
copying build/lib/spnego/_ntlm_raw/crypto.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw
copying build/lib/spnego/_ntlm_raw/__init__.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw
copying build/lib/spnego/auth.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/_asn1.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/negotiate.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/__main__.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/_compat.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/_spnego.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/_version.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/gss.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/exceptions.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/ntlm.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/sspi.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/iov.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/_kerberos.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/channel_bindings.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/_text.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/_context.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
copying build/lib/spnego/__init__.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego
creating /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_sspi_raw
copying build/lib/spnego/_sspi_raw/windows.pxd -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_sspi_raw
copying build/lib/spnego/_sspi_raw/sspi.pxd -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_sspi_raw
copying build/lib/spnego/_sspi_raw/text.pyx -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_sspi_raw
copying build/lib/spnego/_sspi_raw/sspi.pyx -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_sspi_raw
copying build/lib/spnego/_sspi_raw/__init__.py -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_sspi_raw
copying build/lib/spnego/_sspi_raw/security.pxd -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_sspi_raw
copying build/lib/spnego/_sspi_raw/text.pxd -> /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_sspi_raw
warning: install_lib: byte-compiling is disabled, skipping.

running install_egg_info
Copying pyspnego.egg-info to /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/pyspnego-0.1.6-py3.10.egg-info
running install_scripts
Installing pyspnego-parse script to /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/bin
Listing '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6'...
Listing '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/bin'...
Listing '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib'...
Listing '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10'...
Listing '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages'...
Listing '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/pyspnego-0.1.6-py3.10.egg-info'...
Listing '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/__init__.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/__main__.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_asn1.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_compat.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_context.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_kerberos.py'...
Listing '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw/__init__.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw/crypto.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw/des.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw/messages.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_ntlm_raw/security.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_spnego.py'...
Listing '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_sspi_raw'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_sspi_raw/__init__.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_text.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/_version.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/auth.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/channel_bindings.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/exceptions.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/gss.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/iov.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/negotiate.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/ntlm.py'...
Compiling '/gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/lib/python3.10/site-packages/spnego/sspi.py'...
phase `install' succeeded after 0.4 seconds
starting phase `add-install-to-pythonpath'
phase `add-install-to-pythonpath' succeeded after 0.0 seconds
starting phase `add-install-to-path'
phase `add-install-to-path' succeeded after 0.0 seconds
starting phase `wrap'
find-files: /gnu/store/92jzczfcm1qwkzccdcb4ypi6gjgwkxqg-python-pyspnego-0.1.6/sbin: No such file or directory
phase `wrap' succeeded after 0.0 seconds
starting phase `check'
============================= test session starts ==============================
platform linux -- Python 3.10.7, pytest-7.1.3, pluggy-1.0.0
rootdir: /tmp/guix-build-python-pyspnego-0.1.6.drv-0/source, configfile: setup.cfg
plugins: hypothesis-6.54.5, mock-3.10.0
collected 516 items

tests/test_asn1.py ..................................................... [ 10%]
.......................................................... [ 21%]
tests/test_auth.py ..sFsssFFFFFsssFssssssssssssssssssss [ 28%]
tests/test_channel_bindings.py ...... [ 29%]
tests/test_context.py ...................... [ 33%]
tests/test_exceptions.py .........ss...s [ 36%]
tests/test_gss.py .sssss....... [ 39%]
tests/test_kerberos.py ..................... [ 43%]
tests/test_main.py ............F..F............ [ 48%]
tests/test_negotiate.py F.F [ 49%]
tests/test_ntlm.py ...FFFF.............FFFFFFFFssFFFFFFFFFFFFssFssF [ 58%]
tests/test_spnego.py .................. [ 62%]
tests/test_sspi.py ss.ss [ 63%]
tests/test_text.py ...........................s. [ 68%]
tests/_ntlm_raw/test_crypto.py ...F.FFFFFF.............. [ 73%]
tests/_ntlm_raw/test_des.py ......... [ 75%]
tests/_ntlm_raw/test_messages.py ....................................... [ 82%]
.................................... [ 89%]
tests/_ntlm_raw/test_security.py ...... [ 91%]
tests/_sspi_raw/test_sspi.py sssssssssssssssssssssssssssss [ 96%]
tests/_sspi_raw/test_text.py sssss [ 97%]
tests/data/test_context.py ............ [100%]

=================================== FAILURES ===================================
_ test_negotiate_through_python_ntlm[NegotiateOptions.use_negotiate-NegotiateOptions.use_negotiate] _

client_opt = <NegotiateOptions.use_negotiate: 4>
server_opt = <NegotiateOptions.use_negotiate: 4>
ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5d47490>

@pytest.mark.parametrize('client_opt, server_opt', [
(spnego.NegotiateOptions.use_negotiate, spnego.NegotiateOptions.use_negotiate),
(spnego.NegotiateOptions.use_gssapi, spnego.NegotiateOptions.use_negotiate),
(spnego.NegotiateOptions.use_negotiate, spnego.NegotiateOptions.use_gssapi),
# Cannot seem to force SSPI to wrap NTLM solely in SPNEGO, skip this test for now.
# (spnego.NegotiateOptions.use_sspi, spnego.NegotiateOptions.use_negotiate),
(spnego.NegotiateOptions.use_negotiate, spnego.NegotiateOptions.use_sspi),
])
def test_negotiate_through_python_ntlm(client_opt, server_opt, ntlm_cred, monkeypatch):
if client_opt & spnego.NegotiateOptions.use_negotiate and server_opt & spnego.NegotiateOptions.use_negotiate:
# Make sure we pretend that the system libraries aren't available
def available_protocols(*args, **kwargs):
return []

monkeypatch.setattr(spnego.gss, '_available_protocols', available_protocols)
monkeypatch.setattr(spnego.sspi, '_available_protocols', available_protocols)

elif client_opt & spnego.NegotiateOptions.use_gssapi or server_opt & spnego.NegotiateOptions.use_gssapi:
if 'ntlm' not in spnego.gss.GSSAPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through GSSAPI')

elif client_opt & spnego.NegotiateOptions.use_sspi or server_opt & spnego.NegotiateOptions.use_sspi:
if 'ntlm' not in spnego.sspi.SSPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through SSPI')

# Build the initial context and assert the defaults.
c = spnego.client(ntlm_cred[0], ntlm_cred[1], protocol='negotiate', options=client_opt,
context_req=spnego.ContextReq.delegate | spnego.ContextReq.default)
s = spnego.server(protocol='negotiate', options=server_opt)

assert not c.complete
assert not s.complete

> negotiate = c.step()

tests/test_auth.py:260:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/negotiate.py:119: in step
mech_token_in, mech_list_mic, is_spnego = self._step_spnego_input(in_token=in_token)
spnego/negotiate.py:207: in _step_spnego_input
self._mech_list = self._rebuild_context_list()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <spnego.negotiate.NegotiateProxy object at 0x7ffff5cc5240>
mech_types = None

def _rebuild_context_list(self, mech_types=None): # type: (Optional[List[str]]) -> List[str]
""" Builds a new context list that are available to the client. """
context_kwargs = {
'username': self.username,
'password': self.password,
'hostname': self._hostname,
'service': self._service,
'channel_bindings': self.channel_bindings,
'context_req': self.context_req,
'usage': self.usage,
'options': self.options,
'_is_wrapped': True,
}
gssapi_protocols = GSSAPIProxy.available_protocols(options=self.options)
all_protocols = self._preferred_mech_list()

self._context_list = collections.OrderedDict()
mech_list = []
last_err = None
for mech in all_protocols:
if mech_types and mech.value not in mech_types:
continue

protocol = mech.name
try:
proxy_obj = GSSAPIProxy if protocol in gssapi_protocols else NTLMProxy
context = proxy_obj(protocol=protocol, **context_kwargs)
first_token = context.step() if self.usage == 'initiate' else None
except Exception as e:
last_err = e
log.debug("Failed to create gssapi context for SPNEGO protocol %s: %s", protocol, to_text(e))
continue

self._context_list[mech] = (context, first_token)
mech_list.append(mech.value)

if not mech_list:
> raise BadMechanismError(context_msg="Unable to negotiate common mechanism", base_error=last_err)
E spnego.exceptions.BadMechanismError: SpnegoError (1): unsupported hash type md4, Context: Unable to negotiate common mechanism

spnego/negotiate.py:374: BadMechanismError
_________________________ test_negotiate_with_raw_ntlm _________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')

def test_negotiate_with_raw_ntlm(ntlm_cred):
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(), protocol='ntlm')

tests/test_auth.py:299:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_____________________________ test_ntlm_auth[None] _____________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

lm_compat_level = None, ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5197610>

@pytest.mark.parametrize('lm_compat_level', [None, 0, 1, 2])
def test_ntlm_auth(lm_compat_level, ntlm_cred, monkeypatch):
if lm_compat_level is not None:
monkeypatch.setenv('LM_COMPAT_LEVEL', str(lm_compat_level))

# Build the initial context and assert the defaults.
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], protocol='ntlm', options=spnego.NegotiateOptions.use_ntlm)

tests/test_auth.py:333:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
______________________________ test_ntlm_auth[0] _______________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

lm_compat_level = 0, ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5bcb490>

@pytest.mark.parametrize('lm_compat_level', [None, 0, 1, 2])
def test_ntlm_auth(lm_compat_level, ntlm_cred, monkeypatch):
if lm_compat_level is not None:
monkeypatch.setenv('LM_COMPAT_LEVEL', str(lm_compat_level))

# Build the initial context and assert the defaults.
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], protocol='ntlm', options=spnego.NegotiateOptions.use_ntlm)

tests/test_auth.py:333:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
______________________________ test_ntlm_auth[1] _______________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

lm_compat_level = 1, ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5b3b040>

@pytest.mark.parametrize('lm_compat_level', [None, 0, 1, 2])
def test_ntlm_auth(lm_compat_level, ntlm_cred, monkeypatch):
if lm_compat_level is not None:
monkeypatch.setenv('LM_COMPAT_LEVEL', str(lm_compat_level))

# Build the initial context and assert the defaults.
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], protocol='ntlm', options=spnego.NegotiateOptions.use_ntlm)

tests/test_auth.py:333:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
______________________________ test_ntlm_auth[2] _______________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

lm_compat_level = 2, ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5b5b7c0>

@pytest.mark.parametrize('lm_compat_level', [None, 0, 1, 2])
def test_ntlm_auth(lm_compat_level, ntlm_cred, monkeypatch):
if lm_compat_level is not None:
monkeypatch.setenv('LM_COMPAT_LEVEL', str(lm_compat_level))

# Build the initial context and assert the defaults.
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], protocol='ntlm', options=spnego.NegotiateOptions.use_ntlm)

tests/test_auth.py:333:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_ test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_ntlm-NegotiateOptions.use_ntlm] _

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

client_opt = <NegotiateOptions.use_ntlm: 8>
server_opt = <NegotiateOptions.use_ntlm: 8>
ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')

@pytest.mark.parametrize('client_opt, server_opt', [
(spnego.NegotiateOptions.use_sspi, spnego.NegotiateOptions.use_sspi),
(spnego.NegotiateOptions.use_ntlm, spnego.NegotiateOptions.use_sspi),
(spnego.NegotiateOptions.use_sspi, spnego.NegotiateOptions.use_ntlm),
(spnego.NegotiateOptions.use_ntlm, spnego.NegotiateOptions.use_ntlm),
# Cannot test with gssapi as the existing version has a bug with this scenario.
])
def test_sspi_ntlm_auth_no_sign_or_seal(client_opt, server_opt, ntlm_cred):
if client_opt & spnego.NegotiateOptions.use_gssapi or server_opt & spnego.NegotiateOptions.use_gssapi:
if 'ntlm' not in spnego.gss.GSSAPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through GSSAPI')

elif client_opt & spnego.NegotiateOptions.use_sspi or server_opt & spnego.NegotiateOptions.use_sspi:
if 'ntlm' not in spnego.sspi.SSPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through SSPI')

# Build the initial context and assert the defaults.
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(), options=client_opt, protocol='ntlm',
context_req=0)

tests/test_auth.py:361:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
______________________ test_ntlm_authenticate_with_secret ______________________

name = 'md4'
data = b'V\x00a\x00g\x00r\x00a\x00n\x00t\x00P\x00a\x00s\x00s\x001\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

capsys = <_pytest.capture.CaptureFixture object at 0x7ffff55c9210>

def test_ntlm_authenticate_with_secret(capsys):
> entrypoint.main([
'--token',
base64.b64encode(get_data('ntlm_authenticate')).decode(),
'--secret',
u'VagrantPass1',
])

tests/test_main.py:362:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/__main__.py:380: in main
token_info = parse_token(b_data, secret=args.secret, encoding=args.encoding)
spnego/__main__.py:494: in parse_token
data = _parse_ntlm_authenticate(token, secret)
spnego/__main__.py:288: in _parse_ntlm_authenticate
response_key_nt = ntowfv2(msg['Payload']['UserName'], ntowfv1(password), msg['Payload']['DomainName'])
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
______________________ test_nltm_session_key_no_sign_seal ______________________

name = 'md4', data = b'v\x00a\x00g\x00r\x00a\x00n\x00t\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

capsys = <_pytest.capture.CaptureFixture object at 0x7ffff5b6ace0>

def test_nltm_session_key_no_sign_seal(capsys):
> entrypoint.main([
'--token',
base64.b64encode(get_data('ntlm_authenticate_no_sign_seal')).decode(),
'--secret',
u'vagrant',
])

tests/test_main.py:520:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/__main__.py:380: in main
token_info = parse_token(b_data, secret=args.secret, encoding=args.encoding)
spnego/__main__.py:494: in parse_token
data = _parse_ntlm_authenticate(token, secret)
spnego/__main__.py:288: in _parse_ntlm_authenticate
response_key_nt = ntowfv2(msg['Payload']['UserName'], ntowfv1(password), msg['Payload']['DomainName'])
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_____________________________ test_token_rejected ______________________________

ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')

def test_token_rejected(ntlm_cred):
c = spnego.client(ntlm_cred[0], ntlm_cred[1], options=spnego.NegotiateOptions.use_negotiate)

> c.step()

tests/test_negotiate.py:30:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/negotiate.py:119: in step
mech_token_in, mech_list_mic, is_spnego = self._step_spnego_input(in_token=in_token)
spnego/negotiate.py:207: in _step_spnego_input
self._mech_list = self._rebuild_context_list()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <spnego.negotiate.NegotiateProxy object at 0x7ffff5791f00>
mech_types = None

def _rebuild_context_list(self, mech_types=None): # type: (Optional[List[str]]) -> List[str]
""" Builds a new context list that are available to the client. """
context_kwargs = {
'username': self.username,
'password': self.password,
'hostname': self._hostname,
'service': self._service,
'channel_bindings': self.channel_bindings,
'context_req': self.context_req,
'usage': self.usage,
'options': self.options,
'_is_wrapped': True,
}
gssapi_protocols = GSSAPIProxy.available_protocols(options=self.options)
all_protocols = self._preferred_mech_list()

self._context_list = collections.OrderedDict()
mech_list = []
last_err = None
for mech in all_protocols:
if mech_types and mech.value not in mech_types:
continue

protocol = mech.name
try:
proxy_obj = GSSAPIProxy if protocol in gssapi_protocols else NTLMProxy
context = proxy_obj(protocol=protocol, **context_kwargs)
first_token = context.step() if self.usage == 'initiate' else None
except Exception as e:
last_err = e
log.debug("Failed to create gssapi context for SPNEGO protocol %s: %s", protocol, to_text(e))
continue

self._context_list[mech] = (context, first_token)
mech_list.append(mech.value)

if not mech_list:
> raise BadMechanismError(context_msg="Unable to negotiate common mechanism", base_error=last_err)
E spnego.exceptions.BadMechanismError: SpnegoError (1): unsupported hash type md4, Context: Unable to negotiate common mechanism

spnego/negotiate.py:374: BadMechanismError
__________________________ test_token_acceptor_first ___________________________

ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')

def test_token_acceptor_first(ntlm_cred):
c = spnego.client(ntlm_cred[0], ntlm_cred[1], options=spnego.NegotiateOptions.use_negotiate)
s = spnego.server(options=spnego.NegotiateOptions.use_negotiate)

assert c._mech_list == []
assert s._mech_list == []

token1 = s.step()
assert isinstance(token1, bytes)
assert not c.complete
assert not s.complete
assert c._mech_list == []
assert s._mech_list == [GSSMech.ntlm.value]

> negotiate = c.step(token1)

tests/test_negotiate.py:58:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/negotiate.py:119: in step
mech_token_in, mech_list_mic, is_spnego = self._step_spnego_input(in_token=in_token)
spnego/negotiate.py:159: in _step_spnego_input
mech_list = self._rebuild_context_list(mech_types=in_token.mech_types)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <spnego.negotiate.NegotiateProxy object at 0x7ffff515eb60>
mech_types = ['1.3.6.1.4.1.311.2.2.10']

def _rebuild_context_list(self, mech_types=None): # type: (Optional[List[str]]) -> List[str]
""" Builds a new context list that are available to the client. """
context_kwargs = {
'username': self.username,
'password': self.password,
'hostname': self._hostname,
'service': self._service,
'channel_bindings': self.channel_bindings,
'context_req': self.context_req,
'usage': self.usage,
'options': self.options,
'_is_wrapped': True,
}
gssapi_protocols = GSSAPIProxy.available_protocols(options=self.options)
all_protocols = self._preferred_mech_list()

self._context_list = collections.OrderedDict()
mech_list = []
last_err = None
for mech in all_protocols:
if mech_types and mech.value not in mech_types:
continue

protocol = mech.name
try:
proxy_obj = GSSAPIProxy if protocol in gssapi_protocols else NTLMProxy
context = proxy_obj(protocol=protocol, **context_kwargs)
first_token = context.step() if self.usage == 'initiate' else None
except Exception as e:
last_err = e
log.debug("Failed to create gssapi context for SPNEGO protocol %s: %s", protocol, to_text(e))
continue

self._context_list[mech] = (context, first_token)
mech_list.append(mech.value)

if not mech_list:
> raise BadMechanismError(context_msg="Unable to negotiate common mechanism", base_error=last_err)
E spnego.exceptions.BadMechanismError: SpnegoError (1): unsupported hash type md4, Context: Unable to negotiate common mechanism

spnego/negotiate.py:374: BadMechanismError
_ test_get_credential_from_file[domain:Username:password-username-domain-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-True] _

name = 'md4', data = b'p\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

line = 'domain:Username:password', username = 'username', domain = 'domain'
lm_hash = 'E52CAC67419A9A224A3B108F3FA6CB6D'
nt_hash = '8846F7EAEE8FB117AD06BDD830B7586C', explicit = True
tmpdir = local('/tmp/guix-build-python-pyspnego-0.1.6.drv-0/pytest-of-nixbld/pytest-0/test_get_credential_from_file_0')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff512c2b0>

@pytest.mark.parametrize('line, username, domain, lm_hash, nt_hash, explicit', [
('domain:Username:password', 'username', 'domain',
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
('domain:Username:password\ndomain:other:pass2', 'Username', 'domain',
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', False),
('fake\ndomain:username:password', 'username', 'domain', # newline or garbage data in file won't fail
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
(':username@DOMAIN.COM:password', 'username@DOMAIN.COM', None,
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
('testuser:1000:278623D830DABE161104594F8C2EF12B:C3C6F4FD8A02A6C1268F1A8074B6E7E0:[U]:LCT-1589398321',
'testuser', None, '278623D830DABE161104594F8C2EF12B', 'C3C6F4FD8A02A6C1268F1A8074B6E7E0', True),
('TESTDOM\\testuser:1000:4588C64B89437893AAD3B435B51404EE:65202355FA01AEF26B89B19E00F52679:[U]:LCT-1589398321',
'testuser', 'testdom', '4588C64B89437893AAD3B435B51404EE', '65202355FA01AEF26B89B19E00F52679', True),
('TESTDOM\\testuser:1000:4588C64B89437893AAD3B435B51404EE:65202355FA01AEF26B89B19E00F52679:[U]:LCT-1589398321',
'testuser', 'testdom', '4588C64B89437893AAD3B435B51404EE', '65202355FA01AEF26B89B19E00F52679', True),
('testuser@TESTDOM.COM:1000:00000000000000000000000000000000:8ADB9B997580D69E69CAA2BBB68F4697:[U]:LCT-1589398321',
'testuser@testdom.com', None, '00000000000000000000000000000000', '8ADB9B997580D69E69CAA2BBB68F4697', True),
])
def test_get_credential_from_file(line, username, domain, lm_hash, nt_hash, explicit, tmpdir, monkeypatch):
tmp_creds = os.path.join(to_text(tmpdir), u'pÿspᴞӛgӫ TÈ$''.creds')
monkeypatch.setenv('NTLM_USER_FILE', to_native(tmp_creds))
with open(tmp_creds, mode='wb') as fd:
fd.write(to_bytes(line))

if explicit:
> actual = ntlm._NTLMCredential(domain, username)

tests/test_ntlm.py:100:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/ntlm.py:211: in __init__
self.domain, self.username, self.lm_hash, self.nt_hash = _get_credential(self._store, domain, username)
spnego/ntlm.py:164: in _get_credential
nt_hash = ntowfv1(line_password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_ test_get_credential_from_file[domain:Username:password\ndomain:other:pass2-Username-domain-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-False] _

name = 'md4', data = b'p\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

line = 'domain:Username:password\ndomain:other:pass2', username = 'Username'
domain = 'domain', lm_hash = 'E52CAC67419A9A224A3B108F3FA6CB6D'
nt_hash = '8846F7EAEE8FB117AD06BDD830B7586C', explicit = False
tmpdir = local('/tmp/guix-build-python-pyspnego-0.1.6.drv-0/pytest-of-nixbld/pytest-0/test_get_credential_from_file_1')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5149630>

@pytest.mark.parametrize('line, username, domain, lm_hash, nt_hash, explicit', [
('domain:Username:password', 'username', 'domain',
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
('domain:Username:password\ndomain:other:pass2', 'Username', 'domain',
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', False),
('fake\ndomain:username:password', 'username', 'domain', # newline or garbage data in file won't fail
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
(':username@DOMAIN.COM:password', 'username@DOMAIN.COM', None,
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
('testuser:1000:278623D830DABE161104594F8C2EF12B:C3C6F4FD8A02A6C1268F1A8074B6E7E0:[U]:LCT-1589398321',
'testuser', None, '278623D830DABE161104594F8C2EF12B', 'C3C6F4FD8A02A6C1268F1A8074B6E7E0', True),
('TESTDOM\\testuser:1000:4588C64B89437893AAD3B435B51404EE:65202355FA01AEF26B89B19E00F52679:[U]:LCT-1589398321',
'testuser', 'testdom', '4588C64B89437893AAD3B435B51404EE', '65202355FA01AEF26B89B19E00F52679', True),
('TESTDOM\\testuser:1000:4588C64B89437893AAD3B435B51404EE:65202355FA01AEF26B89B19E00F52679:[U]:LCT-1589398321',
'testuser', 'testdom', '4588C64B89437893AAD3B435B51404EE', '65202355FA01AEF26B89B19E00F52679', True),
('testuser@TESTDOM.COM:1000:00000000000000000000000000000000:8ADB9B997580D69E69CAA2BBB68F4697:[U]:LCT-1589398321',
'testuser@testdom.com', None, '00000000000000000000000000000000', '8ADB9B997580D69E69CAA2BBB68F4697', True),
])
def test_get_credential_from_file(line, username, domain, lm_hash, nt_hash, explicit, tmpdir, monkeypatch):
tmp_creds = os.path.join(to_text(tmpdir), u'pÿspᴞӛgӫ TÈ$''.creds')
monkeypatch.setenv('NTLM_USER_FILE', to_native(tmp_creds))
with open(tmp_creds, mode='wb') as fd:
fd.write(to_bytes(line))

if explicit:
actual = ntlm._NTLMCredential(domain, username)

else:
> actual = ntlm._NTLMCredential()

tests/test_ntlm.py:103:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/ntlm.py:211: in __init__
self.domain, self.username, self.lm_hash, self.nt_hash = _get_credential(self._store, domain, username)
spnego/ntlm.py:164: in _get_credential
nt_hash = ntowfv1(line_password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_ test_get_credential_from_file[fake\ndomain:username:password-username-domain-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-True] _

name = 'md4', data = b'p\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

line = 'fake\ndomain:username:password', username = 'username'
domain = 'domain', lm_hash = 'E52CAC67419A9A224A3B108F3FA6CB6D'
nt_hash = '8846F7EAEE8FB117AD06BDD830B7586C', explicit = True
tmpdir = local('/tmp/guix-build-python-pyspnego-0.1.6.drv-0/pytest-of-nixbld/pytest-0/test_get_credential_from_file_2')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff55cad10>

@pytest.mark.parametrize('line, username, domain, lm_hash, nt_hash, explicit', [
('domain:Username:password', 'username', 'domain',
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
('domain:Username:password\ndomain:other:pass2', 'Username', 'domain',
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', False),
('fake\ndomain:username:password', 'username', 'domain', # newline or garbage data in file won't fail
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
(':username@DOMAIN.COM:password', 'username@DOMAIN.COM', None,
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
('testuser:1000:278623D830DABE161104594F8C2EF12B:C3C6F4FD8A02A6C1268F1A8074B6E7E0:[U]:LCT-1589398321',
'testuser', None, '278623D830DABE161104594F8C2EF12B', 'C3C6F4FD8A02A6C1268F1A8074B6E7E0', True),
('TESTDOM\\testuser:1000:4588C64B89437893AAD3B435B51404EE:65202355FA01AEF26B89B19E00F52679:[U]:LCT-1589398321',
'testuser', 'testdom', '4588C64B89437893AAD3B435B51404EE', '65202355FA01AEF26B89B19E00F52679', True),
('TESTDOM\\testuser:1000:4588C64B89437893AAD3B435B51404EE:65202355FA01AEF26B89B19E00F52679:[U]:LCT-1589398321',
'testuser', 'testdom', '4588C64B89437893AAD3B435B51404EE', '65202355FA01AEF26B89B19E00F52679', True),
('testuser@TESTDOM.COM:1000:00000000000000000000000000000000:8ADB9B997580D69E69CAA2BBB68F4697:[U]:LCT-1589398321',
'testuser@testdom.com', None, '00000000000000000000000000000000', '8ADB9B997580D69E69CAA2BBB68F4697', True),
])
def test_get_credential_from_file(line, username, domain, lm_hash, nt_hash, explicit, tmpdir, monkeypatch):
tmp_creds = os.path.join(to_text(tmpdir), u'pÿspᴞӛgӫ TÈ$''.creds')
monkeypatch.setenv('NTLM_USER_FILE', to_native(tmp_creds))
with open(tmp_creds, mode='wb') as fd:
fd.write(to_bytes(line))

if explicit:
> actual = ntlm._NTLMCredential(domain, username)

tests/test_ntlm.py:100:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/ntlm.py:211: in __init__
self.domain, self.username, self.lm_hash, self.nt_hash = _get_credential(self._store, domain, username)
spnego/ntlm.py:164: in _get_credential
nt_hash = ntowfv1(line_password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_ test_get_credential_from_file[:username@DOMAIN.COM:password-username@DOMAIN.COM-None-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-True] _

name = 'md4', data = b'p\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

line = ':username@DOMAIN.COM:password', username = 'username@DOMAIN.COM'
domain = None, lm_hash = 'E52CAC67419A9A224A3B108F3FA6CB6D'
nt_hash = '8846F7EAEE8FB117AD06BDD830B7586C', explicit = True
tmpdir = local('/tmp/guix-build-python-pyspnego-0.1.6.drv-0/pytest-of-nixbld/pytest-0/test_get_credential_from_file_3')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff61cf820>

@pytest.mark.parametrize('line, username, domain, lm_hash, nt_hash, explicit', [
('domain:Username:password', 'username', 'domain',
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
('domain:Username:password\ndomain:other:pass2', 'Username', 'domain',
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', False),
('fake\ndomain:username:password', 'username', 'domain', # newline or garbage data in file won't fail
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
(':username@DOMAIN.COM:password', 'username@DOMAIN.COM', None,
'E52CAC67419A9A224A3B108F3FA6CB6D', '8846F7EAEE8FB117AD06BDD830B7586C', True),
('testuser:1000:278623D830DABE161104594F8C2EF12B:C3C6F4FD8A02A6C1268F1A8074B6E7E0:[U]:LCT-1589398321',
'testuser', None, '278623D830DABE161104594F8C2EF12B', 'C3C6F4FD8A02A6C1268F1A8074B6E7E0', True),
('TESTDOM\\testuser:1000:4588C64B89437893AAD3B435B51404EE:65202355FA01AEF26B89B19E00F52679:[U]:LCT-1589398321',
'testuser', 'testdom', '4588C64B89437893AAD3B435B51404EE', '65202355FA01AEF26B89B19E00F52679', True),
('TESTDOM\\testuser:1000:4588C64B89437893AAD3B435B51404EE:65202355FA01AEF26B89B19E00F52679:[U]:LCT-1589398321',
'testuser', 'testdom', '4588C64B89437893AAD3B435B51404EE', '65202355FA01AEF26B89B19E00F52679', True),
('testuser@TESTDOM.COM:1000:00000000000000000000000000000000:8ADB9B997580D69E69CAA2BBB68F4697:[U]:LCT-1589398321',
'testuser@testdom.com', None, '00000000000000000000000000000000', '8ADB9B997580D69E69CAA2BBB68F4697', True),
])
def test_get_credential_from_file(line, username, domain, lm_hash, nt_hash, explicit, tmpdir, monkeypatch):
tmp_creds = os.path.join(to_text(tmpdir), u'pÿspᴞӛgӫ TÈ$''.creds')
monkeypatch.setenv('NTLM_USER_FILE', to_native(tmp_creds))
with open(tmp_creds, mode='wb') as fd:
fd.write(to_bytes(line))

if explicit:
> actual = ntlm._NTLMCredential(domain, username)

tests/test_ntlm.py:100:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/ntlm.py:211: in __init__
self.domain, self.username, self.lm_hash, self.nt_hash = _get_credential(self._store, domain, username)
spnego/ntlm.py:164: in _get_credential
nt_hash = ntowfv1(line_password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
__________________________ test_ntlm_wrap_qop_invalid __________________________

name = 'md4', data = b'p\x00a\x00s\x00s\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_ntlm_wrap_qop_invalid():
> n = ntlm.NTLMProxy('user', 'pass')

tests/test_ntlm.py:160:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
________________________ test_ntlm_wrap_no_sign_or_seal ________________________

name = 'md4', data = b'p\x00a\x00s\x00s\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_ntlm_wrap_no_sign_or_seal():
> n = ntlm.NTLMProxy('user', 'pass')

tests/test_ntlm.py:166:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
___________________________ test_ntlm_wrap_iov_fail ____________________________

name = 'md4', data = b'p\x00a\x00s\x00s\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_ntlm_wrap_iov_fail():
> n = ntlm.NTLMProxy('user', 'pass')

tests/test_ntlm.py:172:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
__________________________ test_ntlm_unwrap_iov_fail ___________________________

name = 'md4', data = b'p\x00a\x00s\x00s\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_ntlm_unwrap_iov_fail():
> n = ntlm.NTLMProxy('user', 'pass')

tests/test_ntlm.py:178:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
__________________________ test_ntlm_sign_qop_invalid __________________________

name = 'md4', data = b'p\x00a\x00s\x00s\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_ntlm_sign_qop_invalid():
> n = ntlm.NTLMProxy('user', 'pass')

tests/test_ntlm.py:184:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_________________________ test_ntlm_no_encoding_flags __________________________

name = 'md4', data = b'p\x00a\x00s\x00s\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_ntlm_no_encoding_flags():
negotiate = memoryview(bytearray(get_data('ntlm_negotiate')))
negotiate[12:16] = b"\x00\x00\x00\x00"

> n = ntlm.NTLMProxy('user', 'pass')

tests/test_ntlm.py:193:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
___________ test_ntlm_bad_bindings[NegotiateOptions.use_ntlm-False] ____________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

client_opt = <NegotiateOptions.use_ntlm: 8>, present = False
ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')

@pytest.mark.parametrize('client_opt, present', [
(spnego.NegotiateOptions.use_ntlm, False),
(spnego.NegotiateOptions.use_ntlm, True),
(spnego.NegotiateOptions.use_gssapi, True),
(spnego.NegotiateOptions.use_sspi, True),
])
def test_ntlm_bad_bindings(client_opt, present, ntlm_cred):
if client_opt & spnego.NegotiateOptions.use_gssapi:
if 'ntlm' not in spnego.gss.GSSAPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through GSSAPI')

elif client_opt & spnego.NegotiateOptions.use_sspi:
if 'ntlm' not in spnego.sspi.SSPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through SSPI')

initiator_cbt = None
if present:
initiator_cbt = spnego.channel_bindings.GssChannelBindings(application_data=b"tls-host-data:bad")

> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(), options=client_opt, protocol='ntlm',
channel_bindings=initiator_cbt)

tests/test_ntlm.py:218:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
____________ test_ntlm_bad_bindings[NegotiateOptions.use_ntlm-True] ____________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

client_opt = <NegotiateOptions.use_ntlm: 8>, present = True
ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')

@pytest.mark.parametrize('client_opt, present', [
(spnego.NegotiateOptions.use_ntlm, False),
(spnego.NegotiateOptions.use_ntlm, True),
(spnego.NegotiateOptions.use_gssapi, True),
(spnego.NegotiateOptions.use_sspi, True),
])
def test_ntlm_bad_bindings(client_opt, present, ntlm_cred):
if client_opt & spnego.NegotiateOptions.use_gssapi:
if 'ntlm' not in spnego.gss.GSSAPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through GSSAPI')

elif client_opt & spnego.NegotiateOptions.use_sspi:
if 'ntlm' not in spnego.sspi.SSPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through SSPI')

initiator_cbt = None
if present:
initiator_cbt = spnego.channel_bindings.GssChannelBindings(application_data=b"tls-host-data:bad")

> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(), options=client_opt, protocol='ntlm',
channel_bindings=initiator_cbt)

tests/test_ntlm.py:218:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
______________________________ test_ntlm_bad_mic _______________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')

def test_ntlm_bad_mic(ntlm_cred):
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(),
options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:238:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
________________ test_ntlm_workstation_override[None-LOCALHOST] ________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

env_var = None, expected = 'LOCALHOST'
ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5bce2f0>

@pytest.mark.parametrize('env_var, expected', [
(None, to_text(socket.gethostname()).upper()),
('', None),
('custom', 'custom'),
])
def test_ntlm_workstation_override(env_var, expected, ntlm_cred, monkeypatch):
if env_var is not None:
monkeypatch.setenv('NETBIOS_COMPUTER_NAME', env_var)

> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(),
options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:258:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
____________________ test_ntlm_workstation_override[-None] _____________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

env_var = '', expected = None, ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5b24250>

@pytest.mark.parametrize('env_var, expected', [
(None, to_text(socket.gethostname()).upper()),
('', None),
('custom', 'custom'),
])
def test_ntlm_workstation_override(env_var, expected, ntlm_cred, monkeypatch):
if env_var is not None:
monkeypatch.setenv('NETBIOS_COMPUTER_NAME', env_var)

> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(),
options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:258:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
________________ test_ntlm_workstation_override[custom-custom] _________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

env_var = 'custom', expected = 'custom'
ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5c1dfc0>

@pytest.mark.parametrize('env_var, expected', [
(None, to_text(socket.gethostname()).upper()),
('', None),
('custom', 'custom'),
])
def test_ntlm_workstation_override(env_var, expected, ntlm_cred, monkeypatch):
if env_var is not None:
monkeypatch.setenv('NETBIOS_COMPUTER_NAME', env_var)

> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(),
options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:258:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
________________________ test_ntlm_custom_time[True-0] _________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

include_time = True, expected = 0, ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
mocker = <pytest_mock.plugin.MockerFixture object at 0x7ffff61cc460>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff61cdb70>

@pytest.mark.parametrize('include_time, expected', [
# If the challenge didn't contain the time then the client should generate it's own otherwise it uses the challenge
# time.
(True, 0),
(False, 1),
])
def test_ntlm_custom_time(include_time, expected, ntlm_cred, mocker, monkeypatch):
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(),
options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:292:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
________________________ test_ntlm_custom_time[False-1] ________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

include_time = False, expected = 1, ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
mocker = <pytest_mock.plugin.MockerFixture object at 0x7ffff5cbc580>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5cbd1e0>

@pytest.mark.parametrize('include_time, expected', [
# If the challenge didn't contain the time then the client should generate it's own otherwise it uses the challenge
# time.
(True, 0),
(False, 1),
])
def test_ntlm_custom_time(include_time, expected, ntlm_cred, mocker, monkeypatch):
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(),
options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:292:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
____________________________ test_ntlm_no_key_exch _____________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')

def test_ntlm_no_key_exch(ntlm_cred):
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(),
options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:324:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_____________________________ test_ntlm_lm_request _____________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5afa710>

def test_ntlm_lm_request(ntlm_cred, monkeypatch):
monkeypatch.setenv('LM_COMPAT_LEVEL', '0')
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(),
options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:367:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
___________________________ test_ntlm_no_lm_allowed ____________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5404580>

def test_ntlm_no_lm_allowed(ntlm_cred, monkeypatch):
monkeypatch.setenv('LM_COMPAT_LEVEL', '0')
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(),
options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:382:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
___________________________ test_ntlm_nt_v1_request ____________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff5cc7790>

def test_ntlm_nt_v1_request(ntlm_cred, monkeypatch):
monkeypatch.setenv('LM_COMPAT_LEVEL', '0')
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(),
options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:397:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
__________________________ test_ntlm_no_nt_v1_allowed __________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffff515f550>

def test_ntlm_no_nt_v1_allowed(ntlm_cred, monkeypatch):
monkeypatch.setenv('LM_COMPAT_LEVEL', '0')
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(),
options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:413:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
____________ test_ntlm_invalid_password[NegotiateOptions.use_ntlm] _____________

name = 'md4', data = b'I\x00n\x00v\x00a\x00l\x00i\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

client_opt = <NegotiateOptions.use_ntlm: 8>
ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')

@pytest.mark.parametrize('client_opt', [
spnego.NegotiateOptions.use_ntlm,
spnego.NegotiateOptions.use_gssapi,
spnego.NegotiateOptions.use_sspi,
])
def test_ntlm_invalid_password(client_opt, ntlm_cred):
if client_opt & spnego.NegotiateOptions.use_gssapi:
if 'ntlm' not in spnego.gss.GSSAPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through GSSAPI')

elif client_opt & spnego.NegotiateOptions.use_sspi:
if 'ntlm' not in spnego.sspi.SSPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through SSPI')

> c = spnego.client(ntlm_cred[0], u"Invalid", hostname=socket.gethostname(), options=client_opt, protocol='ntlm')

tests/test_ntlm.py:439:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_______________ test_ntlm_verify_fail[NegotiateOptions.use_ntlm] _______________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

client_opt = <NegotiateOptions.use_ntlm: 8>
ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')

@pytest.mark.parametrize('client_opt', [
spnego.NegotiateOptions.use_ntlm,
spnego.NegotiateOptions.use_gssapi,
spnego.NegotiateOptions.use_sspi,
])
def test_ntlm_verify_fail(client_opt, ntlm_cred):
if client_opt & spnego.NegotiateOptions.use_gssapi:
if 'ntlm' not in spnego.gss.GSSAPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through GSSAPI')

elif client_opt & spnego.NegotiateOptions.use_sspi:
if 'ntlm' not in spnego.sspi.SSPIProxy.available_protocols():
pytest.skip('Test requires NTLM to be available through SSPI')

> c = spnego.client(ntlm_cred[0], ntlm_cred[1], hostname=socket.gethostname(), options=client_opt, protocol='ntlm')

tests/test_ntlm.py:462:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
___________________________ test_ntlm_anon_response ____________________________

name = 'md4', data = b'P\x00\xd3\x04$\x00s\x00w\x000\x00r\x00\x08\x03d\x00'
kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

ntlm_cred = ('Dȫm̈Ąiᴞ\\ÜseӜ', 'Pӓ$sw0r̈d')

def test_ntlm_anon_response(ntlm_cred):
> c = spnego.client(ntlm_cred[0], ntlm_cred[1], options=spnego.NegotiateOptions.use_ntlm, protocol='ntlm')

tests/test_ntlm.py:475:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/auth.py:95: in client
return _new_context(username, password, hostname, service, channel_bindings, context_req, protocol, options,
spnego/auth.py:73: in _new_context
return proxy(username, password, hostname, service, channel_bindings, context_req, usage, proto, options)
spnego/ntlm.py:256: in __init__
self._credential = _NTLMCredential(domain=domain, username=user, password=self.password)
spnego/ntlm.py:206: in __init__
self.nt_hash = ntowfv1(password)
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_________________________________ test_ntowfv1 _________________________________

name = 'md4', data = b'P\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_ntowfv1():
# https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/0fb94d19-16d2-481d-9121-112defbaac0b
> actual = crypto.ntowfv1(TEST_PASSWD)

tests/_ntlm_raw/test_crypto.py:63:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_________________ test_compute_response_v1_no_session_security _________________

name = 'md4', data = b'P\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_compute_response_v1_no_session_security():
actual_nt, actual_lm, actual_kek = crypto.compute_response_v1(
> TEST_NTLMV1_FLAGS, crypto.ntowfv1(TEST_PASSWD), crypto.lmowfv1(TEST_PASSWD), TEST_SERVER_CHALLENGE,
TEST_CLIENT_CHALLENGE)

tests/_ntlm_raw/test_crypto.py:80:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
___________ test_compute_response_v1_no_session_security_non_nt_key ____________

name = 'md4', data = b'P\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_compute_response_v1_no_session_security_non_nt_key():
flags = TEST_NTLMV1_FLAGS | NegotiateFlags.non_nt_session_key
actual_nt, actual_lm, actual_kek = crypto.compute_response_v1(
> flags, crypto.ntowfv1(TEST_PASSWD), crypto.lmowfv1(TEST_PASSWD), TEST_SERVER_CHALLENGE, TEST_CLIENT_CHALLENGE,
no_lm_response=False)

tests/_ntlm_raw/test_crypto.py:101:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_____________ test_compute_response_v1_no_session_security_lm_key ______________

name = 'md4', data = b'P\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_compute_response_v1_no_session_security_lm_key():
flags = TEST_NTLMV1_FLAGS | NegotiateFlags.lm_key
actual_nt, actual_lm, actual_kek = crypto.compute_response_v1(
> flags, crypto.ntowfv1(TEST_PASSWD), crypto.lmowfv1(TEST_PASSWD), TEST_SERVER_CHALLENGE, TEST_CLIENT_CHALLENGE,
no_lm_response=False)

tests/_ntlm_raw/test_crypto.py:122:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
__________________ test_compute_response_v1_session_security ___________________

name = 'md4', data = b'P\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_compute_response_v1_session_security():
actual_nt, actual_lm, actual_kek = crypto.compute_response_v1(
> TEST_NTLMV1_CLIENT_CHALLENGE_FLAGS, crypto.ntowfv1(TEST_PASSWD), crypto.lmowfv1(TEST_PASSWD),
TEST_SERVER_CHALLENGE, TEST_CLIENT_CHALLENGE)

tests/_ntlm_raw/test_crypto.py:141:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
_________________________________ test_ntowfv2 _________________________________

name = 'md4', data = b'P\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_ntowfv2():
> actual = crypto.ntowfv2(TEST_USER, crypto.ntowfv1(TEST_PASSWD), TEST_USER_DOM)

tests/_ntlm_raw/test_crypto.py:156:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
___________________________ test_compute_response_v2 ___________________________

name = 'md4', data = b'P\x00a\x00s\x00s\x00w\x00o\x00r\x00d\x00', kwargs = {}

def __hash_new(name, data=b'', **kwargs):
"""new(name, data=b'') - Return a new hashing object using the named algorithm;
optionally initialized with data (which must be a bytes-like object).
"""
if name in __block_openssl_constructor:
# Prefer our builtin blake2 implementation.
return __get_builtin_constructor(name)(data, **kwargs)
try:
> return _hashlib.new(name, data, **kwargs)
E ValueError: [digital envelope routines] unsupported

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:160: ValueError

During handling of the above exception, another exception occurred:

def test_compute_response_v2():
# https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/946f54bd-76b5-4b18-ace8-6e8c992d5847
time = FileTime.unpack(TEST_TIME)
av_pairs = TargetInfo.unpack(b"\x02\x00\x0C\x00\x44\x00\x6F\x00\x6D\x00\x61\x00\x69\x00\x6E\x00"
b"\x01\x00\x0C\x00\x53\x00\x65\x00\x72\x00\x76\x00\x65\x00\x72\x00"
b"\x00\x00\x00\x00")

actual_nt, actual_lm, actual_kek = crypto.compute_response_v2(
> crypto.ntowfv2(TEST_USER, crypto.ntowfv1(TEST_PASSWD), TEST_USER_DOM), TEST_SERVER_CHALLENGE,
TEST_CLIENT_CHALLENGE, time, av_pairs)

tests/_ntlm_raw/test_crypto.py:170:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
spnego/_ntlm_raw/crypto.py:378: in ntowfv1
return md4(to_bytes(password, encoding='utf-16-le'))
spnego/_ntlm_raw/crypto.py:349: in md4
return hashlib.new('md4', m).digest()
/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:166: in __hash_new
return __get_builtin_constructor(name)(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

name = 'md4'

def __get_builtin_constructor(name):
cache = __builtin_constructor_cache
constructor = cache.get(name)
if constructor is not None:
return constructor
try:
if name in {'SHA1', 'sha1'}:
import _sha1
cache['SHA1'] = cache['sha1'] = _sha1.sha1
elif name in {'MD5', 'md5'}:
import _md5
cache['MD5'] = cache['md5'] = _md5.md5
elif name in {'SHA256', 'sha256', 'SHA224', 'sha224'}:
import _sha256
cache['SHA224'] = cache['sha224'] = _sha256.sha224
cache['SHA256'] = cache['sha256'] = _sha256.sha256
elif name in {'SHA512', 'sha512', 'SHA384', 'sha384'}:
import _sha512
cache['SHA384'] = cache['sha384'] = _sha512.sha384
cache['SHA512'] = cache['sha512'] = _sha512.sha512
elif name in {'blake2b', 'blake2s'}:
import _blake2
cache['blake2b'] = _blake2.blake2b
cache['blake2s'] = _blake2.blake2s
elif name in {'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512'}:
import _sha3
cache['sha3_224'] = _sha3.sha3_224
cache['sha3_256'] = _sha3.sha3_256
cache['sha3_384'] = _sha3.sha3_384
cache['sha3_512'] = _sha3.sha3_512
elif name in {'shake_128', 'shake_256'}:
import _sha3
cache['shake_128'] = _sha3.shake_128
cache['shake_256'] = _sha3.shake_256
except ImportError:
pass # no extension module, this hash is unsupported.

constructor = cache.get(name)
if constructor is not None:
return constructor

> raise ValueError('unsupported hash type ' + name)
E ValueError: unsupported hash type md4

/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/hashlib.py:123: ValueError
=========================== short test summary info ============================
FAILED tests/test_auth.py::test_negotiate_through_python_ntlm[NegotiateOptions.use_negotiate-NegotiateOptions.use_negotiate]
FAILED tests/test_auth.py::test_negotiate_with_raw_ntlm - ValueError: unsuppo...
FAILED tests/test_auth.py::test_ntlm_auth[None] - ValueError: unsupported has...
FAILED tests/test_auth.py::test_ntlm_auth[0] - ValueError: unsupported hash t...
FAILED tests/test_auth.py::test_ntlm_auth[1] - ValueError: unsupported hash t...
FAILED tests/test_auth.py::test_ntlm_auth[2] - ValueError: unsupported hash t...
FAILED tests/test_auth.py::test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_ntlm-NegotiateOptions.use_ntlm]
FAILED tests/test_main.py::test_ntlm_authenticate_with_secret - ValueError: u...
FAILED tests/test_main.py::test_nltm_session_key_no_sign_seal - ValueError: u...
FAILED tests/test_negotiate.py::test_token_rejected - spnego.exceptions.BadMe...
FAILED tests/test_negotiate.py::test_token_acceptor_first - spnego.exceptions...
FAILED tests/test_ntlm.py::test_get_credential_from_file[domain:Username:password-username-domain-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-True]
FAILED tests/test_ntlm.py::test_get_credential_from_file[domain:Username:password\ndomain:other:pass2-Username-domain-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-False]
FAILED tests/test_ntlm.py::test_get_credential_from_file[fake\ndomain:username:password-username-domain-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-True]
FAILED tests/test_ntlm.py::test_get_credential_from_file[:username@DOMAIN.COM:password-username@DOMAIN.COM-None-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-True]
FAILED tests/test_ntlm.py::test_ntlm_wrap_qop_invalid - ValueError: unsupport...
FAILED tests/test_ntlm.py::test_ntlm_wrap_no_sign_or_seal - ValueError: unsup...
FAILED tests/test_ntlm.py::test_ntlm_wrap_iov_fail - ValueError: unsupported ...
FAILED tests/test_ntlm.py::test_ntlm_unwrap_iov_fail - ValueError: unsupporte...
FAILED tests/test_ntlm.py::test_ntlm_sign_qop_invalid - ValueError: unsupport...
FAILED tests/test_ntlm.py::test_ntlm_no_encoding_flags - ValueError: unsuppor...
FAILED tests/test_ntlm.py::test_ntlm_bad_bindings[NegotiateOptions.use_ntlm-False]
FAILED tests/test_ntlm.py::test_ntlm_bad_bindings[NegotiateOptions.use_ntlm-True]
FAILED tests/test_ntlm.py::test_ntlm_bad_mic - ValueError: unsupported hash t...
FAILED tests/test_ntlm.py::test_ntlm_workstation_override[None-LOCALHOST] - V...
FAILED tests/test_ntlm.py::test_ntlm_workstation_override[-None] - ValueError...
FAILED tests/test_ntlm.py::test_ntlm_workstation_override[custom-custom] - Va...
FAILED tests/test_ntlm.py::test_ntlm_custom_time[True-0] - ValueError: unsupp...
FAILED tests/test_ntlm.py::test_ntlm_custom_time[False-1] - ValueError: unsup...
FAILED tests/test_ntlm.py::test_ntlm_no_key_exch - ValueError: unsupported ha...
FAILED tests/test_ntlm.py::test_ntlm_lm_request - ValueError: unsupported has...
FAILED tests/test_ntlm.py::test_ntlm_no_lm_allowed - ValueError: unsupported ...
FAILED tests/test_ntlm.py::test_ntlm_nt_v1_request - ValueError: unsupported ...
FAILED tests/test_ntlm.py::test_ntlm_no_nt_v1_allowed - ValueError: unsupport...
FAILED tests/test_ntlm.py::test_ntlm_invalid_password[NegotiateOptions.use_ntlm]
FAILED tests/test_ntlm.py::test_ntlm_verify_fail[NegotiateOptions.use_ntlm]
FAILED tests/test_ntlm.py::test_ntlm_anon_response - ValueError: unsupported ...
FAILED tests/_ntlm_raw/test_crypto.py::test_ntowfv1 - ValueError: unsupported...
FAILED tests/_ntlm_raw/test_crypto.py::test_compute_response_v1_no_session_security
FAILED tests/_ntlm_raw/test_crypto.py::test_compute_response_v1_no_session_security_non_nt_key
FAILED tests/_ntlm_raw/test_crypto.py::test_compute_response_v1_no_session_security_lm_key
FAILED tests/_ntlm_raw/test_crypto.py::test_compute_response_v1_session_security
FAILED tests/_ntlm_raw/test_crypto.py::test_ntowfv2 - ValueError: unsupported...
FAILED tests/_ntlm_raw/test_crypto.py::test_compute_response_v2 - ValueError:...
================== 44 failed, 392 passed, 80 skipped in 4.48s ==================
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "pytest" arguments: () exit-status: 1 term-signal: #f stop-signal: #f>
phase `check' failed after 4.9 seconds
command "pytest" failed with status 1
builder for `/gnu/store/rsw8i2ypn7xyhl2g3lvdcjvii4pja60v-python-pyspnego-0.1.6.drv' failed with exit code 1
build of /gnu/store/rsw8i2ypn7xyhl2g3lvdcjvii4pja60v-python-pyspnego-0.1.6.drv failed
View build log at '/var/log/guix/drvs/rs/w8i2ypn7xyhl2g3lvdcjvii4pja60v-python-pyspnego-0.1.6.drv.gz'.
cannot build derivation `/gnu/store/fzyajbxnmhcmy69ww29ibqgks15gsmr5-python-dirsearch-0.4.3.post1.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/fzyajbxnmhcmy69ww29ibqgks15gsmr5-python-dirsearch-0.4.3.post1.drv' failed

~/dotfiles [main] λ cd dotfiles/cd dotfiles/

~/dotfiles [main] λ