Skip to content

Commit

Permalink
ZZZZZ
Browse files Browse the repository at this point in the history
  • Loading branch information
joanlopez committed May 29, 2024
1 parent 011bc96 commit 72fcd2b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions v8/client/client_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,10 @@ func TestClient_GetServiceTicket_Trusted_Resource_Domain(t *testing.T) {
// There is only trust between parent domain (TEST.GOKRB5) and the service domain (RESDOM.GOKRB5).
func TestClient_GetServiceTicket_Trusted_Resource_SubDomain(t *testing.T) {
test.Integration(t)
c, _ := config.NewFromString(testdata.KRB5_CONF)
c, err := config.NewFromString(testdata.KRB5_CONF)
if err != nil {
t.Fatalf("error reading krb5 config: %v\n", err)
}

addr := os.Getenv("TEST_KDC_ADDR")
if addr == "" {
Expand All @@ -569,7 +572,7 @@ func TestClient_GetServiceTicket_Trusted_Resource_SubDomain(t *testing.T) {
case "SUB.TEST.GOKRB5":
c.Realms[i].KDC = []string{addr + ":" + testdata.KDC_PORT_TEST_GOKRB5_SUB}
case "RESDOM.GOKRB5":
c.Realms[i].KDC = []string{addr + ":" + testdata.KDC_PORT_TEST_GOKRB5_SUB}
c.Realms[i].KDC = []string{addr + ":" + testdata.KDC_PORT_TEST_GOKRB5_RESDOM}
}
}

Expand All @@ -580,7 +583,7 @@ func TestClient_GetServiceTicket_Trusted_Resource_SubDomain(t *testing.T) {
c.LibDefaults.DefaultTGSEnctypeIDs = []int32{etypeID.ETypesByName["aes256-cts-hmac-sha1-96"]}

cl := client.NewWithPassword("testuser1", "SUB.TEST.GOKRB5", "passwordvalue", c)
err := cl.Login()
err = cl.Login()
if err != nil {
t.Fatalf("error on login: %v\n", err)
}
Expand Down

0 comments on commit 72fcd2b

Please sign in to comment.