Skip to content

How to pass settings to NewClientWithPassword()? #501

@coolcoolnoworries

Description

@coolcoolnoworries

Attempting to disable FAST via client.DisablePAFXFAST(true), as shown here https://github.com/jcmturner/gokrb5/blob/master/USAGE.md, but nothing seems to work when passing it as an argument.

Tried:
gssapi.Settings.DisablePAFXFAST(true)
client.Settings.DisablePAFXFAST(true)
client.DisablePAFXFAST(true)
gssapi.DisablePAFXFAST(true)
DisablePAFXFAST(true)

All error out as undefined.

The function declaration does seem designed to handle settings args, but its not clear how.

func NewClientWithPassword(username, realm, password string, krb5confPath string, settings ...func(*client.Settings)) (*Client, error) {

Anyone have any insight?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions