You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
The way that decoding is currently written makes it very difficult to add new handling for special cases without possibly breaking something. I'll have to rewrite that code in a more maintainable way before I can resolve this issue (and #8).
riton
added a commit
to ccin2p3/go-freeipa
that referenced
this issue
Nov 12, 2021
The Sudorule struct is expecting Ipaenabledflag to be a bool, while FreeIPA returns a string of TRUE, causing this function to error.
package main import ( "crypto/tls" "fmt" "net/http" "github.com/tehwalris/go-freeipa/freeipa" ) func main() { tspt := &http.Transport{} client, err := freeipa.Connect("<host>", tspt, "<user>", "<pass>") if err != nil { panic(err) } resa, erra := client.SudoruleFind("", &freeipa.SudoruleFindArgs{}, &freeipa.SudoruleFindOptionalArgs{}) if erra != nil { fmt.Printf("Issue: %s\n", erra) return } }
Returns:
Issue: unexpected value for field Ipaenabledflag: [TRUE] ([]interface {})
The text was updated successfully, but these errors were encountered: