{"action":"opened","number":121,"pull_request":{"url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/121","id":60345536,"html_url":"https://github.com/Maks3w/FR3DLdapBundle/pull/121","diff_url":"https://github.com/Maks3w/FR3DLdapBundle/pull/121.diff","patch_url":"https://github.com/Maks3w/FR3DLdapBundle/pull/121.patch","issue_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/121","number":121,"state":"open","locked":false,"title":"LDAP create user only if needed and multiple auth provider","user":{"login":"vbeauvivre","id":5468590,"avatar_url":"https://avatars.githubusercontent.com/u/5468590?v=3","gravatar_id":"","url":"https://api.github.com/users/vbeauvivre","html_url":"https://github.com/vbeauvivre","followers_url":"https://api.github.com/users/vbeauvivre/followers","following_url":"https://api.github.com/users/vbeauvivre/following{/other_user}","gists_url":"https://api.github.com/users/vbeauvivre/gists{/gist_id}","starred_url":"https://api.github.com/users/vbeauvivre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbeauvivre/subscriptions","organizations_url":"https://api.github.com/users/vbeauvivre/orgs","repos_url":"https://api.github.com/users/vbeauvivre/repos","events_url":"https://api.github.com/users/vbeauvivre/events{/privacy}","received_events_url":"https://api.github.com/users/vbeauvivre/received_events","type":"User","site_admin":false},"body":"- In our case, we use many auth provider. When checking users that are not from LDAP, an exception occured «malfromed DN» in Zend’s LDAP client. To avoid it, we catch those errors and throw a simple InvalidCredentialException to switch to others authentication providers.\r\n- It seems that the LegacyProvider allways create a new user, but never search for an existing with the same DN. So I added this feature : search the user with user provider before \r\n\r\nI made those changes through class overiding in my application successfully, so I just wante to share this work.\r\n\r\nThanks for sharing this bundle.","created_at":"2016-02-23T14:17:04Z","updated_at":"2016-02-23T14:17:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/121/commits","review_comments_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/121/comments","review_comment_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/121/comments","statuses_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/statuses/0f2bb9e8e80a537a346ec8bb724f5ac50952c15c","head":{"label":"naoned:master","ref":"master","sha":"0f2bb9e8e80a537a346ec8bb724f5ac50952c15c","user":{"login":"naoned","id":3583398,"avatar_url":"https://avatars.githubusercontent.com/u/3583398?v=3","gravatar_id":"","url":"https://api.github.com/users/naoned","html_url":"https://github.com/naoned","followers_url":"https://api.github.com/users/naoned/followers","following_url":"https://api.github.com/users/naoned/following{/other_user}","gists_url":"https://api.github.com/users/naoned/gists{/gist_id}","starred_url":"https://api.github.com/users/naoned/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoned/subscriptions","organizations_url":"https://api.github.com/users/naoned/orgs","repos_url":"https://api.github.com/users/naoned/repos","events_url":"https://api.github.com/users/naoned/events{/privacy}","received_events_url":"https://api.github.com/users/naoned/received_events","type":"Organization","site_admin":false},"repo":{"id":52345584,"name":"FR3DLdapBundle","full_name":"naoned/FR3DLdapBundle","owner":{"login":"naoned","id":3583398,"avatar_url":"https://avatars.githubusercontent.com/u/3583398?v=3","gravatar_id":"","url":"https://api.github.com/users/naoned","html_url":"https://github.com/naoned","followers_url":"https://api.github.com/users/naoned/followers","following_url":"https://api.github.com/users/naoned/following{/other_user}","gists_url":"https://api.github.com/users/naoned/gists{/gist_id}","starred_url":"https://api.github.com/users/naoned/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoned/subscriptions","organizations_url":"https://api.github.com/users/naoned/orgs","repos_url":"https://api.github.com/users/naoned/repos","events_url":"https://api.github.com/users/naoned/events{/privacy}","received_events_url":"https://api.github.com/users/naoned/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/naoned/FR3DLdapBundle","description":"This bundle integrates LDAP Authentication with any user manager (Ex: FOSUserBundle)","fork":true,"url":"https://api.github.com/repos/naoned/FR3DLdapBundle","forks_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/forks","keys_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/teams","hooks_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/hooks","issue_events_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/issues/events{/number}","events_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/events","assignees_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/assignees{/user}","branches_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/branches{/branch}","tags_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/tags","blobs_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/languages","stargazers_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/stargazers","contributors_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/contributors","subscribers_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/subscribers","subscription_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/subscription","commits_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/contents/{+path}","compare_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/merges","archive_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/downloads","issues_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/issues{/number}","pulls_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/labels{/name}","releases_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/releases{/id}","deployments_url":"https://api.github.com/repos/naoned/FR3DLdapBundle/deployments","created_at":"2016-02-23T09:05:15Z","updated_at":"2016-02-23T09:05:16Z","pushed_at":"2016-02-23T14:07:50Z","git_url":"git://github.com/naoned/FR3DLdapBundle.git","ssh_url":"git@github.com:naoned/FR3DLdapBundle.git","clone_url":"https://github.com/naoned/FR3DLdapBundle.git","svn_url":"https://github.com/naoned/FR3DLdapBundle","homepage":"","size":283,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Maks3w:master","ref":"master","sha":"fc4e555f0f28e53ed41fb22a5dddebcdabfb0358","user":{"login":"Maks3w","id":1301698,"avatar_url":"https://avatars.githubusercontent.com/u/1301698?v=3","gravatar_id":"","url":"https://api.github.com/users/Maks3w","html_url":"https://github.com/Maks3w","followers_url":"https://api.github.com/users/Maks3w/followers","following_url":"https://api.github.com/users/Maks3w/following{/other_user}","gists_url":"https://api.github.com/users/Maks3w/gists{/gist_id}","starred_url":"https://api.github.com/users/Maks3w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maks3w/subscriptions","organizations_url":"https://api.github.com/users/Maks3w/orgs","repos_url":"https://api.github.com/users/Maks3w/repos","events_url":"https://api.github.com/users/Maks3w/events{/privacy}","received_events_url":"https://api.github.com/users/Maks3w/received_events","type":"User","site_admin":false},"repo":{"id":3365198,"name":"FR3DLdapBundle","full_name":"Maks3w/FR3DLdapBundle","owner":{"login":"Maks3w","id":1301698,"avatar_url":"https://avatars.githubusercontent.com/u/1301698?v=3","gravatar_id":"","url":"https://api.github.com/users/Maks3w","html_url":"https://github.com/Maks3w","followers_url":"https://api.github.com/users/Maks3w/followers","following_url":"https://api.github.com/users/Maks3w/following{/other_user}","gists_url":"https://api.github.com/users/Maks3w/gists{/gist_id}","starred_url":"https://api.github.com/users/Maks3w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maks3w/subscriptions","organizations_url":"https://api.github.com/users/Maks3w/orgs","repos_url":"https://api.github.com/users/Maks3w/repos","events_url":"https://api.github.com/users/Maks3w/events{/privacy}","received_events_url":"https://api.github.com/users/Maks3w/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Maks3w/FR3DLdapBundle","description":"This bundle integrates LDAP Authentication with any user manager (Ex: FOSUserBundle)","fork":false,"url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle","forks_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/forks","keys_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/teams","hooks_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/hooks","issue_events_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/events{/number}","events_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/events","assignees_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/assignees{/user}","branches_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/branches{/branch}","tags_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/tags","blobs_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/languages","stargazers_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/stargazers","contributors_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/contributors","subscribers_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/subscribers","subscription_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/subscription","commits_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/contents/{+path}","compare_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/merges","archive_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/downloads","issues_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues{/number}","pulls_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/labels{/name}","releases_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/releases{/id}","deployments_url":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/deployments","created_at":"2012-02-06T07:55:41Z","updated_at":"2016-02-05T17:07:16Z","pushed_at":"2016-02-13T16:17:51Z","git_url":"git://github.com/Maks3w/FR3DLdapBundle.git","ssh_url":"git@github.com:Maks3w/FR3DLdapBundle.git","clone_url":"https://github.com/Maks3w/FR3DLdapBundle.git","svn_url":"https://github.com/Maks3w/FR3DLdapBundle","homepage":"","size":437,"stargazers_count":87,"watchers_count":87,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":11,"forks":66,"open_issues":11,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/121"},"html":{"href":"https://github.com/Maks3w/FR3DLdapBundle/pull/121"},"issue":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/121"},"comments":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/Maks3w/FR3DLdapBundle/statuses/0f2bb9e8e80a537a346ec8bb724f5ac50952c15c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":30,"deletions":9,"changed_files":3}}