| 1234567891011121314151617181920 |
- package client
- import (
- "testing"
- "gopkg.in/jcmturner/gokrb5.v7/config"
- "gopkg.in/jcmturner/gokrb5.v7/keytab"
- )
- func TestAssumePreauthentication(t *testing.T) {
- t.Parallel()
- cl := NewClientWithKeytab("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")
- }
- }
|