-
Notifications
You must be signed in to change notification settings - Fork 49
Hopefully fix test issues around high-level mechanism support and indicate/inquire mechs. #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Validate that sasl_name is nonempty before assigning it to base; this prevents the situation where the sasl_name query succeeds, but the contents of the name are empty. Signed-off-by: Alexander Scheel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments inline, mainly around comments
gssapi/tests/test_raw.py
Outdated
attrs = set([last_attr]) | ||
if mech_attr not in attrs_dict: | ||
attrs_dict[mech_attr] = 0 | ||
attrs_dict[mech_attr] += 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the comment above needs to reflect the commit message comments to explain what's going on here.
Also, don't you need to ensure that last_mech actually has the attr -- maybe we should record the mechs that have each attr?
Also, please give a better PR title ;-) |
In particular, sasl names and descriptions can be empty for some mechanisms (NTLM in particular); do not fail the test suite because they are empty. Signed-off-by: Alexander Scheel <[email protected]>
While this can still fail, less likely to fail than querying on the last-seen attr. In particular, some mechanisms will not respond to an inquiry for that attr despite claiming to have it. Signed-off-by: Alexander Scheel <[email protected]>
Looks reasonable to me. @frozencemetery can you take a gander, then we can merge? |
Fixes some issues found by the NTLM mechs:
Hopefully these behave a little better. :)