{"action":"created","issue":{"url":"https://api.github.com/repos/fguillot/kanboard/issues/1449","labels_url":"https://api.github.com/repos/fguillot/kanboard/issues/1449/labels{/name}","comments_url":"https://api.github.com/repos/fguillot/kanboard/issues/1449/comments","events_url":"https://api.github.com/repos/fguillot/kanboard/issues/1449/events","html_url":"https://github.com/fguillot/kanboard/issues/1449","id":115082852,"number":1449,"title":"[FR] LDAP - Add attribute to bind username","user":{"login":"Herve-M","id":1846023,"avatar_url":"https://avatars.githubusercontent.com/u/1846023?v=3","gravatar_id":"","url":"https://api.github.com/users/Herve-M","html_url":"https://github.com/Herve-M","followers_url":"https://api.github.com/users/Herve-M/followers","following_url":"https://api.github.com/users/Herve-M/following{/other_user}","gists_url":"https://api.github.com/users/Herve-M/gists{/gist_id}","starred_url":"https://api.github.com/users/Herve-M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Herve-M/subscriptions","organizations_url":"https://api.github.com/users/Herve-M/orgs","repos_url":"https://api.github.com/users/Herve-M/repos","events_url":"https://api.github.com/users/Herve-M/events{/privacy}","received_events_url":"https://api.github.com/users/Herve-M/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fguillot/kanboard/labels/feature%20request","name":"feature request","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-04T15:48:42Z","updated_at":"2015-11-10T12:41:17Z","closed_at":null,"body":"Hello,\r\n\r\nIt will be nice, if we can set the attribute used to define the username at user creation.\r\n\r\nAt first see, the existing implementation use the last RDN. So if you have dn like : \"dn: uid=9eca670c-5440-48c0-894e-07e09667b928,ou=user,dc=anorg,dc=org\", the username will be the uid..\r\n\r\nHerveM"},"comment":{"url":"https://api.github.com/repos/fguillot/kanboard/issues/comments/155410101","html_url":"https://github.com/fguillot/kanboard/issues/1449#issuecomment-155410101","issue_url":"https://api.github.com/repos/fguillot/kanboard/issues/1449","id":155410101,"user":{"login":"fguillot","id":323546,"avatar_url":"https://avatars.githubusercontent.com/u/323546?v=3","gravatar_id":"","url":"https://api.github.com/users/fguillot","html_url":"https://github.com/fguillot","followers_url":"https://api.github.com/users/fguillot/followers","following_url":"https://api.github.com/users/fguillot/following{/other_user}","gists_url":"https://api.github.com/users/fguillot/gists{/gist_id}","starred_url":"https://api.github.com/users/fguillot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fguillot/subscriptions","organizations_url":"https://api.github.com/users/fguillot/orgs","repos_url":"https://api.github.com/users/fguillot/repos","events_url":"https://api.github.com/users/fguillot/events{/privacy}","received_events_url":"https://api.github.com/users/fguillot/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T12:41:17Z","updated_at":"2015-11-10T12:41:17Z","body":"- If I remember correctly, if you define the constant `LDAP_ACCOUNT_ID` in your config file you can specify the LDAP attribute used to fetch the username instead of using the last RDN.\r\n- If you need to store your external uid, instead of changing the database schema, you can add a new user metadata named by example `ldap_uid`.\r\n\r\nNote: I will probably rewrite the authentication/authorization system in the future to allow people to create authentication plugins. That also means existing alternative authentication backend will become plugins (Google, Github, etc..). And specific database fields like github_id will be moved to user metadata (custom fields). \r\n"}}