| 1234567891011121314151617181920 |
- package client
- import (
- "testing"
- "github.com/jcmturner/gokrb5/v8/config"
- "github.com/jcmturner/gokrb5/v8/keytab"
- )
- func TestAssumePreauthentication(t *testing.T) {
- t.Parallel()
- cl := NewWithKeytab("username", "REALM", &keytab.Keytab{}, &config.Config{}, AssumePreAuthentication(true))
- if !cl.settings.assumePreAuthentication {
- t.Fatal("assumePreAuthentication should be true")
- }
- if !cl.settings.AssumePreAuthentication() {
- t.Fatal("AssumePreAuthentication() should be true")
- }
- }
|