-
Notifications
You must be signed in to change notification settings - Fork 23
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
Kerberos incompatibilities #14
Comments
Hello @grawity, thanks for the raising the issue.
|
One thing that I noticed is that you didn't specify the domain name |
Right, it gets a bit complex with macOS, and I guess it should be the job of go-krb5 to determine the actual default (as it already supports reading /etc/krb5.conf anyway). Though Unfortunately go-krb5 seems a bit unmaintained these days. For Windows there is no default path, and not even any tools to create such a path – programs are meant to use SSPI (e.g.
Yeah, that's exactly the 'incompatibility' problem I was talking about – it has to parse the type prefix because So if KRB5CCNAME is used then the code should at least accept and trim the
It's OpenLDAP + MIT Kerberos, but I see the program doesn't even start talking to the LDAP server.
It might be (will test once I get back home). The error message implied that it already knows the realm, so it didn't occur to me that |
Hello @grawity, Did it work for you with I'm still thinking about the possibilities here for the next release, but I'll make sure to include some of your suggestions (you made solid points). |
In standard Kerberos implementations (e.g. MIT Kerberos, Heimdal Kerberos) KRB5CCNAME generally defaults to
FILE:/tmp/krb5cc_<uid>
(although a different default may be set via krb5.conf). Currently godap assumes an empty string by default.In standard Kerberos implementations KRB5CCNAME is typically in the form of
type:value
, with an implied default ofFILE:
for the type. That is, whileKRB5CCNAME="/tmp/cache"
is valid, so isKRB5CCNAME="FILE:/tmp/cache"
, and most software (such as sshd or pam_krb5) uses the latter format, which godap currently does not accept.The KDC is not looked up via SRV records, but specifying it manually doesn't seem to work either:
The text was updated successfully, but these errors were encountered: