Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.33 KB

README.rst

File metadata and controls

51 lines (33 loc) · 1.33 KB

goipa - FreeIPA client library

Godoc

goipa is a FreeIPA client library written in Go. It interfaces with the FreeIPA JSON api over HTTPS.

Usage

Install using go tools:

$ go get github.com/ubccr/goipa

Example calling FreeIPA user-show:

package main

import (
    "fmt"

    "github.com/ubccr/goipa"
)

func main() {
    c := &ipa.Client{KeyTab: "/path/to/host.keytab", Host: "ipa.example.com"}

    rec, err := c.UserShow("uid")
    if err != nil {
        panic(err)
    }

    fmt.Println("%s - %s", rec.Uid, rec.UidNumber)
}

License

goipa is released under a BSD style License. See the LICENSE file.