SAP / go-ase

SAP ASE Database Client for Go
Apache License 2.0
25 stars 14 forks source link

Getting error while using against SAP ASE 15.7 #206

Closed snsrihari closed 3 years ago

snsrihari commented 3 years ago

Description

Does go-ase support ASE 15.7? I'm getting the following error while doing a connection to ASE 15.7

Server only supports Extended Plus Encrypted Password login protocol, at least On Demand Command Encryption is required: expected TDS_MSG_SEC_ENCRYPT4, received TDS_MSG_SEC_ENCRYPT3

This is the code I have info, _ := ase.NewInfo() info.Host = SrcEndpoint.IP info.Port = dbData.Port info.Username = dbData.UserName info.Password = dbData.Password

connector, err := ase.NewConnector(info)
if err != nil {
    clog.Errorf("Failed to create connector: %v", err)
    return nil, err
}

I'm getting the following error Failed to create connector: error opening test connection: go-ase: error logging in: server only supports Extended Plus Encrypted Password login protocol, at least On Demand Command Encryption is required: expected TDS_MSG_SEC_ENCRYPT4, received TDS_MSG_SEC_ENCRYPT3

Environment

Client: OS: Ubuntu go version: go version go1.14.2 linux/amd64 go-ase version / commit hash: go-ase@v0.0.0-20210611100756-1778dda08c18 go-dblib version / commit hash: go-dblib@v0.0.0-20210610133137-f25b0f0fced0

Server: OS: RHEL 8x ASE version: 15.7

snsrihari commented 3 years ago

Closing based on https://github.com/SAP/go-ase/issues/202. Thanks