Authentication
Basic authentication with login throttling, UserAccess and Sitelok integration.
The Authentication setting offers the following options:
- None: no login. Everybody who can open the page can use the file manager with the permissions for administrators. Only use this if the page is protected otherwise.
- Basic: one user with username and password.
- Sitelok: integration with Sitelok.
- UserAccess: integration with UserAccess Stack, with separate permissions for administrators and clients.
Basic Authentication
The Repository Stack does not store passwords in clear text. Therefore, you need to generate your own hash, to be entered inside the stack's settings.
You can generate new standard bcrypt hashes here. Enter the password of your choice in the "Password" field. Then click "Generate Hash".
Enter the username and the generated hash key into the Repository Stack 3 settings Username and Password Hash, and then use the password you chose to sign into the Repository control panel.
To log in to the user interface, you must use the password you used to generate the hash key. The hash itself will not work for log in.
Never keep the default password hash of the stack: always generate your own.
Login Throttling (new in Repository 3)
Failed logins are counted per IP address. When the maximum number of failed logins is reached, further logins from this IP address are refused for the lockout time, even with the correct password.
- Max. Failed Logins: number of failed logins per IP address before the login is locked (default: 10). 0 switches the throttling off.
- Lockout Time: duration of the lockout in minutes (default: 5). It is also the time window in which failed logins are counted.
Login throttling applies to the basic authentication. For UserAccess and Sitelok, the login is handled by these applications.
UserAccess Integration
When selecting UserAccess integration, you are able to define a client and an admin group (comma separated lists of group names).
- Client Group: logged in users must be members of the client group in order to see Repository Stack 3. If the client group setting is empty, all logged in users are able to see the content.
- Admin Group: if the logged in user is member of the admin group, they do not need to be part of the client group. If the admin group setting is empty, all logged in users are administrators.
Difference between administrators and clients:
- If Dynamic Subfolder for Clients is enabled, subfolders are created dynamically (below the installation directory) after a client logged in, based on the client's username.
- For clients, a separate permission set is available (see permissions).
- Administrators see all client subfolders inside the installation directory and have their own set of permissions.
With this, it is possible to have one Repository Stack 3 page for administrators and clients, where clients have another permission set than administrators, and where clients are only able to maintain their own files and not the files of other clients.
The UserAccess Stack must be added to the same page (Repository shows a reminder in edit mode if it is missing).
Sitelok Integration
For a Sitelok integration, an installed Sitelok application and license is required. The Sitelok Path should not be changed, unless the RapidWeaver project where Repository Stack is used in is not installed in the server root (then use e.g. /../slpw/sitelokpw.php), or when Sitelok is not located in its default install path. In Sitelok Group, you are able to define the user group which is required for the logged in Sitelok user. No additional stacks or settings are required.
Further Security Considerations
- Choose a random username and a strong password.
- Do not show the page with Repository Stack 3 inside the navigation.
- Only enable those functions which you are really sure the users of the stack should be able to execute.
- By default, the password only protects the user interface, not the uploaded files themselves: everybody who knows the address of a file can open it. To protect the files as well, enable the new Protected Mode.