{"id":36487254,"url":"https://github.com/xtfly/gokrb","last_synced_at":"2026-01-12T01:52:32.228Z","repository":{"id":57539788,"uuid":"90156768","full_name":"xtfly/gokrb","owner":"xtfly","description":"A go wrapper for Kerberos","archived":false,"fork":false,"pushed_at":"2017-05-12T13:23:57.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T16:39:40.842Z","etag":null,"topics":["golang","gssapi","kerberos"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xtfly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-03T14:14:45.000Z","updated_at":"2017-05-03T14:29:48.000Z","dependencies_parsed_at":"2022-08-28T18:01:06.808Z","dependency_job_id":null,"html_url":"https://github.com/xtfly/gokrb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xtfly/gokrb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtfly%2Fgokrb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtfly%2Fgokrb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtfly%2Fgokrb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtfly%2Fgokrb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtfly","download_url":"https://codeload.github.com/xtfly/gokrb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtfly%2Fgokrb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","gssapi","kerberos"],"created_at":"2026-01-12T01:52:32.163Z","updated_at":"2026-01-12T01:52:32.219Z","avatar_url":"https://github.com/xtfly.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoKrb\n\nA go wrapper for Kerberos and SASL2 libs.\n\nCurrently the implemention:  \n- Client side APIs that use SASL APIs for authentication to service that implement GSSAPI using Kerberos 5.\n\nNote: It is developing...\n\n# Usage\n\nNote: You need to install the krb5-libs, sasl2-libs, gcc into your OS,\nlike this in Archlinux:\n\n    $ sudo pacman -S krb5\n    $ sudo pacman -S gcc\n\nInstall this package using go tools:\n\n    $ go get github.com/xtfly/gokrb\n\nTo run you must have a valid Kerberos setup on the run machine\nand you should ensure that you have valid Kerberos tickets:\n\n    $ export KRB5_CONFIG=/path/to/krb5.conf\n    $ kinit -kt \"/path/to/your.keytab\" \"kafka/hadoop.com@HADOOP.COM\"\n    $ klist\n\n\nExample Kerberos client authentication to service:\n\n    package main\n\n    import (\n        \"github.com/xtfly/gokrb/gssapi\"\n    )\n\n    func main() {\n        var conn io.ReadWriter\n        //...\n        // create a connection to service\n        err := gssapi.GssAuth(conn, \"kafka\", \"hadoop.com\")\n        if err != nil {\n            // do something ...\n        }\n    }\n\nNote: if the krb5-libs/sasl2-libs are not install in /usr/lib64 and /usr/include, you need set follow environment variables:\n\n    $ export CGO_CFLAG=-I/path/to/include\n    $ export CGO_LDFLAG=-L/path/to/lib\n    $ export LD_LIBRARY_PATH=/path/to/lib\n\n# License\n\nGorkb is released under the MIT License. See the LICENSE file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtfly%2Fgokrb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtfly%2Fgokrb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtfly%2Fgokrb/lists"}