{"id":20282195,"url":"https://github.com/ubccr/goipa","last_synced_at":"2025-04-09T07:07:00.861Z","repository":{"id":31923281,"uuid":"35492618","full_name":"ubccr/goipa","owner":"ubccr","description":"FreeIPA client library in Go","archived":false,"fork":false,"pushed_at":"2024-12-12T00:05:26.000Z","size":82,"stargazers_count":38,"open_issues_count":8,"forks_count":38,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-02T04:08:31.293Z","etag":null,"topics":["api","freeipa","go","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ubccr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-12T14:20:44.000Z","updated_at":"2024-10-10T14:41:13.000Z","dependencies_parsed_at":"2024-06-18T18:34:36.357Z","dependency_job_id":"c9bbdaa7-bf7b-43b1-a560-1190963870e6","html_url":"https://github.com/ubccr/goipa","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubccr%2Fgoipa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubccr%2Fgoipa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubccr%2Fgoipa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubccr%2Fgoipa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubccr","download_url":"https://codeload.github.com/ubccr/goipa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994121,"owners_count":21030050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","freeipa","go","golang"],"created_at":"2024-11-14T14:08:29.662Z","updated_at":"2025-04-09T07:07:00.839Z","avatar_url":"https://github.com/ubccr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goipa - FreeIPA client library\n===============================================================================\n\n[![GoDoc](https://img.shields.io/badge/godoc-reference-blue)](https://pkg.go.dev/github.com/ubccr/goipa)\n\ngoipa is a [FreeIPA](http://www.freeipa.org/) client library written in Go.\nIt interfaces with the FreeIPA JSON [api](https://github.com/freeipa/freeipa/blob/master/API.txt)\nover HTTPS.\n\n## Usage\n\nInstall using go tools:\n\n```\n$ go get github.com/ubccr/goipa\n```\n\nExample calling FreeIPA user-show:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/ubccr/goipa\"\n)\n\nfunc main() {\n    client := ipa.NewDefaultClient()\n\n    err := client.LoginWithKeytab(\"/path/to/user.keytab\", \"username\")\n    if err != nil {\n        panic(err)\n    }\n\n    rec, err := client.UserShow(\"username\")\n    if err != nil {\n        panic(err)\n    }\n\n    fmt.Println(\"%s - %s\", rec.Username, rec.Uid)\n}\n```\n\n## Hacking\n\nDevelopment and testing goipa uses docker-compose. The scripts to spin up a\nFreeIPA test server in docker were copied/adopted from [this great repository](https://github.com/adelton/webauthinfra). \nMost of the scripts in `container/` directory are written by Jan Pazdziora and\nlicensed under Apache 2.0 and modified for use with goipa.\n\nNOTE: The containers are NOT meant to be run in production and used solely for\ndevelopment.\n\nTo get started hacking on goipa and running the test suite:\n\n```\n$ cp .env.sample .env\n[edit to taste. add passwords and ssh key]\n\n$ docker-compose build\n$ docker-compose up -d\n$ ssh -p 9022 localhost\n$ kinit admin\n$ cd /app\n$ go test\n```\n\nTo run a specific test with trace debugging:\n\n```\n$ go test -v -run UserShow\n```\n\n## License\n\ngoipa is released under a BSD style License. See the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubccr%2Fgoipa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubccr%2Fgoipa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubccr%2Fgoipa/lists"}