go-ldap / ldap

Basic LDAP v3 functionality for the GO programming language.
Other
2.23k stars 352 forks source link

How to pass settings to NewClientWithPassword()? #501

Open coolcoolnoworries opened 6 months ago

coolcoolnoworries commented 6 months ago

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. https://github.com/go-ldap/ldap/blob/191cca8e766ff02a619102b5884e12fe5f14846c/gssapi/client.go#L51

Anyone have any insight?