How to import users from another FTP

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
radjoc
500 Command not understood
Posts: 5
Joined: 2021-11-19 11:17

How to import users from another FTP

#1 Post by radjoc » 2021-11-19 11:22

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

User avatar
oibaf
Contributor
Posts: 396
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: How to import users from another FTP

#2 Post by oibaf » 2021-11-19 12:03

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>

radjoc
500 Command not understood
Posts: 5
Joined: 2021-11-19 11:17

Re: How to import users from another FTP

#3 Post by radjoc » 2021-11-19 12:25

Thank you!!!

radjoc
500 Command not understood
Posts: 5
Joined: 2021-11-19 11:17

Re: How to import users from another FTP

#4 Post by radjoc » 2021-11-25 11:36

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

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: How to import users from another FTP

#5 Post by botg » 2021-11-25 15:54

Did you restart the server after modifying the settings file underneath the server?

radjoc
500 Command not understood
Posts: 5
Joined: 2021-11-19 11:17

Re: How to import users from another FTP

#6 Post by radjoc » 2021-11-26 08:03

I found the cause, I misspeled description by one letter, and didn't notice it.

Thank you!
Last edited by radjoc on 2021-11-26 09:08, edited 1 time in total.

User avatar
oibaf
Contributor
Posts: 396
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: How to import users from another FTP

#7 Post by oibaf » 2021-11-26 08:41

Can you please paste here one of the "user" entries in the users.xml file that you created?

radjoc
500 Command not understood
Posts: 5
Joined: 2021-11-19 11:17

Re: How to import users from another FTP

#8 Post by radjoc » 2021-11-26 09:09

I found the cause, I misspeled description by one letter, and didn't notice it.

Thank you!

mahery
504 Command not implemented
Posts: 6
Joined: 2022-03-09 16:34
First name: Eric
Last name: Ibrahim

Re: How to import users from another FTP

#9 Post by mahery » 2022-03-09 16:48

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.

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: How to import users from another FTP

#10 Post by boco » 2022-03-10 01:03

This forum is English only. Please write in English.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

mahery
504 Command not implemented
Posts: 6
Joined: 2022-03-09 16:34
First name: Eric
Last name: Ibrahim

Re: How to import users from another FTP

#11 Post by mahery » 2022-03-10 08:57

Hello
Can someone give me a PHP script for generating passwords for filezilla version 1.3 please. Thank you for your help.

Seiyarmaster
500 Command not understood
Posts: 1
Joined: 2023-09-29 07:09

Re: How to import users from another FTP

#12 Post by Seiyarmaster » 2023-09-29 07:18

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.

Post Reply