{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/comments/155101486","pull_request_review_id":81365646,"id":155101486,"diff_hunk":"@@ -211,4 +216,44 @@ int mm_load_profile(const char* user_name, u_int token)\n \t}\n \n \treturn result;\n+}\n+\n+void*\n+mm_auth_custom_lsa(const char* user, const char* password, const char* domain, const char* lsa_auth_pkg)\n+{\n+\t/* Pass credentials to privileged agent to retrieve token upon successful authentication */\n+\tstruct sshbuf *msg = NULL;\n+\tHANDLE token = 0;\n+\tint agent_fd;\n+\n+\twhile (1) {\n+\t\tif ((agent_fd = get_priv_agent_sock()) == -1)\n+\t\t\tbreak;\n+\n+\t\tmsg = sshbuf_new();\n+\t\tif (!msg)\n+\t\t\tfatal(\"%s: out of memory\", __func__);\n+\n+\t\tif (sshbuf_put_u8(msg, SSH_PRIV_AGENT_MSG_ID) != 0 ||\n+\t\t\tsshbuf_put_cstring(msg, CUSTOM_LSA_AUTH_REQUEST) != 0 ||\n+\t\t\tsshbuf_put_cstring(msg, user) != 0 ||\n+\t\t\tsshbuf_put_cstring(msg, password) != 0 ||\n+\t\t\tsshbuf_put_cstring(msg, domain) != 0 ||\n+\t\t\tsshbuf_put_cstring(msg, lsa_auth_pkg) != 0 ||\n+\t\t\tssh_request_reply(agent_fd, msg, msg) != 0) {\n+\t\t\tdebug(\"unable to send LSA Auth request\");\n+\t\t\tbreak;\n+\t\t}\n+\n+\t\tif (sshbuf_get_u32(msg, (u_int32_t *) &token) != 0)","path":"contrib/win32/win32compat/win32_monitor_wrap.c","position":57,"original_position":57,"commit_id":"acafb1e92a469936b6a4e7d983e5c37629bcfbb0","original_commit_id":"acafb1e92a469936b6a4e7d983e5c37629bcfbb0","user":{"login":"bingbing8","id":12284203,"avatar_url":"https://avatars0.githubusercontent.com/u/12284203?v=4","gravatar_id":"","url":"https://api.github.com/users/bingbing8","html_url":"https://github.com/bingbing8","followers_url":"https://api.github.com/users/bingbing8/followers","following_url":"https://api.github.com/users/bingbing8/following{/other_user}","gists_url":"https://api.github.com/users/bingbing8/gists{/gist_id}","starred_url":"https://api.github.com/users/bingbing8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bingbing8/subscriptions","organizations_url":"https://api.github.com/users/bingbing8/orgs","repos_url":"https://api.github.com/users/bingbing8/repos","events_url":"https://api.github.com/users/bingbing8/events{/privacy}","received_events_url":"https://api.github.com/users/bingbing8/received_events","type":"User","site_admin":false},"body":"can you add a debug trace here?","created_at":"2017-12-05T22:58:06Z","updated_at":"2017-12-05T22:58:06Z","html_url":"https://github.com/PowerShell/openssh-portable/pull/246#discussion_r155101486","pull_request_url":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/246","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/comments/155101486"},"html":{"href":"https://github.com/PowerShell/openssh-portable/pull/246#discussion_r155101486"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/246"}}},"pull_request":{"url":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/246","id":155738340,"html_url":"https://github.com/PowerShell/openssh-portable/pull/246","diff_url":"https://github.com/PowerShell/openssh-portable/pull/246.diff","patch_url":"https://github.com/PowerShell/openssh-portable/pull/246.patch","issue_url":"https://api.github.com/repos/PowerShell/openssh-portable/issues/246","number":246,"state":"open","locked":false,"title":"Support custom LSA auth provider","user":{"login":"bagajjal","id":23668037,"avatar_url":"https://avatars0.githubusercontent.com/u/23668037?v=4","gravatar_id":"","url":"https://api.github.com/users/bagajjal","html_url":"https://github.com/bagajjal","followers_url":"https://api.github.com/users/bagajjal/followers","following_url":"https://api.github.com/users/bagajjal/following{/other_user}","gists_url":"https://api.github.com/users/bagajjal/gists{/gist_id}","starred_url":"https://api.github.com/users/bagajjal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagajjal/subscriptions","organizations_url":"https://api.github.com/users/bagajjal/orgs","repos_url":"https://api.github.com/users/bagajjal/repos","events_url":"https://api.github.com/users/bagajjal/events{/privacy}","received_events_url":"https://api.github.com/users/bagajjal/received_events","type":"User","site_admin":false},"body":"1) Support custom LSA auth provider (username;password;domain format).\r\n2) Fix the _dupenv_s issue (length variable is passed to _dupenv_s).","created_at":"2017-11-30T22:41:07Z","updated_at":"2017-12-05T22:58:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9bc818ffca244e175b09623057f3d4d041a1b96","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/246/commits","review_comments_url":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/246/comments","review_comment_url":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/openssh-portable/issues/246/comments","statuses_url":"https://api.github.com/repos/PowerShell/openssh-portable/statuses/acafb1e92a469936b6a4e7d983e5c37629bcfbb0","head":{"label":"PowerShell:lsa_auth_provider_support","ref":"lsa_auth_provider_support","sha":"acafb1e92a469936b6a4e7d983e5c37629bcfbb0","user":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":72603626,"name":"openssh-portable","full_name":"PowerShell/openssh-portable","owner":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerShell/openssh-portable","description":"Portable OpenSSH","fork":true,"url":"https://api.github.com/repos/PowerShell/openssh-portable","forks_url":"https://api.github.com/repos/PowerShell/openssh-portable/forks","keys_url":"https://api.github.com/repos/PowerShell/openssh-portable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/openssh-portable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/openssh-portable/teams","hooks_url":"https://api.github.com/repos/PowerShell/openssh-portable/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/openssh-portable/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/openssh-portable/events","assignees_url":"https://api.github.com/repos/PowerShell/openssh-portable/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/openssh-portable/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/openssh-portable/tags","blobs_url":"https://api.github.com/repos/PowerShell/openssh-portable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/openssh-portable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/openssh-portable/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/openssh-portable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/openssh-portable/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/openssh-portable/languages","stargazers_url":"https://api.github.com/repos/PowerShell/openssh-portable/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/openssh-portable/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/openssh-portable/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/openssh-portable/subscription","commits_url":"https://api.github.com/repos/PowerShell/openssh-portable/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/openssh-portable/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/openssh-portable/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/openssh-portable/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/openssh-portable/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/openssh-portable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/openssh-portable/merges","archive_url":"https://api.github.com/repos/PowerShell/openssh-portable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/openssh-portable/downloads","issues_url":"https://api.github.com/repos/PowerShell/openssh-portable/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/openssh-portable/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/openssh-portable/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/openssh-portable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/openssh-portable/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/openssh-portable/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/openssh-portable/deployments","created_at":"2016-11-02T04:18:48Z","updated_at":"2017-12-02T01:46:09Z","pushed_at":"2017-12-05T21:33:55Z","git_url":"git://github.com/PowerShell/openssh-portable.git","ssh_url":"git@github.com:PowerShell/openssh-portable.git","clone_url":"https://github.com/PowerShell/openssh-portable.git","svn_url":"https://github.com/PowerShell/openssh-portable","homepage":null,"size":41277,"stargazers_count":76,"watchers_count":76,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":23,"open_issues":13,"watchers":76,"default_branch":"latestw_all"}},"base":{"label":"PowerShell:latestw_all","ref":"latestw_all","sha":"b7ee9e98e8566babbf7bd4ee6f5ad5a802b641e0","user":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":72603626,"name":"openssh-portable","full_name":"PowerShell/openssh-portable","owner":{"login":"PowerShell","id":11524380,"avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerShell/openssh-portable","description":"Portable OpenSSH","fork":true,"url":"https://api.github.com/repos/PowerShell/openssh-portable","forks_url":"https://api.github.com/repos/PowerShell/openssh-portable/forks","keys_url":"https://api.github.com/repos/PowerShell/openssh-portable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/openssh-portable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/openssh-portable/teams","hooks_url":"https://api.github.com/repos/PowerShell/openssh-portable/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/openssh-portable/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/openssh-portable/events","assignees_url":"https://api.github.com/repos/PowerShell/openssh-portable/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/openssh-portable/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/openssh-portable/tags","blobs_url":"https://api.github.com/repos/PowerShell/openssh-portable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/openssh-portable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/openssh-portable/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/openssh-portable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/openssh-portable/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/openssh-portable/languages","stargazers_url":"https://api.github.com/repos/PowerShell/openssh-portable/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/openssh-portable/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/openssh-portable/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/openssh-portable/subscription","commits_url":"https://api.github.com/repos/PowerShell/openssh-portable/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/openssh-portable/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/openssh-portable/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/openssh-portable/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/openssh-portable/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/openssh-portable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/openssh-portable/merges","archive_url":"https://api.github.com/repos/PowerShell/openssh-portable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/openssh-portable/downloads","issues_url":"https://api.github.com/repos/PowerShell/openssh-portable/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/openssh-portable/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/openssh-portable/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/openssh-portable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/openssh-portable/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/openssh-portable/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/openssh-portable/deployments","created_at":"2016-11-02T04:18:48Z","updated_at":"2017-12-02T01:46:09Z","pushed_at":"2017-12-05T21:33:55Z","git_url":"git://github.com/PowerShell/openssh-portable.git","ssh_url":"git@github.com:PowerShell/openssh-portable.git","clone_url":"https://github.com/PowerShell/openssh-portable.git","svn_url":"https://github.com/PowerShell/openssh-portable","homepage":null,"size":41277,"stargazers_count":76,"watchers_count":76,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":23,"open_issues":13,"watchers":76,"default_branch":"latestw_all"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/246"},"html":{"href":"https://github.com/PowerShell/openssh-portable/pull/246"},"issue":{"href":"https://api.github.com/repos/PowerShell/openssh-portable/issues/246"},"comments":{"href":"https://api.github.com/repos/PowerShell/openssh-portable/issues/246/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/246/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/openssh-portable/pulls/246/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/openssh-portable/statuses/acafb1e92a469936b6a4e7d983e5c37629bcfbb0"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"bingbing8"}}