LDAP/Active Directory SSO
Files.com integrates with on-premise Active Directory, cloud-based Microsoft Entra ID, and hybrid setups. For integration with Microsoft Entra ID, see the Microsoft Entra ID documentation. To integrate with on-premise Microsoft Active Directory or LDAP, follow the details below.
Lightweight Directory Access Protocol (LDAP) is a way to look up and authenticate entries in a directory. A directory stores organizational identities and attributes, such as usernames, email addresses, and group memberships. Files.com can use those records both to verify sign-in and to provision its own users and Groups.
For sign-in, Files.com first uses the configured directory service account to look up the person. It then asks the directory to authenticate using that person's own password. The service account supplies lookup access; its password is not used as a substitute for the person's password.
This differs from browser-based SAML or OpenID Connect federation. With LDAP authentication, the person submits the directory password to Files.com, which sends it to the directory for verification. With SAML or OpenID Connect, the person signs in at the identity provider and Files.com receives the authentication result without receiving that password. LDAPS protects the credentials in transit between Files.com and the directory.
Provisioning is a separate operation that reads directory records and maintains corresponding Files.com accounts. For example, you can select which directory groups' members receive accounts, then assign those Groups the appropriate Files.com folder permissions.
Supported directory services include Active Directory, Apache Directory Server, OpenLDAP, and any other LDAP-compliant directory service.
Prerequisites for Connection
Files.com connects to your directory service using the LDAP protocol and supports both secure LDAPS (port 636) and non-secure LDAP (port 389).
Firewalls
Configure your firewall to allow inbound connections to your directory service from Files.com.
If your firewall is only capable of whitelisting or blacklisting using IP addresses, rather than domain names, whitelist the Files.com owned IP range. A single firewall rule covering the range allows all Files.com traffic.
Ports
Port numbers are configurable, allowing you to use non-standard ports if required. Use the port configured by your directory administrator. A nonstandard port does not replace TLS and firewall access controls.
TLS/SSL Security
Files.com supports secure LDAP through the LDAPS protocol, which encrypts LDAP communication with SSL/TLS on a dedicated port. We strongly recommend using secure LDAPS (port 636) rather than LDAP (port 389) so that your information is encrypted in transit between your directory service and Files.com.
With Secure Connection enabled, Server Certificate controls how Files.com verifies the directory before sending the service account's credentials or checking a user's password. The default, Require a valid certificate (recommended), checks the certificate's trust chain and the configured hostname. A failed check stops the connection before either set of credentials is sent. Use a valid, chained certificate matching the directory hostname.
Allow any certificate (insecure) accepts certificates without validating their chain or hostname, including self-signed certificates. Although the connection remains encrypted, it no longer verifies the directory's identity. Another system answering in its place can receive the service account password and the password supplied by each LDAP user who signs in. We recommend correcting the certificate rather than disabling validation.
This setting also applies when LDAP provisions users who sign in through another SSO provider. With Secure Connection disabled, LDAP traffic is unencrypted and the certificate setting does not apply. Do not configure your firewall to modify encrypted LDAP traffic.
If your Active Directory server does not provide a secure connection, follow Microsoft's instructions for enabling LDAPS on a Microsoft Active Directory server to enable it.
LDAP Access Credentials
Files.com needs login credentials to connect to your directory service and is limited to the access privileges of the specified account.
We recommend that you create a "service account" login for Files.com and grant it access permissions to the areas of your directory that you want to use for Single Sign-On (SSO) and user provisioning.
Configuring SSO with LDAP/Active Directory
Single Sign-On (SSO) lets users access Files.com with their corporate credentials instead of separate passwords. When SSO is enabled, your directory service handles authentication and grants access only if the password matches. This applies to logins through the Files.com web portal, FTP, SFTP, WebDAV, Desktop App, Mobile App, and API.
Configure Single Sign-On (SSO) with LDAP/Active Directory by selecting the provider Active Directory/LDAP from the list of SSO providers.
The form contains the following fields:
| Field Name | Details |
|---|---|
| Enabled | Use this switch to enable and disable the connection to your directory service. This can be used to quickly disable your LDAP users from logging in to Files.com. |
| Host | The Fully Qualified Domain Name (FQDN) or IP address of your Active Directory/LDAP server. |
| Add Backup Host | You can add the backup Active Directory/LDAP server to use if the primary isn't reachable. Files.com will then automatically connect to the Backup host when the main server (Host) cannot be reached. The Backup host must be a replica of the main server (Host). Uses URL nomenclature. For example: ldaps://www.mysite.com:636. |
| Port | The port to be used to connect to your Active Directory/LDAP server. |
| Secure Connection | Specifies whether secure LDAPS or non-secure LDAP will be used to connect. |
| Server Certificate | Available when Secure Connection is enabled. Require a valid certificate (recommended) is the default and verifies the certificate's trust chain and hostname. Allow any certificate (insecure) disables certificate validation. See TLS/SSL Security for the consequences. |
| Username Field | Specifies the Active Directory/LDAP field to be used to match the login attempt to Files.com. Typically sAMAccountName is the most commonly used but userPrincipalName is provided as an alternative option. Active Directory limits the sAMAccountName attribute to 20 characters so usernames synchronized from Active Directory will be limited to 20 characters (not including the domain). The userPrincipalName attribute is not subject to this 20 character limitation. Check with your Active Directory/LDAP server administrator to see which field is used by your organization. |
| Username | The username that Files.com will use to login to your Active Directory/LDAP server. For example: mydomain\files_service. Check with your Active Directory/LDAP server administrator that this user has access permissions to read the user and group items in your directory. |
| Password | The password that Files.com will use to login to your Active Directory/LDAP server. |
| Distinguished Name · Base Search Path | The Distinguished Name (DN) of the location to begin searches within your directory. For example: CN=Users,DC=mydomain,DC=local Searches will only find items at or below this location in your directory. |
| Domain | The domain suffix to be added to Files.com usernames. Different suffixes distinguish otherwise identical usernames from different directories. For example, specifying local.mydomain.com will create usernames as user@local.mydomain.com. |
These settings let users created within your Files.com account authenticate with their Active Directory/LDAP password.
The user must already exist within Files.com, and the username must match the pattern specified in the settings above. For example, if you specified sAMAccountName as the LDAP username field and mydomain.com as the domain suffix, then a user in your directory named janedoe needs a corresponding Files.com user account named janedoe@mydomain.com in order to log in.
Each Username Field value must identify only one entry at or below the Base Search Path, so a Files.com username corresponds to one directory account. Your directory administrator is responsible for preventing duplicate values within that search scope.
If multiple entries match, Files.com uses the first entry returned by the directory and checks the supplied password against that entry. The directory controls the result order. Files.com does not try the other matching entries if that password check fails.
We strongly recommend keeping at least one site administrator with password-based authentication, rather than assigning all administrators to SSO, to prevent being locked out of Files.com in case of IdP or SSO issues.
Configuring Automatic Provisioning
Files.com offers several automatic provisioning configuration options for synchronizing users and groups directly from Active Directory/LDAP. Files.com reads your directory when you save these options and every 60 minutes afterward. The provisioning comparison explains when to use this connection or SCIM.
Directory Groups and Files.com Memberships
Files.com reads directory groups and their direct user memberships within the configured search path. It provisions Group names in lowercase and connects the matching Files.com users to those Groups. Permissions assigned to each Files.com Group then apply to its members; the directory's own file-access rules are not copied.
Nested directory groups are not expanded into indirect user memberships by Files.com's LDAP synchronization. If a user belongs to Regional Finance and that directory group belongs to Finance, that nesting alone does not make the user a member of the Finance Group in Files.com. Give the user direct membership in the directory group that supplies Files.com access, or assign the needed permissions to the directly synchronized Group.
When group synchronization is enabled, the directory memberships and configured default Groups determine the memberships retained for synchronized users. Memberships added only in Files.com can be removed by the next LDAP synchronization. Maintain those access assignments in the directory and review group-based administrator assignments separately when they are configured.
User and Group deprovisioning options determine what happens when an entry no longer appears in the selected directory results. Choose account disabling when you need to end access while retaining the account for review. Changing a directory filter can change who is included, just as removing a user or Group can; review the intended population before saving provisioning changes.
Troubleshooting
Several items can cause Single Sign-On (SSO) or provisioning issues.
Invalid or Expired SSL Certificates
When using a secure LDAPS connection to your Active Directory/LDAP server with Require a valid certificate (recommended), check that the certificate is current, covers the configured hostname, and has a trusted chain. An online certificate checker, such as SSL Shopper, can help inspect a publicly reachable certificate. Correct a certificate failure rather than changing to Allow any certificate (insecure); that option removes the identity checks described in TLS/SSL Security.
Invalid or Expired Access Credentials to Active Directory/LDAP
Files.com connects to your Active Directory/LDAP server using the credentials you supplied.
Confirm that these credentials are valid and can log in to Active Directory/LDAP using another LDAP tool such as ADExplorer (Windows) or ldapsearch (Linux).
If possible, test using a different set of credentials to determine whether the problem lies with one set of credentials or with all of them.
Incorrect Permissions to Active Directory/LDAP
Files.com connects to your Active Directory/LDAP server using the credentials you supplied.
Confirm that these credentials have at minimum read permissions to the parts of the directory that contain user and group items.
If possible, test using a different set of credentials to determine whether the problem lies with the permissions of one set of credentials or with all of them.
Firewall Settings
Files.com connects to your Active Directory/LDAP server using the LDAPS or LDAP port that you specified. Confirm that your firewall is not blocking these ports. From outside your corporate network, try using an LDAP tool to connect, such as ADExplorer (Windows) or ldapsearch (Linux).
Confirm that your firewall is not packet-inspecting these ports. If inspection modifies the encrypted data, TLS/SSL validation fails and the connection is terminated.
Incorrect Group Memberships
Files.com provisions users and groups based on the configuration you provided.
If no users, or only a subset of users, are being provisioned, check your configuration to confirm that you entered the correct Group names. Confirm that within your Active Directory/LDAP, the users you want to provision are members of the specified Groups. Also check the memberOf attribute of the Active Directory/LDAP users.
Incorrect Distinguished Name (DN) Settings
Files.com provisions users and groups based on the configuration you provided. The Distinguished Name (DN) specifies the part of the directory that Files.com has access to. Files.com can only search within the Distinguished Name (DN) location.
Confirm that you have specified the correct Distinguished Name (DN). For example, CN=Users,DC=mydomain,DC=local is not the same as OU=Users,DC=mydomain,DC=local. Also confirm that the users and groups exist within this Distinguished Name (DN) location.