Search found 83 matches: xml reload config

Searched query: xml reload config

by boco
2010-01-25 18:22
Forum: FileZilla Server Support
Topic: 550 Access denied
Replies: 8
Views: 15787

Re: 550 Access denied

Changing the server xml file did not solve the problem.
When changing the XML manually, you have to either restart the service or run it with the parameter "/reload-config".
by drothman66
2010-01-11 18:17
Forum: FileZilla Server Support
Topic: Managing new users via the xml file (how to reload?)
Replies: 4
Views: 1927

Managing new users via the xml file (how to reload?)

I'm using Vista and am having a few problems managing the filezilla server.xml file.

i'd like to eventually populate the file programmatically (perl) with new users.

in playing with this, i'm simply editing the file and copying the chunks of code for a user and changing that user's name, but i can't seem to get he reload to work in Vista correctly.

do i edit the desktop short cut? ("c:\program files.... " /reload-config doesn't work

nor can i get a batch file which travels to the correct folder to do the reload.

part of the problem is the spaces used in the filename. i've renamed the files (w/o spaces), but still cannot get this to work.

i'm sure it something simple, but i don't see a simply way to reload. can someone help? thanks
by rbekey
2010-01-06 23:52
Forum: FileZilla Server Support
Topic: Cannot add users or read xml file
Replies: 4
Views: 3341

Cannot add users or read xml file

Hi,

I installed Filezilla server a few days ago, and it was working perfectly. I wrote a ColdFusion script to create user accounts by editing the FileZilla Server.xml file, and that worked perfectly too. I have the Task Scheduler in Windows set to reload the configuration file (with /reload-config) every 15 minutes in case there are new users, and that worked fine too.

Then this morning I needed to reboot my server for a different reason. After the reboot, the Filezilla Service is running, and I have no problem connecting to the server with the administrative program, but nothing works. I am running everything from the console on the server:

1) The administrative interface shows no groups and no users. When I try to add a new user, I get this message:

Protocol error: Invalid data, could not import account settings.
Could not change account settings

2) I tried deleting the existing Filezilla Server.xml file, and I get the same result as above. I also tried deleting both xml files, and it did not solve the problems.

I tried re-installing FileZilla, rebooting the server again, and I get the same results as above. Do you have any idea what is wrong?

Thanks,

Ron
by botg
2010-01-05 18:52
Forum: FileZilla Server Support
Topic: We can import Data 's user from Database ?
Replies: 3
Views: 1445

Re: We can import Data 's user from Database ?

You could write yourself a script that writes the data into FileZilla Server.xml and afterwards calls "FileZilla Server.exe" /reload-config
by botg
2009-12-03 19:38
Forum: FileZilla Server Support
Topic: Remote User updates and re-upload XML File
Replies: 7
Views: 2126

Re: Remote User updates and re-upload XML File

Yes, you can change the XML file externally. Afterwards simply call "FileZilla Server.exe" /reload-config.
by santhoshsd
2009-10-26 10:35
Forum: FileZilla Server Support
Topic: How to add users to filezilla server automatically
Replies: 3
Views: 2303

Re: How to add users to filezilla server automatically

so if I have to add users to Filezilla server through a .NET program, I have to edit FileZilla Server.xml ... add the user lines and run the command "FileZilla Server.exe /reload-config".

But if I add the user directly by editing FileZilla Server.xml ... how do I encrypt the user password ?

regards
Santhosh
by botg
2009-10-24 09:07
Forum: FileZilla Server Support
Topic: How to add users to filezilla server automatically
Replies: 3
Views: 2303

Re: How to add users to filezilla server automatically

No, not possible. FileZilla Server has been specifically designed to be independent of the account system of windows.

You can however directly edit FileZilla Server.xml and afterwards call "FileZilla Server.exe" /reload-config
by boco
2009-10-04 19:41
Forum: FileZilla Server Support
Topic: Make ftp users with a PHP command
Replies: 4
Views: 2041

Re: Make ftp users with a PHP command

Modify the .xml file directly. Password is stored as it's MD5 hash. After changes, call "FileZilla Server.exe" /reload-config .
by trentonadams
2009-09-14 19:18
Forum: FileZilla Server Support
Topic: [Solved]reload-config as read-only
Replies: 10
Views: 3278

[Solved]reload-config as read-only

I've written a routine that automatically updates the "filezilla server.xml" then calls "FileZilla Server.exe" /reload-config When a user of our system modifies their account settings.

