I use the full command and enter the command line and the passwords are encrypted as that's normal.
[Sharepoint]
type = webdav
vendor = sharepoint
user = user1@outlook.com
pass = JGAiVOb3LlZvyWRaMKSgIBRtgo_aAD13jts
url = https://google.com/
[testsp]
type = webdav
url = https://blah.com
vendor = sharepoint
user = test@joe.com
pass = wXdA2D5r6Kb6zmry_4EbOe6SYcMvHu3F
jsummers
(Jack)
March 27, 2020, 11:20am
42
Don't understand why mine is not????
Same commands see out in conf file
[test2]
type = webdav
url = https://google.com/
vendor = sharepoint
user = user1@outlook.com
pass = OvM9hiUeMWXWmfA5cPvao5Qnog_Tow4S
[Sharepoint]
type = webdav
vendor = sharepoint
user = user1@outlook.com
pass = yek9gEPSFXNP5yKF2PCr5FAUNE2zdp
url = https://google.com/
jsummers
(Jack)
March 27, 2020, 11:22am
43
I take one letter off the end of the password and it works? Crazy
Yeah, that's why I tend to ask for the same thing so we can replicate the issue.
That looks like a bug with the terms of the length of the password as it should not do that.
@ncw - is there a max on password length as if I use yek9gEPSFXNP5yKF2PCr5FAUNE2zd it doesn't encrypt it but yek9gEPSFXNP5yKF2PCr5FAUNE2z works.
jsummers
(Jack)
March 27, 2020, 11:27am
45
Works fine if you do I manually though. I can reduce the password length but good to know if there is with that specific command.
Kind Regards
Jack
ncw
(Nick Craig-Wood)
March 27, 2020, 9:48pm
46
Animosity022:
That looks like a bug with the terms of the length of the password as it should not do that.
@ncw - is there a max on password length as if I use yek9gEPSFXNP5yKF2PCr5FAUNE2zd it doesn't encrypt it but yek9gEPSFXNP5yKF2PCr5FAUNE2z works
config create tries to guess whether passwords are obscured or not. It you put in in a very long password made entirely of A-Za-z0-9 then it can get confused.
You can use rclone config password
to set the password separately.
See https://github.com/rclone/rclone/issues/3728 for some discussion.
jsummers
(Jack)
March 31, 2020, 10:07am
47
Hello @ncw
Thank you for your reply. I have all my script working fine now in terminal however I am pulling my hair out when trying to run it inside a pkg. The pkg runs as root and I have run the commands in terminal as root and they work fine but not in the pkg. Extracted the content and run the post install script which works fine.
It seems the pkg is not acknowledging that rclone command is a proper command and just skips to the end of the script not performing any of my script at all. Please see script below:
#Configure RClone to Sharepoint - DOT NOT EDIT!#
sudo -- bash -c 'export RCLONE_CONFIG=/tmp/rclone.conf;sudo rclone config create Sharepoint webdav url https://URL vendor sharepoint user USER@DOMAIN.onmicrosoft.com pass PASSWORD'
#Download software - INPUT YOUR SOFTWARE PATH#
sudo rclone sync --progress --ignore-size Sharepoint:"PATH TO PKG" /Users/Shared/
#Install Software - INSTALL SCRIPT#
sudo installer -pkg "/Users/Shared/INSTALLER FILE" -target /
#Remove installer File#
sudo rm "/Users/Shared/INSTALLER FILE"
exit 0
ncw
(Nick Craig-Wood)
March 31, 2020, 11:23am
48
At a guess rclone
is not on the path in that execution environment? Try using the full path to rclone.
jsummers
(Jack)
March 31, 2020, 11:25am
49
Thank you I have to specify /usr/local/bin/rclone
at the start of my rclone commands and everything working like a charm now.
Kind Regards
Jack
1 Like
system
(system)
Closed
May 31, 2020, 7:25am
50
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.