Git Product home page Git Product logo

Comments (8)

elasticmachine avatar elasticmachine commented on August 25, 2024

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

from elastic-agent.

cmacknz avatar cmacknz commented on August 25, 2024

#4686 (comment)

https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/terminal-server-error-messages-2200-to-2299#error-2245

Error 2245
The password is shorter than required.

Explanation: The password you specified isn't long enough.

Action: Use a longer password. See your network administrator to find the required length for passwords on your system.

Error 4294967295 is a weird one though, that's the max value of a uint32 (0xffffffff)

CC @blakerouse

from elastic-agent.

blakerouse avatar blakerouse commented on August 25, 2024

I don't understand how the password could not be long enough, its set to 127 characters long and cannot be any other size.

from elastic-agent.

leehinman avatar leehinman commented on August 25, 2024

I don't understand how the password could not be long enough, its set to 127 characters long and cannot be any other size.

Is there any way that the characters used could be interpreted as NULL or some kind of terminator, so that when the Windows NetUserSetInfo takes the string it "sees" it as being too short?

from elastic-agent.

blakerouse avatar blakerouse commented on August 25, 2024

@leehinman Nothing stands out to me, unless Windows doesn't like one of those special characters? Look here and let me know if anything stands out to you.

https://github.com/elastic/elastic-agent/blob/main/internal/pkg/agent/install/user_windows.go#L222-L234

from elastic-agent.

leehinman avatar leehinman commented on August 25, 2024

@leehinman Nothing stands out to me, unless Windows doesn't like one of those special characters? Look here and let me know if anything stands out to you.

Nothing leaps out, but we do convert the string to a UTF16 pointer. I don't know how that would cause problems, all those characters should map cleanly and not get into the surrogate halves. I'm just trying to come up with "something" that might account for the password appearing shorter than the length of the array.

For the short term, what about changing the error message so we dump the string password and the array pointed to by the UTF16 pointer? If nothing else that should give us the input that causes the problem.

from elastic-agent.

elasticmachine avatar elasticmachine commented on August 25, 2024

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

from elastic-agent.

rdner avatar rdner commented on August 25, 2024

Failed again in https://buildkite.com/elastic/elastic-agent-extended-testing/builds/718#019029f1-a5a1-4f50-88ab-8a672e90b27e

from elastic-agent.

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.