Documentation ¶
Index ¶
- type Client
- func NewClientFromCCache(ccachePath, krb5confPath string, settings ...func(*client.Settings)) (*Client, error)
- func NewClientWithKeytab(username, realm, keytabPath, krb5confPath string, ...) (*Client, error)
- func NewClientWithPassword(username, realm, password string, krb5confPath string, ...) (*Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *client.Client Subkey types.EncryptionKey // contains filtered or unexported fields }
Client implements ldap.GSSAPIClient interface.
func NewClientFromCCache ¶
func NewClientFromCCache(ccachePath, krb5confPath string, settings ...func(*client.Settings)) (*Client, error)
NewClientFromCCache creates a new client from a populated client cache.
func NewClientWithKeytab ¶
func NewClientWithKeytab(username, realm, keytabPath, krb5confPath string, settings ...func(*client.Settings)) (*Client, error)
NewClientWithKeytab creates a new client from a keytab credential. Set the realm to empty string to use the default realm from config.
func NewClientWithPassword ¶
func NewClientWithPassword(username, realm, password string, krb5confPath string, settings ...func(*client.Settings)) (*Client, error)
NewClientWithPassword creates a new client from a password credential. Set the realm to empty string to use the default realm from config.
func (*Client) DeleteSecContext ¶
DeleteSecContext destroys any established secure context.
func (*Client) InitSecContext ¶
InitSecContext initiates the establishment of a security context for GSS-API between the client and server. See RFC 4752 section 3.1.
func (*Client) NegotiateSaslAuth ¶
NegotiateSaslAuth performs the last step of the SASL handshake. See RFC 4752 section 3.1.