Hello, nice work! Found it while evaluating possibilities to handle shares via cmd.
It works so far but only with ālocalā accounts. If I want to connect as a user who was imported from an ldap dircectory, it sadly does not work.
Users logged into NC/ldap get kind of a user-id, e.g. ā841e3532-54d9-1d3d-8fea-d312ceeef81dā, a local admin would get āadminā instead. In the data/ dir, the folder of that ldap user is like the name ā841e35ā
To log into NC a user uses its ldap username, e.g. jdoe (for John Doe). If I use ājdoeā then, it fails: user unknown. If I use ā841e35ā¦ā it says: No access, username/password wrong.
I replicated it with the curl command to get more information back.
thanks for your feedback. I developed the script as a piece of glue to connect my photography workflow on a synology NAS to nextcloud running in a docker image on the same NAS. Has worked perfectly since I implemented it.
That was my itch and I scratched it with the current scripts functionality.
LDAP and remote user support is outside the scope of what i require and my time is limited.
However if you can cleanly add the LDAP/remote user functionality to my script I will update the master copy here.
Just send me the whole modified script or a patch diff against the latest 1.30 version available here:
Hi Iain
thank you for the answer. For the moment, I solved it with a local user. Iāll take a deeper look into it some time later because we have to have a solution quickly. If I have to implement changes or have to add functionality Iāll let you know. Letās see how it works for the staff first.
Cheers! -jan
Hi
Iām trying to use cloud-cli but canāt succeed
Our login is checked through LDAP. It is not our email address.
I tried the following using the curl command line showed with -v option :
User/Password ==> Principal with name xxx not found
Email/Password ==> password login forbidden
Emaill/AppPassword ==> No public access to this resource., Username or password was incorrect, No āAuthorization: Bearerā header found. Either the client didnāt send one, or the server is mis-configured, Username or password was incorrect