hirochachacha / go-smb2

SMB2/3 client library written in Go.
BSD 2-Clause "Simplified" License
350 stars 94 forks source link

anonymous login support? #81

Open deitch opened 1 year ago

deitch commented 1 year ago

Are there plans for anonymous login support? If you do not provide credentials, when calling Dialer.Dial(), you get:

"Anonymous account is not supported yet. Use guest account instead"

I noticed the @gboddin in PR #29 references a fork here that supports it. Can we upstream it here?

deitch commented 1 year ago

Hi, checking in on this?

shofster commented 1 year ago

not sure if your answer, but the LINUX guest account is"nobody" and a single space for the password. i.e. d := &smb2.Dialer{ Initiator: &smb2.NTLMInitiator{ User: "nobody", Password: " ", }, }

shofster commented 1 year ago

my server samba/smb.config for unlimited (! warning) access on local network= [N] path = /Z browerable = yes writeable = yes read only - no guest ok = yes