{"action":"created","issue":{"url":"https://api.github.com/repos/cloudsoft/winrm4j/issues/27","repository_url":"https://api.github.com/repos/cloudsoft/winrm4j","labels_url":"https://api.github.com/repos/cloudsoft/winrm4j/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/cloudsoft/winrm4j/issues/27/comments","events_url":"https://api.github.com/repos/cloudsoft/winrm4j/issues/27/events","html_url":"https://github.com/cloudsoft/winrm4j/issues/27","id":138394980,"number":27,"title":"Domain Credentail is not working","user":{"login":"adhamelia","id":1576538,"avatar_url":"https://avatars.githubusercontent.com/u/1576538?v=3","gravatar_id":"","url":"https://api.github.com/users/adhamelia","html_url":"https://github.com/adhamelia","followers_url":"https://api.github.com/users/adhamelia/followers","following_url":"https://api.github.com/users/adhamelia/following{/other_user}","gists_url":"https://api.github.com/users/adhamelia/gists{/gist_id}","starred_url":"https://api.github.com/users/adhamelia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adhamelia/subscriptions","organizations_url":"https://api.github.com/users/adhamelia/orgs","repos_url":"https://api.github.com/users/adhamelia/repos","events_url":"https://api.github.com/users/adhamelia/events{/privacy}","received_events_url":"https://api.github.com/users/adhamelia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-03-04T06:49:29Z","updated_at":"2016-07-22T14:00:45Z","closed_at":null,"body":"Hi,\r\n\r\ni am trying to command using domain credentials but it throws error even though i have configured a properly Kerberos setup.\r\n\r\n\r\ncan u guid me ???\r\n\r\nhere is  the code snippet\r\n\r\n WinRmTool winrm = WinRmTool.connect(\"xxx.xxx.xxx.xxx\", \"Administrator@XXX.COM\", \"xxxxx\");\r\n\r\n            WinRmToolResponse response = winrm.executePs(ImmutableList.of(\"Get-WmiObject -class Win32_ComputerSystem\"));\r\n            System.out.println(response.getStdOut()); \r\n\r\njavax.xml.ws.WebServiceException: Could not send Message.\r\n\tat org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:150)\r\n\tat com.sun.proxy.$Proxy45.create(Unknown Source)\r\n\tat io.cloudsoft.winrm4j.client.WinRmClient.createService(WinRmClient.java:457)\r\n\tat io.cloudsoft.winrm4j.client.WinRmClient.getService(WinRmClient.java:340)\r\n\tat io.cloudsoft.winrm4j.client.WinRmClient.command(WinRmClient.java:207)\r\n\tat io.cloudsoft.winrm4j.winrm.WinRmTool.executeCommand(WinRmTool.java:198)\r\n\tat io.cloudsoft.winrm4j.winrm.WinRmTool.executePs(WinRmTool.java:224)\r\n\tat WinRM.main(WinRM.java:57)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)\r\nCaused by: java.io.IOException: Authorization loop detected on Conduit \"{http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd}WinRmPort.http-conduit\" on URL \"http://192.168.2.102:5985/wsman\" with realm \"WSMAN\"\r\n\tat org.apache.cxf.transport.http.HTTPConduit.detectAuthorizationLoop(HTTPConduit.java:1926)\r\n\tat org.apache.cxf.transport.http.HTTPConduit.access$600(HTTPConduit.java:147)\r\n\tat org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.authorizationRetransmit(HTTPConduit.java:1506)\r\n\tat org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit$AsyncWrappedOutputStream.authorizationRetransmit(AsyncHTTPConduit.java:796)\r\n\tat org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.processRetransmit(HTTPConduit.java:1437)\r\n\tat org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleRetransmits(HTTPConduit.java:1411)\r\n\tat org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1545)\r\n\tat org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1347)\r\n\tat org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit$AsyncWrappedOutputStream.close(AsyncHTTPConduit.java:415)\r\n\tat org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)\r\n\tat org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:651)\r\n\tat org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)\r\n\tat org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)\r\n\tat org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)\r\n\tat org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)\r\n\tat org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)\r\n\tat org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)\r\n\tat org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)\r\n\tat org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)\r\n\t... 12 more\r\n"},"comment":{"url":"https://api.github.com/repos/cloudsoft/winrm4j/issues/comments/234551598","html_url":"https://github.com/cloudsoft/winrm4j/issues/27#issuecomment-234551598","issue_url":"https://api.github.com/repos/cloudsoft/winrm4j/issues/27","id":234551598,"user":{"login":"awdamle","id":20598531,"avatar_url":"https://avatars.githubusercontent.com/u/20598531?v=3","gravatar_id":"","url":"https://api.github.com/users/awdamle","html_url":"https://github.com/awdamle","followers_url":"https://api.github.com/users/awdamle/followers","following_url":"https://api.github.com/users/awdamle/following{/other_user}","gists_url":"https://api.github.com/users/awdamle/gists{/gist_id}","starred_url":"https://api.github.com/users/awdamle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awdamle/subscriptions","organizations_url":"https://api.github.com/users/awdamle/orgs","repos_url":"https://api.github.com/users/awdamle/repos","events_url":"https://api.github.com/users/awdamle/events{/privacy}","received_events_url":"https://api.github.com/users/awdamle/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T14:00:44Z","updated_at":"2016-07-22T14:00:44Z","body":"I am trying to use Kerberos AuthScheme and my machine is in the same domain as the remote Windows machine that I am trying to connect to. I have also verified the WinRM config on the remote server. However, I am not able to proceed ahead as I am getting these authentication errors - \r\n\r\nWARN  MainClientExec:207 - NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))\r\nKERBEROS authentication error: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)\r\nAny pointers on this error?\r\nI tried passing a user name in both these formats - <domain>\\<username> and <username>@<domain>, but I am getting same error."}}
{"actor":{"display_login":"awdamle"}}