{"action":"created","issue":{"url":"https://api.github.com/repos/snipe/snipe-it/issues/3033","repository_url":"https://api.github.com/repos/snipe/snipe-it","labels_url":"https://api.github.com/repos/snipe/snipe-it/issues/3033/labels{/name}","comments_url":"https://api.github.com/repos/snipe/snipe-it/issues/3033/comments","events_url":"https://api.github.com/repos/snipe/snipe-it/issues/3033/events","html_url":"https://github.com/snipe/snipe-it/issues/3033","id":194237541,"number":3033,"title":"[Feature Request] Location-specific LDAP import","user":{"login":"richardhofman6","id":6551003,"avatar_url":"https://avatars.githubusercontent.com/u/6551003?v=3","gravatar_id":"","url":"https://api.github.com/users/richardhofman6","html_url":"https://github.com/richardhofman6","followers_url":"https://api.github.com/users/richardhofman6/followers","following_url":"https://api.github.com/users/richardhofman6/following{/other_user}","gists_url":"https://api.github.com/users/richardhofman6/gists{/gist_id}","starred_url":"https://api.github.com/users/richardhofman6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardhofman6/subscriptions","organizations_url":"https://api.github.com/users/richardhofman6/orgs","repos_url":"https://api.github.com/users/richardhofman6/repos","events_url":"https://api.github.com/users/richardhofman6/events{/privacy}","received_events_url":"https://api.github.com/users/richardhofman6/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-08T03:22:50Z","updated_at":"2016-12-09T00:18:59Z","closed_at":"2016-12-09T00:18:59Z","body":"#### Expected Behavior (or desired behavior if a feature request)\r\n\r\nThis feature request is for location-specific LDAP filters. These would be hugely beneficial for automatic location assignment to imported users. For example, one might have two locations: Australia and UK.\r\n\r\nAustralia has an LDAP filter `&(objectCategory=person)(objectClass=user)(memberof=CN=Australia Office,OU=Users,DC=example,DC=com)`\r\nUK has a different LDAP filter: `&(objectCategory=person)(objectClass=user)(memberof=CN=UK Office,OU=Users,DC=example,DC=com)`\r\n\r\nWhen the LDAP import is triggered, it could first check if any locations have filters, and iterate through those, importing with location assignment for each new user. Failing that, it could fall back to the current method of having a global LDAP filter.\r\n\r\n-----\r\n\r\n#### Actual Behavior\r\nCurrently, the only import option is to have one filter, and to run the import against a specific location. This means that every imported user is assigned to the selected location at runtime, and as the filter setting is global, importing users to differing locations is a cumbersome process, easily reversible by accident.\r\n\r\n-----\r\n#### Please provide answers to these questions before posting your bug report:\r\n\r\n- Version of Snipe-IT you're running: v3.6.1 build 5 (g6f9a82f\r\n- What OS and web server you're running Snipe-IT on: Apache/2.4.6 (CentOS)\r\n- What method you used to install Snipe-IT (install.sh, manual installation, docker, etc): manual"},"comment":{"url":"https://api.github.com/repos/snipe/snipe-it/issues/comments/265896150","html_url":"https://github.com/snipe/snipe-it/issues/3033#issuecomment-265896150","issue_url":"https://api.github.com/repos/snipe/snipe-it/issues/3033","id":265896150,"user":{"login":"richardhofman6","id":6551003,"avatar_url":"https://avatars.githubusercontent.com/u/6551003?v=3","gravatar_id":"","url":"https://api.github.com/users/richardhofman6","html_url":"https://github.com/richardhofman6","followers_url":"https://api.github.com/users/richardhofman6/followers","following_url":"https://api.github.com/users/richardhofman6/following{/other_user}","gists_url":"https://api.github.com/users/richardhofman6/gists{/gist_id}","starred_url":"https://api.github.com/users/richardhofman6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardhofman6/subscriptions","organizations_url":"https://api.github.com/users/richardhofman6/orgs","repos_url":"https://api.github.com/users/richardhofman6/repos","events_url":"https://api.github.com/users/richardhofman6/events{/privacy}","received_events_url":"https://api.github.com/users/richardhofman6/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T00:18:59Z","updated_at":"2016-12-09T00:18:59Z","body":"@snipe Indeed there are - not sure why I hadn't spotted them until now! I'll close this for now, looking forward to v3.6.2!"}}
{"actor":{"display_login":"richardhofman6"}}