node-smb2 icon indicating copy to clipboard operation
node-smb2 copied to clipboard

logon_faliure if user doesn't have specified domain

Open tjswk2008 opened this issue 5 years ago • 3 comments

I can login with any domain or without domain using other linux smb2 client

Error Message:



Error: STATUS_LOGON_FAILURE (0xC000006D) : The attempted logon is invalid. This is either due to a bad username or authentication information.
    at SMB2Forge.request (D:\workspace\webpack-template\node_modules\@marsaud\smb2\lib\tools\smb2-forge.js:22:15)
    at D:\workspace\webpack-template\node_modules\@marsaud\smb2\lib\tools\smb2-connection.js:114:11
    at Object.<anonymous> (D:\workspace\webpack-template\node_modules\@marsaud\smb2\lib\tools\message.js:15:15)
    at Socket.<anonymous> (D:\workspace\webpack-template\node_modules\@marsaud\smb2\lib\tools\smb2-forge.js:71:31)
    at Socket.emit (events.js:198:13)
    at addChunk (_stream_readable.js:288:12)
    at readableAddChunk (_stream_readable.js:269:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
  messageName: 'session_setup_step2',
  params: {},
  message:
   'STATUS_LOGON_FAILURE (0xC000006D) : The attempted logon is invalid. This is either due to a bad username or authentication information.',
  code: 'STATUS_LOGON_FAILURE'

tjswk2008 avatar Jan 08 '20 03:01 tjswk2008

same issue, impossible to connect MAC smb share

mogadanez avatar Jan 19 '20 10:01 mogadanez

I also have this issue - on a Mac. Looks like the code uses NTLM to authenticate. https://www.npmjs.com/package/ntlm

NTLM authentication challenges require an NT domain, so it looks like this library is relatively coupled to the Windows environment. :(

bwadfort avatar Jan 30 '20 04:01 bwadfort

Hey @bwadfort @mogadanez , did you find any workaround or other library for connecting to MAC smb share ?

praveen-elastic avatar Jun 03 '22 06:06 praveen-elastic