Closed mchugh19 closed 4 years ago
@frozencemetery This bug is actually in Python GSSAPI: locale
doesn't have an LC_MESSAGES
constant on Windows. (similar issue)
This code probably needs to be changed to something like:
try:
msg_encoding = locale.getlocale(locale.LC_MESSAGES)[1] or 'UTF-8'
except AttributeError: # Windows doesn't have LC_MESSAGES
msg_encoding = 'UTF-8'
@mchugh19
Other than the above, this library should work but I haven't finished testing or cut an official release yet and the API should be considered unstable until I do.
Also, this error occurred while trying to render a GSSError so you may have run into an incompatibility between Windows SSPI and MIT Kerberos. If this is the case, you may have to kinit
directly using MIT Kerberos instead of relying on the Windows AD system. More information in this previous comment.
@aiudirog Do you mind opening a PR for that, or should I?
@frozencemetery Just opened a PR. Should be a simple one.
@frozencemetery Do you think we could cut a bug fix release so the wheels can be built?
@aiudirog That's not entirely straightforward. The Windows releases broke like this and there's a problem with the Linux pipeline too that I don't understand since I was pretty sure I dry-ran all this...
Oh, those are some interesting new errors.... I honestly have no idea why both releases failed but the PR built it just fine. I compared the logs and everything seems to execute exactly the same up until that point where it can't find the extern functions.
I think I fixed it so there should be updated wheels for 1.6.9 now. (We need to port away from should_be; see https://github.com/pythongssapi/python-gssapi/issues/215 )
Interesting, I don't immediately see how your changes fixed the Windows builds, but as long as it works.
@mchugh19 Can you upgrade gssapi to v1.6.9 and test it out?
@aiudirog Looks like 1.6.9 corrected the stacktrace.
But even when I use MIT Kerbereos' kinit, I'm still getting authenticated denied, but that's likely on my end.
Thanks!
Hi all. Is this is working implementation?
I have a windows host running python 3.6. I've have a kerberos ticket through the usual windows AD mechanisms, but have also installed the MIT msi from https://web.mit.edu/KERBEROS/dist/
I can see my personal and computer's tickets with klist, but a quick test throws an error: