LDAP Sync
Large LDAP DirectoriesIn your
.env
file, you may need to modify theLDAP_MEM_LIM
(expressed as '500M' for 500MB) and/or theLDAP_TIME_LIM
(expressed in seconds) in order to avoid a large LDAP sync from timing out or exhausting all memory.The default time limit is 10 minutes. The default memory limit is 500MB.
You can set up a cron to automatically sync LDAP users using the following:
location
and location_id
are optional.
So for example, if you know the location_id of the location you're trying to add the users to, you could use:
Or if you know the name of the location, you could use:
See the full documentation on LDAP Syncing for more information.
For Hosted Snipe-IT CustomersIf you need to set up an LDAP sync cron job on the hosted platform, just shoot us an email at [email protected] and we'll get you sorted. :)
Updated 10 days ago