Matillion ETL supports LDAP integration through the External User Configuration option. Users can link to an existing LDAP (Lightweight Directory Access Protocol) directory server such as OpenLDAP or Microsoft Active Directory.
Matillion ETL uses LDAP role names to map LDAP roles to its own roles as defined in Groups and Permissions. Some pre-defined roles used by Matillion ETL to give high-level access—such as instance administration—must be created in the LDAP directory.
This guide explains how to configure Matillion ETL to use Active Directory for authentication when 'External' authentication has been selected.
- If you are using Azure Active Directory as your authentication provider, you must configure Azure Active Directory Domain Services. To learn how, read LDAP authentication with Azure Active Directory.
- To configure external settings for Okta LDAP integration, follow the steps in this document until you reach configure, then follow Configuring Matillion ETL in Okta LDAP Configuration.
Authorization in Matillion ETL
Matillion ETL authorization requires four roles that allow users to access specific aspects of the product:
- Emerald: this role allows access to the Matillion ETL interface. Typically, all users have this role.
- Server Admin: this role allows a user to access the Admin menu.
- Global Project Admin: this role allows a user to access every project.
- API: this role allows a user to use the Matillion ETL API.
For LDAP integration, you must create LDAP user groups that can be mapped to these Matillion ETL access roles. For example purposes, we will create four user groups in Active Directory as follows:
- Emerald Admin
- Emerald Project Admin
- Emerald API
Users should determine what user groups you will require. You may not need four separate groups as in this example. Depending on your requirements, a single user group may be mapped to all four roles. You should provide suitable names or a valid naming convention for your groups (the names above are used as an example only).
Any LDAP group that can be found from the Role Base provided during LDAP configuration can be used to map to existing or custom Matillion Groups and Permissions, as described in the article Groups and Permissions, and this mapping is completely independent of LDAP role mapping. As best practice we recommend that these two functions use different LDAP groups: an LDAP group used to map to Matillion ETL groups and permissions shouldn't also be used to map to a Matillion ETL access role as described here.
Before making any changes to LDAP configuration, take a backup of the following files to ensure the previous configuration can be restored if required:
- Snowflake and Redshift users:
- BigQuery users:
Alternatively, a snapshot of the instance can be taken before making any changes.
If necessary, you can use the following methods to undo any changes and revert to the previous state.
- Switch back to the instance database via the Admin menu: Click Internal, then click Save Configuration and restart Tomcat/Ec2-Instance.
- If access to the Admin menu is unavailable: Restore the server.xml and tomcat-users.xml files from the backups made earlier, and restart Tomcat.
- Restore from a snapshot: When choosing to restore from a snapshot, keep in mind that if the snapshot is too old, any changes to jobs or configurations made before the snapshot will be lost.
The following details are required from the LDAP/Domain to enable the integration we're setting up in this example:
You will need an LDAP server accessible on port 389 or 636 for SSL.
When issuing queries to the Global Catalogue for larger Active Directories (or when experiencing timeouts waiting for Active Directory to respond), it can be beneficial to use Port 3268 (LDAP) or 3269 (LDAPS).
- Emerald Admin
- Emerald Project Admin
- Emerald API
Four users have been created and added to the user groups as shown below.
|ec2-user||Emerald, Emerald Admin, Emerald Project Admin, Emerald API|
|etl-admin||Emerald Project Admin|
Users and user groups in Active Directory are held in containers or organizational units (OU) managed by the domain administrator. The above setup ensures the users and user groups are in the users' containers, however, any number of different configurations may be applied. Ideally, try to keep the users and user groups in the same containers/OU.
The distinguished name of the container/OU in which users and user groups are categorized will need to be provided. For example, the distinguished name for the Users container in this setup is
Configuring Matillion ETL
To configure Okta LDAP integration, refer to Configuring Matillion ETL in Okta LDAP Configuration.
- Click Admin → User Configuration in the top-right of the Matillion ETL interface.
- Select External from Security Configuration at the top of the User Configuration dialog.
- Provide details as follows:
|Connection Name||The name of a user to make the initial bind to the directory. This could be any LDAP user. For Active Directory, the name must include a realm using the form
|Connection Password||The password for the user to make the initial bind to the directory. We advise against using "special characters" in passwords—any character above
|Connection URL||The location of the directory server, using one of the following forms: For non-SSL:
|User Base||The part of the directory tree to begin searching for users. Typically users are created in the Users Container/OU. Change this as appropriate if Matillion ETL users are held in a different container:
|User Search||The attribute to search for user names (leave this unchanged):
|Role Base||The part of the directory tree to begin searching for groups/roles—similar to User Base above, change this appropriately if Matillion ETL user groups are in a different container:
|Role Name||The name of the attribute containing the role name (leave this unchanged):
|Role Search||How to find all the roles for a user (leave this unchanged):
|METL Access||This role allows access to the Matillion ETL application:
|METL Server Admin||This role allows access to the Matillion ETL administration page. This may be different from the METL Access role name:
|METL Global Project Admin||This role allows a user to access every project:
|API||This role allows access to the Matillion ETL API. This maybe different from the METL Access role name:
- Click Test to test the configuration, then click OK. Note that you can't click OK until a successful test is completed.
- Restart Tomcat.
Log in to Matillion ETL
Once Tomcat is restarted, users may now use the assigned Active Directory username and password to log in to Matillion ETL.
The domain doesn't need to be specified as part of the username—for example, "domain\username" or "email@example.com".