This works great most of the time, but if a series of quick updates happens then the process that updates filezilla server.xml hits a file lock. It took me a while to track down what was happening, but after using sysinternals procmon; I found that the FileZilla Server.exe /reload-config returns immediately, but that the filezilla server process is actually reading and writing from the file for a couple seconds after the cmd line call.

For now, I've made a temporary fix to the update routine to wait for a few seconds between calls to make sure the server has had a chance to finish its reload.

Would it be possible in a future release to have a version of the /reload-config that only made read calls to the xml instead of read/create/write calls?
by botg
2009-07-07 09:38
Forum: FileZilla Server Support
Topic: [HELP] Communication with C/C++ program
Replies: 2
Views: 1262

Re: [HELP] Communication with C/C++ program

Simply edit FileZilla Server.xml and afterwards call "FileZilla Server.exe" /reload-config
if the server can send my program a signal when a client upload a file?
No.
by mario.q
2009-04-08 11:15
Forum: FileZilla Server Support
Topic: php change password "FileZilla Server.exe" /reload-config
Replies: 6
Views: 25663

php change password "FileZilla Server.exe" /reload-config

I created a php page through a form that updates the user's password.
The file "FileZilla server.xml " is written with the updated password, but the FileZilla server does not reload the new configuration

I searched in this forum a way to refresh the configuration file "FileZilla Server.xml"
http://forum.filezilla-project.org/sear ... mit=Search

from the prompt the command work
"FileZilla Server.exe" /reload-config

but through a php page the command not work.
passthru('"C:\Programmi\FileZilla server\FileZilla Server.exe" /reload-config');
system('"C:\Programmi\FileZilla server\FileZilla Server.exe" /reload-config');

someone has a solution??

I am sorry for my bad English.
but the code is international
below my code
note:
the web user and the computer user are not the same,
for update the "FileZilla Server.xml" the web user must have write permission on the xml file.

Code: Select all

<div name="" align="center">
<form name="form_FileZillaServer_change_user_pass" onload="clean_form()">
  <table border="0" width="300" cellpadding="5" cellspacing="5">
    <tr>
      <td width="100%" colspan="2" align="center">cambia la tua password</td>
    </tr>
    <tr>
      <td width="50%">nome utente</td>
      <td width="50%"><input type="text" name="username" size="20" value="" onfocus="form.username.value=''";></td>
    </tr>
    <tr>
      <td width="50%">password corrente</td>
      <td width="50%"><input type="password" name="password" size="20" value=""></td>
    </tr>
    <tr>
      <td width="50%">nuova password</td>
      <td width="50%"><input type="password" name="new_password" size="20" value=""></td>
    </tr>	
    <tr>
      <td width="50%">riscrivi la nuova password</td>
      <td width="50%"><input type="password" name="ceck_new_password" size="20" value=""></td>
    </tr>	
    <tr>
      <td width="100%" colspan="2" align="center">
	  <input type="button" value="Invia" name="" onclick="ceck_form();"> - <input type="button" value="Reimposta" name="" onclick="clean_form();"></td>
    </tr>
  </table>
</form>
<script>
form=document.form_FileZillaServer_change_user_pass;
function ceck_form(){

	if(form.username.value == '' ){
	alert('inserisci il nome utente');
	form.username.focus();
	return;
	}
	
	if(form.password.value == ''){
	alert('inserisci la tua password');
	form.password.focus();
	return;
	}
	
	if(form.new_password.value == '' ){
	alert('inserisci la nuova password');
	form.new_password.focus();
	return;
	}

	if(form.ceck_new_password.value == ''){
	alert('riscrivi la nuova password');
	form.ceck_new_password.focus();
	return;
	}
	
	if(form.ceck_new_password.value != form.new_password.value){
	alert('controllo della nuova password fallito\n\nreinserisci i valori');
	form.ceck_new_password.value = '';
	form.new_password.value = '';
	form.new_password.focus();
	return;
	}
	
	if(form.ceck_new_password.value == form.new_password.value && form.password.value == form.new_password.value){
	alert('la password che desideri modificare e\' uguale alla password da modificare\n\n controlla i valori');
	form.password.value = '';
	form.ceck_new_password.value = '';
	form.new_password.value = '';
	form.password.focus();
	return;
	}

send_form();
}

function clean_form(){
	form.username.value = '';
	form.password.value = '';
	form.new_password.value = '';
	form.ceck_new_password.value = '';
	form.method.value = '';
	form.action.value = '';
}

function send_form(){
	form.method='POST';
	form.action='<?php echo $_SERVER['PHP_SELF']; ?>';
	form.submit();
}

</script>
<?php

