0042: Installing Free Filezilla FTP Server with LDAP Authentication

This commit is contained in:
i12bretro 2021-04-08 00:05:01 -04:00
parent 400167b1ba
commit 1b89c8e0c1

148
0042.html Normal file
View file

@ -0,0 +1,148 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Installing Free Filezilla FTP Server with LDAP Authentication</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script type="text/javascript">
$(function(){
$('textarea').each(function(i,e){
theTextarea = $(this);
theTextarea.height((theTextarea[0].scrollHeight-5) +'px');
});
$('li').each(function(i,e){
var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
$(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
$(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
});
$('code,div.codeBlock,textarea.codeBlock').each(function(i,e){
theElement = $(this);
var lines = theElement.html().split("\n");
theElement.empty();
for(l=0;l<lines.length;l++){
if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ lines[l].replace(/"/g, '&quot;') +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
} else {
theElement.append(lines[l]);
}
}
});
$(document).on('click','input.copy-text',function(){
theButton = $(this);
$('input.copy-text').attr('src','images/clipboard.png');
$('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps');
try {
if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
$('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
} else {
$('#'+ theButton.attr('rel')).addClass('copy-animation');
}
navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
theButton.attr('src','images/clipboard_active.png');
} catch(err) {
}
return false;
});
$(document).on('click','input.completeBox',function(){
theBox = $(this);
$('#'+ theBox.attr('rel')).addClass('strikethrough');
theBox.prop('disabled',true);
theBox.parent('li').prevAll().each(function(i,e){
theLI = $(this);
if(theLI.find('input[type=checkbox]').not(':checked')){
$('#'+ theLI.find('input[type=checkbox]').attr('rel')).addClass('strikethrough');
theLI.find('input[type=checkbox]').prop('checked',true).prop('disabled',true);
}
});
});
if(window.self !== window.top){
window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
}
});
</script>
<link href="css/steps.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="gridContainer">
<div class="topMargin"></div>
<div id="listName" class="topMargin">
<h1>Installing Free Filezilla FTP Server with LDAP Authentication</h1>
</div>
<div></div>
<div id="content">
<h2>Installing FileZilla Server</h2>
<ol>
<li>Download FileZilla with LDAP support, FzLDAP <a href="https://sourceforge.net/projects/fzldap/" target="_blank">Download</a></li>
<li>Install the downloaded executable</li>
<li>Launch FileZilla Server Administration</li>
<li>Select Edit &gt; Settings from the top navigation</li>
<li>Click LDAP from the left navigation</li>
<li>Check the Enable LDAP support box</li>
<li>Fill out the LDAP server, port and domain name</li>
<li>Click OK</li>
</ol>
<h2>Adding Individual LDAP Users</h2>
<ol>
<li>Back in&nbsp;Server Administration click Edit &gt; Users</li>
<li>Click the Add button under Users</li>
<li>Enter the username exactly as it is in LDAP</li>
<li>Leave the Password checkbox unchecked</li>
<li>Under the Check password in section&nbsp;uncheck LOCAL and check the LDAP option</li>
<li>Click Shared folders under the Page section</li>
<li>Click the Add button and browse to folder(s) to share with the new user</li>
<li>Set the users permissions to the right of the directories box</li>
<li>Click OK once finish with configuration.</li>
</ol>
<h2>Batch Importing LDAP Users</h2>
<ol>
<li>From the Start menu launch FzLDAP Import</li>
<li>Fill out the LDAP server information<br />
Server: i12bretro.local<br />
Port: 389<br />
Domain: i12bretro.local<br />
User:&nbsp;readonly_svc<br />
Password:&nbsp;Read0nly!!<br />
Base DN:&nbsp;DC=i12bretro,DC=local<br />
Search DN:&nbsp;CN=Users,DC=nostalgicrecords,DC=com<br />
Search: cn=*</li>
<li>A list of users found with the LDAP search will display &gt; Click Next</li>
<li>Set the FTP root directory path</li>
<li>Click the Generate button</li>
<li>A summary will be displayed &gt; Click OK</li>
<li>Click the ed button next to users.txt to view the generated users file</li>
<li>Open File Explorer and navigate to&nbsp;C:\Program Files (x86)\FileZilla Server</li>
<li>Edit FileZilla Server.xml in a text editor</li>
<li>Copy the user(s) generated in users.txt to the Users node of&nbsp;FileZilla Server.xml</li>
<li>Save the changes to&nbsp;FileZilla Server.xml</li>
<li>Right click on the Start button &gt; Run &gt; type services.msc &gt; Press Enter</li>
<li>Find the&nbsp;FileZilla Server FTP server and restart the service</li>
<li>Load FileZilla Server Administration</li>
<li>Click Edit &gt; Users from the top navigation</li>
<li>The imported user(s) should be listed and editable</li>
</ol>
<h2>Testing LDAP Authentication</h2>
<ol>
<li><label for="cb_li_445432_0">Download FileZilla FTP client&nbsp;</label><label for="cb_li_445432_0"><a href="https://filezilla-project.org/download.php?show_all=1" target="_blank">Download</a></label></li>
<li><label for="cb_li_743670_1">Extract the downloaded FileZilla .zip file</label></li>
<li><label for="cb_li_743670_1">Launch FileZilla.exe</label></li>
<li>Enter the FileZilla server DNS name or IP address in the host field</li>
<li>Enter the LDAP credentials in the username and password fields</li>
<li>Click the Quickconnect button</li>
</ol>
</div>
</div>
</body>
</html>