Add users through script
Moderator: Project members
Add users through script
Is there any way to add user through something like a php script? My server is running on windows 2003 with php but working with the xml file shouldn't be too bad... except for the password. Any ideas?
Maybe this post can help you:
http://filezilla.sourceforge.net/forum/ ... .php?t=170
http://filezilla.sourceforge.net/forum/ ... .php?t=170
That won't help, that's only for the client.
To change the password for the server, edit the XML file like you normally do in php. Use something like md5($password) to create the md hash of the pw and store it in the xml file. See http://www.php.net/md5
To change the password for the server, edit the XML file like you normally do in php. Use something like md5($password) to create the md hash of the pw and store it in the xml file. See http://www.php.net/md5
-
- 504 Command not implemented
- Posts: 10
- Joined: 2004-04-13 17:48
- Location: Geisenheim, Germany
Hello bamnet,
If you want to check if a entered password is right and you have stored the password as a MD5 checksum, you have to create the checksum of the entered password. Then, you compare it to the stored checksum. If the checksum correspond, the password is right.
Regards
Patrick Canterino
Right.bamnet wrote:So I would run the users password throught the md5($password _entered) command in php and put that in the xml file?
MD5 creates a checksum, it does not encode a string, also you can't convert this checksum into the corresponding string.bamnet wrote:Also, how can i decypt the password? So i could email it to users if they forgot?
If you want to check if a entered password is right and you have stored the password as a MD5 checksum, you have to create the checksum of the entered password. Then, you compare it to the stored checksum. If the checksum correspond, the password is right.
Regards
Patrick Canterino