{"action":"created","issue":{"url":"https://api.github.com/repos/snipe/snipe-it/issues/126","labels_url":"https://api.github.com/repos/snipe/snipe-it/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/snipe/snipe-it/issues/126/comments","events_url":"https://api.github.com/repos/snipe/snipe-it/issues/126/events","html_url":"https://github.com/snipe/snipe-it/issues/126","id":28140154,"number":126,"title":"User import with LDAP","user":{"login":"thomsonza","id":6767982,"avatar_url":"https://avatars.githubusercontent.com/u/6767982?v=3","gravatar_id":"","url":"https://api.github.com/users/thomsonza","html_url":"https://github.com/thomsonza","followers_url":"https://api.github.com/users/thomsonza/followers","following_url":"https://api.github.com/users/thomsonza/following{/other_user}","gists_url":"https://api.github.com/users/thomsonza/gists{/gist_id}","starred_url":"https://api.github.com/users/thomsonza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomsonza/subscriptions","organizations_url":"https://api.github.com/users/thomsonza/orgs","repos_url":"https://api.github.com/users/thomsonza/repos","events_url":"https://api.github.com/users/thomsonza/events{/privacy}","received_events_url":"https://api.github.com/users/thomsonza/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/snipe/snipe-it/labels/planned","name":"planned","color":"fbca04"},{"url":"https://api.github.com/repos/snipe/snipe-it/labels/ready%20for%20dev","name":"ready for dev","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-02-24T06:01:18Z","updated_at":"2015-08-14T04:40:01Z","closed_at":null,"body":"When checking assets out to users it would be great if it was possible to get a list of users from LDAP rather than having to add each of them individually.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/3602227-user-import-with-ldap?utm_campaign=plugin&utm_content=tracker%2F505106&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F505106&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/snipe/snipe-it/issues/comments/130964160","html_url":"https://github.com/snipe/snipe-it/issues/126#issuecomment-130964160","issue_url":"https://api.github.com/repos/snipe/snipe-it/issues/126","id":130964160,"user":{"login":"aalaily","id":2475759,"avatar_url":"https://avatars.githubusercontent.com/u/2475759?v=3","gravatar_id":"","url":"https://api.github.com/users/aalaily","html_url":"https://github.com/aalaily","followers_url":"https://api.github.com/users/aalaily/followers","following_url":"https://api.github.com/users/aalaily/following{/other_user}","gists_url":"https://api.github.com/users/aalaily/gists{/gist_id}","starred_url":"https://api.github.com/users/aalaily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aalaily/subscriptions","organizations_url":"https://api.github.com/users/aalaily/orgs","repos_url":"https://api.github.com/users/aalaily/repos","events_url":"https://api.github.com/users/aalaily/events{/privacy}","received_events_url":"https://api.github.com/users/aalaily/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T04:40:01Z","updated_at":"2015-08-14T04:40:01Z","body":"***If this is still of interest***, I have created and tested an LDAP sync function.  My goal was to create users that would never have access to the system but that use our services... hence I only need to track what they have and potentially communicate with them. \r\n***How it works***\r\nYou configure LDAP via an ldap.php file (url, usrename, password, search query, etc...) and then when you hit sync, the application connects to LDAP and fetches the required fields.  Users are then created sequentially.  For each user, a note is added to indicate that they were created using the LDAP sync script.  In addition all accounts are automatically activated and no passwords are emailed.  I've been able to import 5,000+ users in one go using it.  I'm happy to submit a pull request but will need information on whether or not I need to create a specific branch (or the process defined for this snipe-it)\r\n***Some screenshots***\r\nScreen 1\r\n![ldap-sync](https://cloud.githubusercontent.com/assets/2475759/9267354/ba6bc8b8-421b-11e5-8152-f2ac04fd3b47.png)\r\nScreen 2\r\n![ldap-sync-page](https://cloud.githubusercontent.com/assets/2475759/9267360/c2e0b936-421b-11e5-8cf5-644fab30c909.png)\r\n"}}