Devlin Wilhelm
Cadet
- Joined
- Mar 28, 2016
- Messages
- 2
For awhile I was using a wget script on another debian machine to pull my config db encrypt it and upload it to my cdn but I feel something was changed in how freenas authenticates users as I cant get the script to work anymore. Heres my code maybe someone can help.
Code:
/opt/bin/wget --keep-session-cookies --save-cookies /opt/backup/cookies.txt --no-check-certificate --post-data='id_username=root&id_password=$Pass&next=/' -O /dev/null 'https://10.0.1.5/account/login/' /opt/bin/wget --keep-session-cookies --load-cookies /opt/backup/cookies.txt --no-check-certificate 'http://10.0.1.5/system/config/save/' -O -|openssl des3 -salt -k $Salt|dd of=/mnt/cdnbackup/FREENAS/freenas_$Date.db