Skip to content

Set up as go module, plus minor cleanup#1

Open
lack wants to merge 2 commits intoOne-com:masterfrom
lack:upstream
Open

Set up as go module, plus minor cleanup#1
lack wants to merge 2 commits intoOne-com:masterfrom
lack:upstream

Conversation

@lack
Copy link

@lack lack commented Jul 30, 2022

  • Initialize go module
  • Gofmt and warnings

lack added 2 commits July 30, 2022 07:53
This sets up gokrb5 as a modern go module.

Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
Running gofmt cleaned up a lot of minor whitespace nits.  Plus there
were a few instances of format strings out of place.

Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
@lack
Copy link
Author

lack commented Jul 30, 2022

@peter-mogensen I have no idea if you're still using this library, but I found it useful!

This PR modernizes it a bit so it can be included via go modules.

@peter-mogensen
Copy link

Hi Jim,

I'm no longer working at One.com, but I'm happy you found it useful. A lot of filling-in-the-blanks is needed for this to be a complete Kerberos library implementation. Only the most basic needed to do an AP-REQ authentication was implemented, but I believe the template is still the way to go if one wants to wrap around MIT libkrb5.

/Peter

@lack
Copy link
Author

lack commented Aug 1, 2022

@peter-mogensen Thanks!

Yes, I have further changes in a fork of mine to add enough smarts to mimic the 'klist' tool to find a principal's TGT and check if it's expired (and because it uses the MIT libraries and they support KCM, it works great with a modern Linux system and sssd_kcm).

I may abandon it if I can find a clean dbus-only way of getting the same info, but I think it's a pretty nice start!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants