snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

[feature request] add LDAP/AD location filed in LDAP setting

Open chenboshiun-zz opened this issue 10 years ago • 8 comments

Hello

we use LDAP/AD sync feature to update people's base profile(EX: password, mail, Employee Num...etc), but no Location field, so we must select location and update all member profile, but some member locate in different office, so correct member step by step

because we have location in LDAP , for example:

extended LDIF LDAPv3 base <dc=xxxx,dc=com> (default) with scope subtree filter: cn=jackchen requesting: ALL

jackchen, people, xxxxx.com dn: cn=jackchen,ou=people,dc=xxxx,dc=com mobile: 0xxx-xx-xxx o: xxxxx-xxxxx-xxxxx givenName: xxxx sn: jackchen ou: people l: Build 9F10

i hope to add LDAP/AD location filed in LDAP setting, Thanks.

chenboshiun-zz avatar Nov 18 '16 11:11 chenboshiun-zz

Syncing the manager and company property would be useful as well.

drcryo avatar Dec 06 '16 16:12 drcryo

Again, all this gets tricky, since location and manager fields tie into other fields. If a location or a manager don't exist, for example, we have to create them on the fly during the sync, whoch can slow things down. It's why we haven't done that already. It's not out of the question, but when you're importing thousands and thousands of LDAP users, additional overhead can mean the webpage itself times out before the process is complete.

snipe avatar Dec 06 '16 16:12 snipe

Thank you for quick answer and totally agree to that. Is there any chance to move this options to env file as setting, so users can choose what to sync depends on size of their directory?

drcryo avatar Dec 06 '16 17:12 drcryo

Not in the .env, no, we'd probably just add it to the LDAP settings with the other mapped fields.

snipe avatar Dec 06 '16 18:12 snipe

As i also had a look on the Manager Field within AD and Snipe-It. Maybe you can set the requirement that the manager has to be part of the LDAP Focus the user want's to load into Snipe-It. Just to prevent additional functions and processes during import

Guenny0488 avatar Jan 18 '17 07:01 Guenny0488

Hello,

we just upgraded to 3.6.4.

We do have exact the same issue, we need to adjust the query every time we do a sync. It would already be sufficient if the filter could be defined together with location in the CMD execution as an option.

This would allow us to run two cron jobs and therefore sync by location.

I am not a fan of patching files manually out of the stable branches like described here: https://github.com/snipe/snipe-it/pull/3176/commits/89fa3d65de35d29a1bbdab4f811a3254de8aa202

So our current workaround is to have a script to validate the value of settings.ldap_filter in the db, adjusting it to the need and running the command line ldap sync with location. This is done for each location automatically.

Thanks Stefan

skleinau avatar Mar 27 '17 08:03 skleinau

I believe this may correspond to what I am trying to do currently.

Is there any way to sync LDAP Field: Office > SnipeIT User Field: Location?

If this is in relation what is the status of this? Is it included in 4.0?

danieldavidson123 avatar Mar 28 '17 16:03 danieldavidson123

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Jan 20 '18 08:01 stale[bot]