CrushMFT Documentation

MagicDirectory#

With MagicDirectory, making a folder makes a user. You name a folder on the server bob--Blue-Harbor-71, and from that moment somebody can sign in as bob with the password Blue-Harbor-71 and finds themselves in that folder. Delete the folder and the user is gone.

It is for places where the people who hand out access are not administrators: a print shop that makes a folder per customer, a project office that makes one per delivery. Nobody opens the User Manager.

The plugin is set up in Preferences › Plugins › MagicDirectory. It comes with the server.

The MagicDirectory plugin in Preferences

Warning

The password is part of a folder's name. Everybody who can list the magic directory, on the server's disk or through a share of it, reads every password. Keep that directory out of reach of users, and use this plugin for exchange folders, not for anything confidential.

How a folder becomes a login#

The name of the folder is read as parts, separated by the User / Pass Separator, -- on a new server:

Folder Login
bob--Blue-Harbor-71 user bob, password Blue-Harbor-71
dana--Next-Year-88--12312027 the same, until 31 December 2027. The third part is a date in the Expiration Date Format.
eve--random--notify_eve@example.com user eve. The word random is replaced by a password the server makes up, and the folder is renamed to hold it. The part starting with notify_ is an address: the login is mailed there.
guest, with an empty separator user guest, with any password

At a login the plugin looks for a folder that starts with the name that was typed. If it finds one and the password fits, the user is in, with the folder as their top folder and the rights you set. If not, the login goes on to the server's other users and plugins.

No account is written anywhere. The user exists while the folder does.

Settings#

Setup#

Setting Is On a new server
Enabled, Debug as for every plugin off
Path the magic directory: the folder in which the user folders are made. Browse picks it. empty
Template Username a user of the User Manager whose settings every magic user gets: limits, the look of the web interface, events default
Overwrite VFS items? "If you specify a template username, all settings from that user will be used including that users virtual file system." With this on, the folders of the template are replaced by the magic folder; off, the magic folder is added to them.
User / Pass Separator what stands between name, password and the other parts. Empty: there is no password in the name, and any password is accepted. --
Directory Permissions what the user may do in their folder: see the permissions block download, upload, view, delete, resume, rename, create and delete folders
Remove unsafe web characters? folder names are cleaned of characters that make trouble in web addresses; the folder is renamed off
Quota is for all users the quota above is one amount for all magic users together, not one each off
Directory scan depth how many levels below Path are looked at. With 2, the user folders can be sorted into group folders. 1

Advanced#

Setting Is On a new server
Convert 'random' password to generated random password. the word random in the place of the password is replaced by a made-up password, and the folder is renamed off
MD5 hash passwords. the folder name holds the MD5 hash of the password, with MD5_ before it, so that the password itself cannot be read from the name. Not available in FIPS mode. off
Use Expiration Date. a date part in the name ends the login on that day on
Expiration Date Format how the date is written, in the letters of Java's date patterns MMddyyyy
Delete? a folder whose date has passed is deleted, with what is in it off
Use Email an address part in the name is the user's email address off
Translate 'notify_' emails and send new account notification. an address part that starts with notify_ gets a mail with the login, once; the notify_ is then taken out of the name on
Email Subject, Email From Address, Email CC Address, Email BCC Address, Email Body the mail. {user} and {pass} stand for the login. subject "CrushMFT account activated : {user}", body "Your account has been created. Your username is:{user} Your password is:{pass}"
Home location virtual name the name the folder has in the user's list, when it is added to a template's folders empty

The plugin scans the magic directory in the background for the things that need doing without a login: replacing random, sending the mails, deleting what has expired. The mail goes through the server's own mail settings.

Changing a password#

A magic user who changes their password renames their folder: the new password takes the place of the old one in the name.

Things to know#

  • Not in a DMZ. "MagicDirectory plugin is not supported in DMZ mode." Run it on the internal server.
  • Names must be unique from the start. bob and bobby both start with bob: keep the separator right behind the name so that the two cannot be confused, and avoid the separator's characters inside names and passwords.
  • Real users come first. A name that exists in the User Manager is never taken from a folder.
  • A date part is read in the server's own time.
  • Rules for passwords do not apply. Whoever names the folder chooses the password. Use random.

Tried for this page#

On a test server, with the separator -- and the usual date format, by FTP, and one call over HTTP: a folder name--password (login accepted, the folder is the user's top folder, an upload landed in it), a wrong password (refused), a folder with a date in the past (refused), one with a date in the future (accepted), and a name without a folder (refused). Not tried: random, the mails, the MD5 form, deleting on expiry, a template with folders of its own, and a password change.