Skip to content

ignore_realm not available with older Heimdal #66

@UnitedMarsupials

Description

@UnitedMarsupials

The older versions of Heimdal, such as that in FreeBSD base OS, do not declare the KRB5_PRINCIPAL_PARSE_IGNORE_REALM at all.

Currently, the security/py-krb5 port patches the two _principal.py[ix] files to remove any mention of the identifier.

This allows the code to compile, but the tests involving the ignore_realm fail. They, probably, should not -- the test suit should be able to detect the older Hemdal implementation and skip these tests instead of failing them.

Also: how would I run the bundled self-tests non-interactively? When I invoke python3.11 -m pytest -v --junitxml junit/test-results.xml < /dev/null I still get prompted for "Master key":

========================================================= test session starts =========================================================
platform freebsd14 -- Python 3.11.11, pytest-8.1.1, pluggy-1.5.0 -- /opt/bin/python3.11
cachedir: .pytest_cache
rootdir: /envy/ports/security/py-krb5/work-py311/krb5-0.7.1
configfile: pyproject.toml
testpaths: tests
plugins: anyio-4.8.0
collected 94 items                                                                                                                    

tests/test_ccache.py::test_cc_default Master key: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions