CrushMFT Documentation

This page in: CrushFTP 11, CrushFTP 10

Plugins overview#

A plugin adds one ability to the server. Most of them answer one question at a login, "who is this, and what may they see?", by asking another system: a directory, an identity provider, your own application. A few watch files as they arrive, or look after the server itself.

Plugins are set up in the Plugins section of Preferences. That page describes the section: the list, Enabled and Debug, and several configurations of one plugin. This page says which plugin is for what, and describes what many of them share.

Which plugin for what#

Signing in with another system's accounts#

You have Use Works for
Active Directory, OpenLDAP or another directory CrushLDAPGroup every protocol that sends a password
an identity provider that speaks OpenID Connect: Microsoft Entra, Google, Okta, Cognito, Apple CrushOIDC the browser
an identity provider that speaks SAML: ADFS, Entra, Okta, Keycloak, IAM Identity Center SAMLSSO the browser
a RADIUS server Radius every protocol that sends a password
your own web application, which knows the users WebApplication every protocol that sends a password
your own portal, which should pass its signed-in users on CrushSSO the browser
nothing but folders: a folder per user, made by hand MagicDirectory every protocol

All ways to sign in, with and without plugins, are compared in Every way to sign in.

A second step at login#

Use For
CrushDuo Duo Security: a push to the phone, or a code
Radius a RADIUS server that asks for a code
no plugin the server's own second factor, with an authenticator app: Two-factor sign-in

Users and their folders#

Use For
HomeDirectory a home folder made at the first login
MagicDirectory users that exist because a folder exists

Files as they arrive#

Use For
ContentBlocker only certain kinds of file in a folder
AutoUnzip unpacking uploaded zips
FileEncryptDecrypt encrypting or decrypting a file in place

For anything more than these, an upload event that starts a job is the tool.

The server itself#

Use For
LetsEncrypt a free certificate, renewed by itself. Also by DNS.
CrushNoIP a host name that follows a changing address
PreferencesController other settings at other times of day

Other systems, when something happens#

Use For
CrushTask jobs: the plugin behind the Jobs app
PostBack calling a web address for the files of an event. Older; an HTTP task does more.
LaunchProcess starting a program for the files of an event. Older; an Execute task does more.

No longer plugins#

Earlier Now
CrushOAuth CrushOIDC
CrushSQL a choice of the server: users in a database, in User Config
FilterCommand was an example in source code

Three more screens#

Preferences has screens for three plugins that have no page of their own here. None of them is among the plugins a server of version 27 comes with; they are described from their screens.

Plugin Is Settings of its own
SecureAuth logins checked by a SecureAuth server, with its second factor. Enterprise licence. The screen is that of Radius with another top. SecureAuth Server Host, Port, SSL, Realm, Application ID, Application Key; then SecureAuth only used for Authentication, the template user, the home folder, and SecureAuth "Filter-Id" role mapping
SalesForce logins checked by posting to an address of Salesforce Post URL, Post Content, Server Item; then SalesForce only used for Authentication, the template user and the home folder
UniSSO single sign-on with a shared secret, with a directory lookup for the user. The screen is that of CrushSSO with five more fields. Return URL, Domain, Home Directory Fields, Shared Secret, SSO URL

Which plugins a server has#

A server of version 27, built from the current sources, comes with eleven plugin files: ContentBlocker, CrushDuo, CrushLDAPGroup, CrushOIDC, CrushSSO, HomeDirectory, LetsEncrypt, MagicDirectory, Radius, SAMLSSO and WebApplication. CrushTask is part of the server itself.

Preferences lists the plugins whose files the server loaded. The other screens named on this page show only on a server that has those plugins' files, and a file that is not part of the server's own build is loaded only where that is allowed: see Writing a plugin: getting it loaded.

Several of the sign-in plugins need an Enterprise licence: CrushOIDC, SAMLSSO, Radius, CrushDuo, CrushSSO, SecureAuth. Their screens say "Enterprise only feature", and on another licence they skip themselves and write a line to the log.

What login plugins share#

The plugins that answer logins have a set of settings in common. They mean the same in each.

