Giter Site home page Giter Site logo

Comments (4)

TalAloni avatar TalAloni commented on August 26, 2024

Please try changing line 74 in SimpleProtectedNegotiationToken.cs from:

return new SimpleProtectedNegotiationTokenInit(tokenBytes, offset);

to

return new SimpleProtectedNegotiationTokenInit2(tokenBytes, offset);

from smblibrary.

softworkz avatar softworkz commented on August 26, 2024

Thanks for the quick response.
That part is solved.

But right for the next step, I'm experiencing odd behavior again:

Smb1Client.Login always returns success, no matter if credentials are right or wrong.
Then I'm calling Smb1Client.ListShares()

  • If credentials were incorrect, I get a list of shares
  • If credentials were correct, ListShares returns ACCESS_DENIED
    (sic!)

Smb1Client.TreeConnect() always returns ACCESS_DENIED.

from smblibrary.

TalAloni avatar TalAloni commented on August 26, 2024

You're going to have to dig a little deeper,
Is the server returning 'STATUS_SUCCESS' when the credentials are incorrect? if so, this is an issue with the server.
Does the user have access to the share?
Try to check with a different client to verify if the issue is indeed with the SMBLibrary client. and if it is, try to find what (and where) the issue is exactly.

from smblibrary.

TalAloni avatar TalAloni commented on August 26, 2024

My latest commit should have fixed the original issue that you reported.
please test and let me know if there are any additional issues.
please open a separate issue for each issue you encounter.

from smblibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.