Jonathan Turner hace 8 años
padre
commit
aa7250c9bf
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      client/client_integration_test.go

+ 6 - 6
client/client_integration_test.go

@@ -104,9 +104,9 @@ func TestClient_ASExchange_TGSExchange_EncTypes_Keytab(t *testing.T) {
 	}
 	}
 	for _, test := range tests {
 	for _, test := range tests {
 		c.LibDefaults.DefaultTktEnctypes = []string{test}
 		c.LibDefaults.DefaultTktEnctypes = []string{test}
-		c.LibDefaults.DefaultTktEnctypeIDs = []int{etypeID.ETypesByName[test]}
+		c.LibDefaults.DefaultTktEnctypeIDs = []int32{etypeID.ETypesByName[test]}
 		c.LibDefaults.DefaultTGSEnctypes = []string{test}
 		c.LibDefaults.DefaultTGSEnctypes = []string{test}
-		c.LibDefaults.DefaultTGSEnctypeIDs = []int{etypeID.ETypesByName[test]}
+		c.LibDefaults.DefaultTGSEnctypeIDs = []int32{etypeID.ETypesByName[test]}
 		cl := NewClientWithKeytab("testuser1", "TEST.GOKRB5", kt)
 		cl := NewClientWithKeytab("testuser1", "TEST.GOKRB5", kt)
 		cl.WithConfig(c)
 		cl.WithConfig(c)
 
 
@@ -140,9 +140,9 @@ func TestClient_ASExchange_TGSExchange_EncTypes_Password(t *testing.T) {
 	}
 	}
 	for _, test := range tests {
 	for _, test := range tests {
 		c.LibDefaults.DefaultTktEnctypes = []string{test}
 		c.LibDefaults.DefaultTktEnctypes = []string{test}
-		c.LibDefaults.DefaultTktEnctypeIDs = []int{etypeID.ETypesByName[test]}
+		c.LibDefaults.DefaultTktEnctypeIDs = []int32{etypeID.ETypesByName[test]}
 		c.LibDefaults.DefaultTGSEnctypes = []string{test}
 		c.LibDefaults.DefaultTGSEnctypes = []string{test}
-		c.LibDefaults.DefaultTGSEnctypeIDs = []int{etypeID.ETypesByName[test]}
+		c.LibDefaults.DefaultTGSEnctypeIDs = []int32{etypeID.ETypesByName[test]}
 		cl := NewClientWithPassword("testuser1", "TEST.GOKRB5", "passwordvalue")
 		cl := NewClientWithPassword("testuser1", "TEST.GOKRB5", "passwordvalue")
 		cl.WithConfig(c)
 		cl.WithConfig(c)
 
 
@@ -506,9 +506,9 @@ func TestClient_GetServiceTicket_Trusted_Resource_Domain(t *testing.T) {
 	c.LibDefaults.DefaultRealm = "TEST.GOKRB5"
 	c.LibDefaults.DefaultRealm = "TEST.GOKRB5"
 	cl := NewClientWithKeytab("testuser1", "TEST.GOKRB5", kt)
 	cl := NewClientWithKeytab("testuser1", "TEST.GOKRB5", kt)
 	c.LibDefaults.DefaultTktEnctypes = []string{"aes256-cts-hmac-sha1-96"}
 	c.LibDefaults.DefaultTktEnctypes = []string{"aes256-cts-hmac-sha1-96"}
-	c.LibDefaults.DefaultTktEnctypeIDs = []int{etypeID.ETypesByName["aes256-cts-hmac-sha1-96"]}
+	c.LibDefaults.DefaultTktEnctypeIDs = []int32{etypeID.ETypesByName["aes256-cts-hmac-sha1-96"]}
 	c.LibDefaults.DefaultTGSEnctypes = []string{"aes256-cts-hmac-sha1-96"}
 	c.LibDefaults.DefaultTGSEnctypes = []string{"aes256-cts-hmac-sha1-96"}
-	c.LibDefaults.DefaultTGSEnctypeIDs = []int{etypeID.ETypesByName["aes256-cts-hmac-sha1-96"]}
+	c.LibDefaults.DefaultTGSEnctypeIDs = []int32{etypeID.ETypesByName["aes256-cts-hmac-sha1-96"]}
 	cl.WithConfig(c)
 	cl.WithConfig(c)
 
 
 	err := cl.Login()
 	err := cl.Login()