From acd47d454877e65735200e0c40ef232b54d73574 Mon Sep 17 00:00:00 2001 From: Erik Geiser Date: Tue, 4 Mar 2025 08:51:17 +0100 Subject: [PATCH] Improve documentation --- credentials.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/credentials.go b/credentials.go index 6c63092..676a4ab 100644 --- a/credentials.go +++ b/credentials.go @@ -158,7 +158,8 @@ func (c *Credential) mustUseKerberos() bool { // Keytab returns the Kerberos keytab containing the AES key and/or NT hash if // they were supplied. If a password is supplied, the keys/hashes are not -// derived and the keytab will be empty. +// derived and the keytab will be empty. For compatibility with other Kerberos +// libraries, see the `compat` package. func (c *Credential) Keytab() (*keytab.Keytab, error) { kt := newKeytab() @@ -179,7 +180,9 @@ func (c *Credential) Keytab() (*keytab.Keytab, error) { return kt, nil } -// KerberosConfig returns the Kerberos configuration for the credential's domain. +// KerberosConfig returns the Kerberos configuration for the credential's +// domain. For compatibility with other Kerberos libraries, see the `compat` +// package. func (c *Credential) KerberosConfig(ctx context.Context) (*config.Config, error) { dc, err := c.DC(ctx, "krbtgt") if err != nil {