Setting Is
Allowed Server Port, or Server Item the listeners the configuration answers for. All, or chosen listeners. So LDAP can serve the SFTP port and SAML the HTTPS port, or one directory the internal port and another the public one.
Allowed User Groups the same by connection group
Username matching the names the configuration looks at. * is all; partner_* only those; several patterns separated by commas. A name that does not fit is left to the next configuration.
… only used for Authentication (User manager then defines user's access.) the plugin only checks who somebody is. Their settings and folders come from a user of the same name in the User Manager, who must exist.
a template user: Import settings from CrushMFT user, Username to use as template, Template Username a user of the User Manager whose settings every user of this plugin gets: limits, the look of the web interface, events. Make one for the purpose, with no password, so that nobody can sign in as the template.
roles groups of the other system, each with a template user of its own. They decide who may sign in and what each group gets.
the home folder: Path, Append username to path?, Create folder with username a folder per user, made at the first login
Create additional subfolders in home directory folders made inside each new home, each with its own rights
Overwrite VFS items? the folders the plugin gives replace those of the template. Off: they are added.
Only run if configured for a login event? the plugin does nothing by itself. It acts only for users who have a login event that runs it: a way to give a plugin to one group.
Key Mappings copies facts the other system knows about a person into settings of the user

How a login passes through#

  1. The name is looked up among the users of the User Manager. A user found there is checked there.
  2. If there is none, the plugins are asked, one after the other, each configuration in turn, from left to right as their tabs stand. Each looks at the listener, the name, and its own switches, and either answers or lets the login pass.
  3. The first that accepts the login builds the user. The others are not asked for that login.
  4. After a login was accepted, by whomever, the plugins that act afterwards get their turn: HomeDirectory makes the folder, CrushDuo asks its question.

A login plugin that does not know a name does not refuse it: it lets it pass to the next. A login is refused when nobody accepted it.

The permissions block#

Wherever a plugin gives a user a folder, the screen has the same block of boxes for what the user may do there. They are the rights every folder of a user has:

Box The user may
Download, Upload, View read files, write files, see the list
Delete, Rename, Resume Transfers as the names say
Create Folder, Delete Folder as the names say
Share/Publish, Slideshow use those buttons there
Make Invisible, Locked, Free Ratio, Replicate the special marks of a folder
Quota:(MB), RealFile Quota how much the folder may hold
Comment: (HTML OK) a text shown with the folder
Advanced encryption, sync and the other finer settings of a folder

Each is described in Permissions, and what is behind Advanced in VFS: Advanced.

Some screens show the same as one line of text, Privs, such as (read)(write)(view)(delete)(resume)(rename)(makedir)(deletedir). Ticking the boxes writes that line.

Plugins that work together#

A plugin can pass an accepted login on to another. The provider or the RADIUS server proves who somebody is, and the directory or your application supplies the groups and folders:

First Then See
SAMLSSO CrushLDAPGroup SAMLSSO with LDAP roles
SAMLSSO WebApplication SAMLSSO with a web application
Radius CrushLDAPGroup the same way: how plugins are linked

Plugins and events#

A plugin can also be run by an event of a user: the action Run Plugin. That is how PostBack, LaunchProcess and CrushTask get their work, and how HomeDirectory and CrushDuo are given to some users only. See Running a job from an event.

"Warning: Not all plugins can be called from an event." A plugin that answers logins has nothing to do with a file.

In special set-ups#

Set-up What to know
a DMZ server in front plugins that build users run on the internal server. On the DMZ server, CrushLDAPGroup, HomeDirectory, MagicDirectory and WebApplication refuse to run. The browser plugins, CrushOIDC and SAMLSSO, need their configuration on both: see their pages.
a cluster the settings of plugins are part of the server's settings and are replicated with them: Replication
FIPS mode Radius is off; the MD5 options of the directory plugins and of MagicDirectory are off; SAMLSSO never signs with SHA-1; a plugin that is not the server's own gets only what the validated module allows

When a plugin does not do what you expect#

  1. Tick Debug on the configuration, and make sure the kind PLUGIN is logged: What is logged.
  2. Try once, and read the log. Each plugin writes its lines under its own name, and most say plainly why they passed a login on or refused it.
  3. Use the plugin's own test buttons where it has them.
  4. Check Enabled, Allowed Server Port and Username matching: a configuration that does not feel addressed stays silent.
  5. A plugin that fails with an error is named in the log, "Plugin … failed", and the others go on.

Turn Debug off again: the lines can hold names and addresses, and they are many.