Replies: 10 comments
-
Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. |
Beta Was this translation helpful? Give feedback.
-
As far as i can see, the schedule:run don't sync LDAP users. It would be nice to have an
|
Beta Was this translation helpful? Give feedback.
-
Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know! |
Beta Was this translation helpful? Give feedback.
-
I'm running Snipe-IT inside docker. If I go inside What am I doing wrong? Obviously, I need to make the cron work but even the simple command doesn't work for me and I'm not sure why... |
Beta Was this translation helpful? Give feedback.
-
@SonGokussj4 Did you run as user |
Beta Was this translation helpful? Give feedback.
-
[ SOLVED ]
root@b31c2763ad96:/var/www/html# php artisan snipeit:ldap-sync --json_summary
{
"error":true,
"error_message":"Your app key has changed! Could not decrypt LDAP password using your current app key, so LDAP authentication has been disabled. Login with a local account, update the LDAP password and re-enable it in Admin > Settings.",
"summary":[]
} After some googling I found out I have to have # docker-compose.yml
services:
snipeit:
image: linuxserver/snipe-it:6.0.11
...
env_file: .env
volumes:
- ./app_data:/config
...
Then the manual command works: cd /my/snipeit_folder
docker-compose exec snipeit php /var/www/html/artisan snipeit:ldap-sync --json_summary After some hickups, I've successfully ran a cronjob
Hope this helps someone. Edit (2023-07-26): Artisan is newly in /app/www/artisan |
Beta Was this translation helpful? Give feedback.
-
You could also use something like Ofelia and add some labels to the snipeit service to run the sync job. |
Beta Was this translation helpful? Give feedback.
-
Wow! AwesomeI didn't know about this one. |
Beta Was this translation helpful? Give feedback.
-
Just a note for anyone on version 6.1.2 - something changed. |
Beta Was this translation helpful? Give feedback.
-
Anyone using v6.3.2 0 */6 * * * /usr/bin/php /var/www/html/snipeit/artisan snipeit:ldap-sync >> /dev/null 2>&1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How to use task scheduler make auto run "LDAP Sync" in Pepole module
php artisan snipeit:ldap-sync did not work, can not add new users from AD.
Beta Was this translation helpful? Give feedback.
All reactions