-
Notifications
You must be signed in to change notification settings - Fork 2
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
UNKNOWN - "http response error: 401 - invalid content type #8
Comments
At the moment there is no option for AD-Users. This should be implemented. We evaluate this problem. I discussed that with @LordHepipud |
Usually NTLM should work with domains, but be aware of the shall handling for You need to use one of these:
Icinga will take care of escaping a single I still need to test Also see #9 |
We have a new pre-release version. I would appreciate if you could test the new build v0.2.0 pre-release. The error message: UNKNOWN - "http response error: 401 - invalid content type" could be a problem with the configuration of the windows system, e.g. Firewall, WinRM. On my tests I can execute a command like that with no errors:
Unfortunately NTLM won't work like @lazyfrosch mentioned above
If you have feedback, please write us in #11 |
Okay, let's discuss the problems here, #11 is for a TLS client certificate, and not TLS connections by default. |
--snip-- Hi! I tested the latest release against our own test server:
Test1:
Here we get the following error:
Test2:
With the other spelling of the user we get this message: We will investigate this with our colleagues. |
@K0nne: You are not using a HTTPS/TLS connection, therefor you would need to add
I guess it might be a good idea to change the |
@aheinhold can you please take over? |
@K0nne enjoy! 🍹 |
@aheinhold I've updated the README, please tell me if I can help 😉 |
Hi @lazyfrosch After this i tested the check as follows:
The i/o timeout occurs after ~30 seconds |
|
Hi @lazyfrosch sorry for my late response. I configured the host as follows:
I got the following output:
|
How about enabling Basic Auth? Or using |
--auth ntlm
when I try to configure basic auth:
Changing this settings is prohibited by GPO. Would it help for the tests if i let this be changed? |
Well Basic Auth might not be the best choice for default, I opened #15 for that. I've seen the error "Command has already been closed" once in the CI, but not sure where that comes from, I thought of a timing issue during setup of the CI VM. Have you restarted winrm |
I don't know. Maybe @K0nne can say something about it next week.
Yes, i restarted WinRM after the configuration. Result/Plugin output:
|
Invalid content type basically means that authentication didn't work. You should find some info in the security log of the server. But when you use NTLM with TLS - which is default in master now - it should be fine. I'm not sure what can cause the error It could also be related to additional security policies. /cc @mwaldmueller |
Current status: We can't really determine why NTLM authentication fails. There is a limitation with the library, that you can only auth with users of the same domain as the computer, and not even local users. Azure/go-ntlmssp#16 For this issue that shouldn't be the cause. Events recorded:
What stands out here, is that the logon is successful, and afterwards some verification fails. |
On Monday I will provide you some audit details from our pwsh-version and winrm. |
I executed both checks from the same satellite against the same target. To my surprise check_by_winrm produced no security eventlog entries. Instead it thows the http 401 message in the same second it is executed. Is it posssible that the check dies right after execution before it can send anything? I've sent the logs from our incarnation to @LordHepipud. |
Hello,
i tested the check_by_powershell with the following commandline calls:
The result was the followng message:
UNKNOWN - "http response error: 401 - invalid content type"
ref/NC/649281
The text was updated successfully, but these errors were encountered: