Skip to content
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

negotiateContext: Use current key as fallback if Subkey is not sent #86

Merged
merged 1 commit into from Oct 29, 2022

Conversation

ChristophKaser
Copy link

I tried to use bodgit/tsig (or rather kubernetes-sigs/external-dns, which uses miekg/dns, which uses bodgit/tsig) to perform dynamic DNS updates on a Samba Domain Controller (with a bind DNS backend).

This failed with "unknown or unsupported EType: 0", because the EncAPRepPart of the TKEY reply does not contain a Subkey.

According to https://www.rfc-editor.org/rfc/rfc4120#section-5.5.2 subkey is an optional field. If it is not sent, the session key from the ticket should be used.

With this change, updating DNS records in samba works.

@bodgit bodgit self-assigned this Oct 28, 2022
@bodgit bodgit added the bug Something isn't working label Oct 28, 2022
@bodgit
Copy link
Owner

bodgit commented Oct 28, 2022

LGTM, I didn't spot this in the RFC although they are a bit heavy reading.

I want to update the versions of Go used in the tests so it's 1.19 and 1.18 and then I'll cut a new release with this fix in, which should hopefully be picked up by the external-dns project automatically.

@bodgit bodgit merged commit a0049ef into bodgit:master Oct 29, 2022
@bodgit
Copy link
Owner

bodgit commented Oct 29, 2022

v1.2.1 is released with your fix, thanks again for your contribution.

@ChristophKaser
Copy link
Author

ChristophKaser commented Oct 30, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants