-
Notifications
You must be signed in to change notification settings - Fork 31
Authentication Patterns
Jacob Paullus edited this page Apr 17, 2026
·
1 revision
All protocol clients support three authentication methods through the unified session.Credentials struct.
creds := &session.Credentials{
Domain: "CORP",
Username: "admin",
Password: "Password1",
}creds := &session.Credentials{
Domain: "CORP",
Username: "admin",
Hash: ":aad3b435b51404eeaad3b435b51404ee",
}os.Setenv("KRB5CCNAME", "/path/to/admin.ccache")
creds := &session.Credentials{
Domain: "CORP.LOCAL",
Username: "admin",
UseKerberos: true,
DCIP: "10.0.0.1",
}creds := &session.Credentials{
Domain: "CORP.LOCAL",
Username: "svc-account",
UseKerberos: true,
DCIP: "10.0.0.1",
Keytab: "/path/to/svc.keytab",
}creds := &session.Credentials{
Domain: "CORP.LOCAL",
Username: "admin",
Password: "Password1",
UseKerberos: true,
DCIP: "10.0.0.1",
}