Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python error on Windows Server with LAPS v2 #14

Closed
magicvodi opened this issue Oct 5, 2023 · 7 comments
Closed

python error on Windows Server with LAPS v2 #14

magicvodi opened this issue Oct 5, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@magicvodi
Copy link

Hi,
we are rolling out LAPSv2 in our environment, so I upgraded LAPS-WebUI.
On my Windows bare metal Installation,
after installing python and dpapi-ng i get the following error when I try to show a Computer with a LAPS v2 password:

Failed to fetch LAPS data for computer COMPUTERNAME Error: Command execution failed because the underlying process (python.exe#4220) returned a non-zero exit code (120). Command: python "C:\LAPS-WebUI-v1.5.4-win-x64\scripts\DecryptEncryptedLAPSPassword.py" --user DOMAIN\USERNAME --password PASSWORD --data BUNCH_OFF_BASE64_DATA You can suppress this validation by calling WithValidation(CommandResultValidation.None) on the command.

When I run the command python command on the server it runs successfully (exit code 0) and shows me the decrypted password.

@Seji64
Copy link
Owner

Seji64 commented Oct 5, 2023

Which Python version do you have installed?

//Edit

Just tested it (just to be sure) on my dev machine with Windows 11 22H2 and python version 3.11.5 => works perfectly

@magicvodi
Copy link
Author

It's python 3.12.0 on Windows Server 2019

@IBS-IT
Copy link

IBS-IT commented Oct 5, 2023

I think I have the same problem using the docker container v1.5.2
I suspect that the arguments to the python script need to be in quotes but I can't be sure.

@Seji64
Copy link
Owner

Seji64 commented Oct 5, 2023

I think I have the same problem using the docker container v1.5.2 I suspect that the arguments to the python script need to be in quotes but I can't be sure.

Hm the path is already in quotes...does you password or username has spaces or special characters in it? could be the culprint

It's python 3.12.0 on Windows Server 2019

Installed python 3.12 - work also for me

@Seji64
Copy link
Owner

Seji64 commented Oct 5, 2023

Here a test build with the latest commit - can u test pls?

https://transfer.sh/OTs8LEs0Yn/publish.zip

@magicvodi
Copy link
Author

The old build works with a simplified password and the new build works with our usual passwords with spaces and special characters. Many thanks!

@Seji64 Seji64 added the bug Something isn't working label Oct 5, 2023
@Seji64
Copy link
Owner

Seji64 commented Oct 5, 2023

fixed in v1.5.5

@Seji64 Seji64 closed this as completed Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants