go-ldap / ldap

Basic LDAP v3 functionality for the GO programming language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to pass settings to NewClientWithPassword()?

coolcoolnoworries opened this issue · comments

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?