echo '<hr><hr>';
$xmlfile = 'C:\Programmi\FileZilla Server\FileZilla Server.xml';

if(isset($_POST['username']) &&
	isset($_POST['password']) &&
	isset($_POST['new_password']) &&
	isset($_POST['ceck_new_password']))
{
	$username = $_POST['username'];
	$password = $_POST['password'];
	$new_password = $_POST['new_password'];
	$ceck_new_password = $_POST['ceck_new_password'];
	echo 'user name'.$username.' - pass '.md5($password).' - new pass'.md5($new_password) ;
	ceck_user_pass($username,$password,$new_password,$xmlfile);
}elseif(isset($_GET['user']) && $_GET['user']=='0'){
    unset($username);unset($password);unset($new_password);unset($ceck_new_password);
    echo '<font color="red" size="+2">nome utente o password errati</font><br>inserisci nome e password corrente<br>ed i valori della nuova password';
}elseif(isset($_GET['user']) && $_GET['user']=='1'){
	echo '<font color="blue" size="+2">operazione riuscita<br>password aggiornata</font>';
}else{
	echo 'inserisci nome e password corrente<br>ed i valori della nuova password';
}

function ceck_user_pass($username,$password,$new_password,$xmlfile){
$url='http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
echo '<br>'.$username.' - '.$password;
$xml = simplexml_load_file($xmlfile);
$stored_user_pass = $xml->xpath('Users/User[@Name="'.$username.'"]/Option[@Name="Pass"]');
$stored_user_pass = $stored_user_pass[0];
	if ($stored_user_pass == true && md5($password)==$stored_user_pass){
		change_pass($username,$new_password,$xmlfile);
		//echo '<br>stored_user_pass->'.$stored_user_pass;
	}else{
		Header("Location:$url?user=0");
		//echo '<br>nome utente o password errati';
	}
}

function change_pass($username,$new_password,$xmlfile){
$doc = new DOMDocument;

$doc->Load($xmlfile);

$xpath = new DOMXPath($doc);

$query = '//Users/User[@Name="'.$username.'"]/Option[@Name="Pass"]';

$entries = $xpath->query($query);

	foreach ($entries as $entry) {
	   $entry->nodeValue=md5($new_password);
	}

$doc->save($xmlfile);

/*
this not work
the server does not reload the new configuration "FileZilla Server.xml"
*/
//passthru('"C:\Programmi\FileZilla server\FileZilla Server.exe" /reload-config');
//system('"C:\Programmi\FileZilla server\FileZilla Server.exe" /reload-config');
passthru('"C:\Programmi\FileZilla server\FileZilla Server.exe" -reload-config');

$url='http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
Header("Location:$url?user=1");
}
echo '<hr><hr>';
?>
</div end form>
if you want to use this code
update the value for $xmlfile="C:\..path...\FileZilla Server.xml"
and the path for passthru or system function.

ciao
Mario
by botg
2009-03-31 21:58
Forum: FileZilla Server Support
Topic: User passwords
Replies: 7
Views: 2118

Re: User passwords

Create some script that directly modified FileZilla Server.xml and afterwards calls "FileZilla Server.exe" /reload-config
by monorailpilot
2009-03-19 13:24
Forum: FileZilla Server Support
Topic: Reading config from multiple XML files
Replies: 1
Views: 974

Reading config from multiple XML files

Is there a way to pull in the configuration parameters from multiple XML files? For example, to have a users.xml that contained all the user data which was then loaded from Filezilla Server.xml?

I don't care about updating the data from the interface, I can handle that through scripting and reload config commands.
by Gustav
2009-02-21 13:26
Forum: FileZilla Server Support
Topic: command line arguments
Replies: 11
Views: 2664

Re: command line arguments

So i need a 3rd party solution to edit the xml config?
Or dose the reload command comes with arguments to change the config itself?

... still confused :?
by ballen
2009-02-18 14:11
Forum: FileZilla Server Support
Topic: Does reload-config parameter disconnect connected users?
Replies: 1
Views: 1008

Does reload-config parameter disconnect connected users?

Hi all,

Firstly I would like to thank Tim Kosse and the rest of the FileZilla team for such an ace project/product!! :D

Secondly...
Please could you confirm that when I execute the reload-config parameter against the FileZilla Server exe that this will re-load the configuration without restarting the service really I want to know this because im working on a PHP script to create user's in FileZilla which once the user has been added to the XML config file I will force filezilla to re-load it configuration however I want to ensure that currently connected user's are not disconnected during the server reload??

Thank you and hope to hear from you soon,

Kindest regards,
Bobby Allen