Page 1 of 1

How to import users from another FTP

Posted: 2021-11-19 11:22
by radjoc
Hello,

I'm wondering is it possible and how, if yes, to import users from another ftp server? Users' passwords in that I would like to import are in plain text. Is it possible and how to convert them to this salted hash?

Thanks

Re: How to import users from another FTP

Posted: 2021-11-19 12:03
by oibaf
It is certainly possible if the passwords are in clear, but there's no automatic way to do it: you go to write your own script that emits a compatible users.xml file for that. There's currently no documentation about it, but it should be self-evident once you do some experiments with creating users through the UI.

The program filezilla-server-crypt can be abused to spit out the password-related config for each user. It can be invoked this way:

Code: Select all

filezilla-server-crypt this-is-the-password user.password
And it will print out something like this:

Code: Select all

--user.password@index=1 --user.password.hash=dNFbyPBgME2jurr17VCv05JikQvsN/ERLpbzr+OCefM --user.password.salt=lmIeMEo9ZDLQY7JiGzSCgHR838u4jeGDJig+Oe2iFdc --user.password.iterations=100000
Which you can translate into an xml like this:

Code: Select all

<password index="1">
	<hash>dNFbyPBgME2jurr17VCv05JikQvsN/ERLpbzr+OCefM</hash>
	<salt>lmIeMEo9ZDLQY7JiGzSCgHR838u4jeGDJig+Oe2iFdc</salt>
	<iterations>100000</iterations>
</password>

Re: How to import users from another FTP

Posted: 2021-11-19 12:25
by radjoc
Thank you!!!

Re: How to import users from another FTP

Posted: 2021-11-25 11:36
by radjoc
I have new problem now. I created batch file that generates hash and salt passwords from my plain text passwords, using filezila-server-crypt.exe
But, when I paste hash and salt in users.xml file and try to login, I recevie 'invalid password' message.

What I then noticed is this, when I set password through the admin console for the user created directly in users.xml, then I login as that users, login works. AFTER THAT, I paste hash and salt for the user and then IT WORKS!

It's as if the users needs to login first and only after that I can modify its hash/salt password in users.xml

Anyone can help with this?

Thanks

Re: How to import users from another FTP

Posted: 2021-11-25 15:54
by botg
Did you restart the server after modifying the settings file underneath the server?

Re: How to import users from another FTP

Posted: 2021-11-26 08:03
by radjoc
I found the cause, I misspeled description by one letter, and didn't notice it.

Thank you!

Re: How to import users from another FTP

Posted: 2021-11-26 08:41
by oibaf
Can you please paste here one of the "user" entries in the users.xml file that you created?

Re: How to import users from another FTP

Posted: 2021-11-26 09:09
by radjoc
I found the cause, I misspeled description by one letter, and didn't notice it.

Thank you!

Re: How to import users from another FTP

Posted: 2022-03-09 16:48
by mahery
Bonjour
Quelqu'un peut me donner une script PHP pour la génération de mots de passe pour filezilla version 1.3 s'il vous plaît. merci de votre aide.

Re: How to import users from another FTP

Posted: 2022-03-10 01:03
by boco
This forum is English only. Please write in English.

Re: How to import users from another FTP

Posted: 2022-03-10 08:57
by mahery
Hello
Can someone give me a PHP script for generating passwords for filezilla version 1.3 please. Thank you for your help.

Re: How to import users from another FTP

Posted: 2023-09-29 07:18
by Seiyarmaster
Hello.
I am trying to create a batch to simplify the administration of Filezilla Server.
I'm writing to ask you a question about the filezilla server crypt application.
This application is supposed to generate user passwords, but I'm unable to get it to work on the command line.
If I'm not mistaken and this application does indeed allow you to do this, could you please give me a concrete example of its use?
Thank you very much.