payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/comments/321067894","pull_request_review_id":284010698,"id":321067894,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMTA2Nzg5NA==","diff_hunk":"@@ -57,6 +58,30 @@ type UserInfoLDAPSource struct {\n \tallGroupsAndManagerCacheExpiration time.Time\n }\n \n+func (u *UserInfoLDAPSource) GetUserAttributes(username string) ([]string, []string, error) {\n+\tconn, err := u.getTargetLDAPConnection()\n+\tif err != nil {\n+\t\tlog.Println(err)\n+\t\treturn nil, nil, err\n+\t}\n+\tresult, err := u.getInfoofUserInternal(conn, username, []string{u.UserSearchBaseDNs}, []string{\"mail\", \"givenName\"})\n+\tif err != nil {\n+\t\tlog.Println(err)\n+\t\treturn nil, nil, err\n+\t}\n+\temail, ok := result[\"mail\"]\n+\tif !ok {\n+\t\tlog.Println(\"error parse mail\")","path":"lib/userinfo/ldapuserinfo/ldap_utils.go","position":25,"original_position":25,"commit_id":"d91ea91b23d3bd24586bf7cda9c03191a18a7275","original_commit_id":"d91ea91b23d3bd24586bf7cda9c03191a18a7275","user":{"login":"cviecco","id":1275412,"node_id":"MDQ6VXNlcjEyNzU0MTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1275412?v=4","gravatar_id":"","url":"https://api.github.com/users/cviecco","html_url":"https://github.com/cviecco","followers_url":"https://api.github.com/users/cviecco/followers","following_url":"https://api.github.com/users/cviecco/following{/other_user}","gists_url":"https://api.github.com/users/cviecco/gists{/gist_id}","starred_url":"https://api.github.com/users/cviecco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cviecco/subscriptions","organizations_url":"https://api.github.com/users/cviecco/orgs","repos_url":"https://api.github.com/users/cviecco/repos","events_url":"https://api.github.com/users/cviecco/events{/privacy}","received_events_url":"https://api.github.com/users/cviecco/received_events","type":"User","site_admin":false},"body":"This is not actually parsing error, this is mail not found","created_at":"2019-09-05T04:17:46Z","updated_at":"2019-09-05T04:21:16Z","html_url":"https://github.com/Symantec/ldap-group-management/pull/38#discussion_r321067894","pull_request_url":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/38","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/comments/321067894"},"html":{"href":"https://github.com/Symantec/ldap-group-management/pull/38#discussion_r321067894"},"pull_request":{"href":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/38","id":313715813,"node_id":"MDExOlB1bGxSZXF1ZXN0MzEzNzE1ODEz","html_url":"https://github.com/Symantec/ldap-group-management/pull/38","diff_url":"https://github.com/Symantec/ldap-group-management/pull/38.diff","patch_url":"https://github.com/Symantec/ldap-group-management/pull/38.patch","issue_url":"https://api.github.com/repos/Symantec/ldap-group-management/issues/38","number":38,"state":"open","locked":false,"title":"Get data from ad","user":{"login":"SLR9511","id":8995657,"node_id":"MDQ6VXNlcjg5OTU2NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/8995657?v=4","gravatar_id":"","url":"https://api.github.com/users/SLR9511","html_url":"https://github.com/SLR9511","followers_url":"https://api.github.com/users/SLR9511/followers","following_url":"https://api.github.com/users/SLR9511/following{/other_user}","gists_url":"https://api.github.com/users/SLR9511/gists{/gist_id}","starred_url":"https://api.github.com/users/SLR9511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SLR9511/subscriptions","organizations_url":"https://api.github.com/users/SLR9511/orgs","repos_url":"https://api.github.com/users/SLR9511/repos","events_url":"https://api.github.com/users/SLR9511/events{/privacy}","received_events_url":"https://api.github.com/users/SLR9511/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-09-03T18:38:20Z","updated_at":"2019-09-05T04:21:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5bcb67db456cabebde0c646101537a3370416f2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/38/commits","review_comments_url":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/38/comments","review_comment_url":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Symantec/ldap-group-management/issues/38/comments","statuses_url":"https://api.github.com/repos/Symantec/ldap-group-management/statuses/d91ea91b23d3bd24586bf7cda9c03191a18a7275","head":{"label":"Symantec:get-data-from-AD","ref":"get-data-from-AD","sha":"d91ea91b23d3bd24586bf7cda9c03191a18a7275","user":{"login":"Symantec","id":7462319,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0NjIzMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/7462319?v=4","gravatar_id":"","url":"https://api.github.com/users/Symantec","html_url":"https://github.com/Symantec","followers_url":"https://api.github.com/users/Symantec/followers","following_url":"https://api.github.com/users/Symantec/following{/other_user}","gists_url":"https://api.github.com/users/Symantec/gists{/gist_id}","starred_url":"https://api.github.com/users/Symantec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Symantec/subscriptions","organizations_url":"https://api.github.com/users/Symantec/orgs","repos_url":"https://api.github.com/users/Symantec/repos","events_url":"https://api.github.com/users/Symantec/events{/privacy}","received_events_url":"https://api.github.com/users/Symantec/received_events","type":"Organization","site_admin":false},"repo":{"id":123036860,"node_id":"MDEwOlJlcG9zaXRvcnkxMjMwMzY4NjA=","name":"ldap-group-management","full_name":"Symantec/ldap-group-management","private":false,"owner":{"login":"Symantec","id":7462319,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0NjIzMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/7462319?v=4","gravatar_id":"","url":"https://api.github.com/users/Symantec","html_url":"https://github.com/Symantec","followers_url":"https://api.github.com/users/Symantec/followers","following_url":"https://api.github.com/users/Symantec/following{/other_user}","gists_url":"https://api.github.com/users/Symantec/gists{/gist_id}","starred_url":"https://api.github.com/users/Symantec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Symantec/subscriptions","organizations_url":"https://api.github.com/users/Symantec/orgs","repos_url":"https://api.github.com/users/Symantec/repos","events_url":"https://api.github.com/users/Symantec/events{/privacy}","received_events_url":"https://api.github.com/users/Symantec/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Symantec/ldap-group-management","description":null,"fork":false,"url":"https://api.github.com/repos/Symantec/ldap-group-management","forks_url":"https://api.github.com/repos/Symantec/ldap-group-management/forks","keys_url":"https://api.github.com/repos/Symantec/ldap-group-management/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Symantec/ldap-group-management/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Symantec/ldap-group-management/teams","hooks_url":"https://api.github.com/repos/Symantec/ldap-group-management/hooks","issue_events_url":"https://api.github.com/repos/Symantec/ldap-group-management/issues/events{/number}","events_url":"https://api.github.com/repos/Symantec/ldap-group-management/events","assignees_url":"https://api.github.com/repos/Symantec/ldap-group-management/assignees{/user}","branches_url":"https://api.github.com/repos/Symantec/ldap-group-management/branches{/branch}","tags_url":"https://api.github.com/repos/Symantec/ldap-group-management/tags","blobs_url":"https://api.github.com/repos/Symantec/ldap-group-management/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Symantec/ldap-group-management/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Symantec/ldap-group-management/git/refs{/sha}","trees_url":"https://api.github.com/repos/Symantec/ldap-group-management/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Symantec/ldap-group-management/statuses/{sha}","languages_url":"https://api.github.com/repos/Symantec/ldap-group-management/languages","stargazers_url":"https://api.github.com/repos/Symantec/ldap-group-management/stargazers","contributors_url":"https://api.github.com/repos/Symantec/ldap-group-management/contributors","subscribers_url":"https://api.github.com/repos/Symantec/ldap-group-management/subscribers","subscription_url":"https://api.github.com/repos/Symantec/ldap-group-management/subscription","commits_url":"https://api.github.com/repos/Symantec/ldap-group-management/commits{/sha}","git_commits_url":"https://api.github.com/repos/Symantec/ldap-group-management/git/commits{/sha}","comments_url":"https://api.github.com/repos/Symantec/ldap-group-management/comments{/number}","issue_comment_url":"https://api.github.com/repos/Symantec/ldap-group-management/issues/comments{/number}","contents_url":"https://api.github.com/repos/Symantec/ldap-group-management/contents/{+path}","compare_url":"https://api.github.com/repos/Symantec/ldap-group-management/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Symantec/ldap-group-management/merges","archive_url":"https://api.github.com/repos/Symantec/ldap-group-management/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Symantec/ldap-group-management/downloads","issues_url":"https://api.github.com/repos/Symantec/ldap-group-management/issues{/number}","pulls_url":"https://api.github.com/repos/Symantec/ldap-group-management/pulls{/number}","milestones_url":"https://api.github.com/repos/Symantec/ldap-group-management/milestones{/number}","notifications_url":"https://api.github.com/repos/Symantec/ldap-group-management/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Symantec/ldap-group-management/labels{/name}","releases_url":"https://api.github.com/repos/Symantec/ldap-group-management/releases{/id}","deployments_url":"https://api.github.com/repos/Symantec/ldap-group-management/deployments","created_at":"2018-02-26T22:04:57Z","updated_at":"2019-09-04T20:24:26Z","pushed_at":"2019-09-05T00:11:26Z","git_url":"git://github.com/Symantec/ldap-group-management.git","ssh_url":"git@github.com:Symantec/ldap-group-management.git","clone_url":"https://github.com/Symantec/ldap-group-management.git","svn_url":"https://github.com/Symantec/ldap-group-management","homepage":null,"size":687,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"Symantec:master","ref":"master","sha":"5f6dcf83a43ce7dc4c3ca277f32ad43b7e3def4d","user":{"login":"Symantec","id":7462319,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0NjIzMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/7462319?v=4","gravatar_id":"","url":"https://api.github.com/users/Symantec","html_url":"https://github.com/Symantec","followers_url":"https://api.github.com/users/Symantec/followers","following_url":"https://api.github.com/users/Symantec/following{/other_user}","gists_url":"https://api.github.com/users/Symantec/gists{/gist_id}","starred_url":"https://api.github.com/users/Symantec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Symantec/subscriptions","organizations_url":"https://api.github.com/users/Symantec/orgs","repos_url":"https://api.github.com/users/Symantec/repos","events_url":"https://api.github.com/users/Symantec/events{/privacy}","received_events_url":"https://api.github.com/users/Symantec/received_events","type":"Organization","site_admin":false},"repo":{"id":123036860,"node_id":"MDEwOlJlcG9zaXRvcnkxMjMwMzY4NjA=","name":"ldap-group-management","full_name":"Symantec/ldap-group-management","private":false,"owner":{"login":"Symantec","id":7462319,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0NjIzMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/7462319?v=4","gravatar_id":"","url":"https://api.github.com/users/Symantec","html_url":"https://github.com/Symantec","followers_url":"https://api.github.com/users/Symantec/followers","following_url":"https://api.github.com/users/Symantec/following{/other_user}","gists_url":"https://api.github.com/users/Symantec/gists{/gist_id}","starred_url":"https://api.github.com/users/Symantec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Symantec/subscriptions","organizations_url":"https://api.github.com/users/Symantec/orgs","repos_url":"https://api.github.com/users/Symantec/repos","events_url":"https://api.github.com/users/Symantec/events{/privacy}","received_events_url":"https://api.github.com/users/Symantec/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Symantec/ldap-group-management","description":null,"fork":false,"url":"https://api.github.com/repos/Symantec/ldap-group-management","forks_url":"https://api.github.com/repos/Symantec/ldap-group-management/forks","keys_url":"https://api.github.com/repos/Symantec/ldap-group-management/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Symantec/ldap-group-management/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Symantec/ldap-group-management/teams","hooks_url":"https://api.github.com/repos/Symantec/ldap-group-management/hooks","issue_events_url":"https://api.github.com/repos/Symantec/ldap-group-management/issues/events{/number}","events_url":"https://api.github.com/repos/Symantec/ldap-group-management/events","assignees_url":"https://api.github.com/repos/Symantec/ldap-group-management/assignees{/user}","branches_url":"https://api.github.com/repos/Symantec/ldap-group-management/branches{/branch}","tags_url":"https://api.github.com/repos/Symantec/ldap-group-management/tags","blobs_url":"https://api.github.com/repos/Symantec/ldap-group-management/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Symantec/ldap-group-management/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Symantec/ldap-group-management/git/refs{/sha}","trees_url":"https://api.github.com/repos/Symantec/ldap-group-management/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Symantec/ldap-group-management/statuses/{sha}","languages_url":"https://api.github.com/repos/Symantec/ldap-group-management/languages","stargazers_url":"https://api.github.com/repos/Symantec/ldap-group-management/stargazers","contributors_url":"https://api.github.com/repos/Symantec/ldap-group-management/contributors","subscribers_url":"https://api.github.com/repos/Symantec/ldap-group-management/subscribers","subscription_url":"https://api.github.com/repos/Symantec/ldap-group-management/subscription","commits_url":"https://api.github.com/repos/Symantec/ldap-group-management/commits{/sha}","git_commits_url":"https://api.github.com/repos/Symantec/ldap-group-management/git/commits{/sha}","comments_url":"https://api.github.com/repos/Symantec/ldap-group-management/comments{/number}","issue_comment_url":"https://api.github.com/repos/Symantec/ldap-group-management/issues/comments{/number}","contents_url":"https://api.github.com/repos/Symantec/ldap-group-management/contents/{+path}","compare_url":"https://api.github.com/repos/Symantec/ldap-group-management/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Symantec/ldap-group-management/merges","archive_url":"https://api.github.com/repos/Symantec/ldap-group-management/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Symantec/ldap-group-management/downloads","issues_url":"https://api.github.com/repos/Symantec/ldap-group-management/issues{/number}","pulls_url":"https://api.github.com/repos/Symantec/ldap-group-management/pulls{/number}","milestones_url":"https://api.github.com/repos/Symantec/ldap-group-management/milestones{/number}","notifications_url":"https://api.github.com/repos/Symantec/ldap-group-management/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Symantec/ldap-group-management/labels{/name}","releases_url":"https://api.github.com/repos/Symantec/ldap-group-management/releases{/id}","deployments_url":"https://api.github.com/repos/Symantec/ldap-group-management/deployments","created_at":"2018-02-26T22:04:57Z","updated_at":"2019-09-04T20:24:26Z","pushed_at":"2019-09-05T00:11:26Z","git_url":"git://github.com/Symantec/ldap-group-management.git","ssh_url":"git@github.com:Symantec/ldap-group-management.git","clone_url":"https://github.com/Symantec/ldap-group-management.git","svn_url":"https://github.com/Symantec/ldap-group-management","homepage":null,"size":687,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/38"},"html":{"href":"https://github.com/Symantec/ldap-group-management/pull/38"},"issue":{"href":"https://api.github.com/repos/Symantec/ldap-group-management/issues/38"},"comments":{"href":"https://api.github.com/repos/Symantec/ldap-group-management/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Symantec/ldap-group-management/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/Symantec/ldap-group-management/statuses/d91ea91b23d3bd24586bf7cda9c03191a18a7275"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"cviecco"}}