{"action":"opened","issue":{"url":"https://api.github.com/repos/nskvortsov/test/issues/141","labels_url":"https://api.github.com/repos/nskvortsov/test/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/nskvortsov/test/issues/141/comments","events_url":"https://api.github.com/repos/nskvortsov/test/issues/141/events","html_url":"https://github.com/nskvortsov/test/issues/141","id":54158855,"number":141,"title":"Hostname option for SMB authentication","user":{"login":"nskvortsov","id":539027,"avatar_url":"https://avatars.githubusercontent.com/u/539027?v=3","gravatar_id":"","url":"https://api.github.com/users/nskvortsov","html_url":"https://github.com/nskvortsov","followers_url":"https://api.github.com/users/nskvortsov/followers","following_url":"https://api.github.com/users/nskvortsov/following{/other_user}","gists_url":"https://api.github.com/users/nskvortsov/gists{/gist_id}","starred_url":"https://api.github.com/users/nskvortsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nskvortsov/subscriptions","organizations_url":"https://api.github.com/users/nskvortsov/orgs","repos_url":"https://api.github.com/users/nskvortsov/repos","events_url":"https://api.github.com/users/nskvortsov/events{/privacy}","received_events_url":"https://api.github.com/users/nskvortsov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-13T07:26:38Z","updated_at":"2015-01-13T07:26:39Z","closed_at":null,"body":"As our netbios authentication scheme requires us to provide a hostname, and JCIFS by default generates random strings as hostname, the SMB deployer doesn't work for us. Authenticating with the default (random) hostname will result in the following error:\n*Jcifs.smb.SmbAuthException: Logon failure: user not allowed to log on to this computer*\n\nWe've been looking into this issue. The hostname can be set by \n```\n#!java\n\njcifs.Config.setProperty(\"jcifs.netbios.hostname\", myHostname);\n```\n\nWe've implemented a basic fix for our issue. There are some additional constraints that could be improved, but it works for us. These are:\n\n* If no hostname is provided, the smb deployer will try to read the hostname from InetAddress. If this fails, a string \"unknown\" will be used. A better default could be found.\n\n* Changing the hostname requires you to restart all agents. This is due to the global character of the jcifs.Config object. We've not investigated how to fix this issue.\n\nPatch provided.\n\nBest regards,\nKevin\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/nskvortsov/deployer/issue/13\n- Originally reported by: [kevin_cypers](http://bitbucket.org/kevin_cypers)\n- Originally created at: 2013-04-25T16:44:06.588\n"}}