Skip to content

MichaelRoosz/goipa-mr

 
 

Repository files navigation

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/MichaelRoosz/goipa-mr

Example calling FreeIPA user-show:

package main

import (
    "fmt"

    "github.com/MichaelRoosz/goipa-mr"
)

func main() {
    client := ipa.NewDefaultClient()

    err := client.LoginWithKeytab("/path/to/user.keytab", "username")
    if err != nil {
        panic(err)
    }

    rec, err := client.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.

About

FreeIPA client library in Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%