Skip to content

Commit

Permalink
call GetNLS for older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sijms committed Mar 12, 2021
1 parent 9589e15 commit e92250b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auth_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,11 @@ func (obj *AuthObject) generatePasswordEncKey() ([]byte, error) {
key1 := obj.ServerSessKey
key2 := obj.ClientSessKey
start := 16
var retKeyLen int

logonCompatibility := obj.tcpNego.ServerCompileTimeCaps[4]
if logonCompatibility&32 != 0 {
var keyBuffer string
var retKeyLen int
switch obj.VerifierType {
case 2361:
buffer := append(key2[:len(key2)/2], key1[:len(key1)/2]...)
Expand Down

0 comments on commit e92250b

Please sign in to comment.