Configure the Primary Userstore¶
This is the main userstore that is shared among all the tenants in the system. Only one userstore can be configured as the primary userstore. This documentation explains the process of setting up a primary user store. If you need more information on WSO2 Carbon userstores, see Configure userstores.
Info
MWARE IAM uses the embedded H2 database as its primary user store. It is recommended to change this default configuration in the production system.
Set up the primary userstore¶
Configure the primary userstore in the
<IS_HOME>/repository/conf/deployment.toml file.
There are two steps involved in setting up the primary userstore:
-
Select the userstore manager that suits your userstore.
The following table lists the available userstore manager implementations and their usage.userstore userstore manager class Description LDAP ActiveDirectory
org.wso2.carbon.user.core.ldap.UniqueIDReadOnlyLDAPUserStoreManagerUsed to do read-only operations for LDAP or ActiveDirectory userstores LDAP org.wso2.carbon.user.core.ldap.UniqueIDReadWriteLDAPUserStoreManagerUsed for LDAP user stores to do both read and write operations. This is the default primary user store configuration in the deployment.tomlfile for MWARE IAM.ActiveDirectory org.wso2.carbon.user.core.ldap.UniqueIDActiveDirectoryUserStoreManagerThis is used to configure an Active Directory Domain Service (AD DS) or Active Directory Lightweight Directory Service (AD LDS). This can be used only for read/write operations. If you need to use AD as read-only, you must use org.wso2.carbon.user.core.ldap.UniqueIDReadOnlyLDAPUserStoreManager.JDBC org.wso2.carbon.user.core.jdbc.UniqueIDJDBCUserStoreManagerThis is used for JDBC userstores. You can configure your own custom userstore manager. For more information, see Write a custom userstore manager
Tip
From MWARE IAM 5.10.0 onwards, all userstore managers have
UniqueIDincluded as part of the userstore manager name (e.g.,UniqueIDJDBCUserStoreManager). Use one of these when selecting the userstore manager.The userstore managers that do not have
UniqueIDas part of the userstore manager name are only available for backward compatibility purposes and can only be used if you are migrating from a previous version of MWARE IAM. -
Configure userstore manager properties.
In the following pages, you can find the information on the properties that you need to configure for different userstore manager types. It provides the additional steps and recommendations specific to each userstore manager.- Configure a JDBC userstore
- Configure a Read-Only LDAP userstore
- Configure a Read-Write Active Directory userstore
- Configure a Read-Write LDAP userstore
In the
deployment.tomlfile, you can configure userstore managers by adding the relevant properties. However, it is important to read each userstore configuration document to find specific information that you need to follow when configuring a particular userstore.Warning
Server system administrator who is capable of all the actions in the system is configured within the
deployment.tomlfile. If you have not configured the system administrator yet, see Configure the System Administrator. -
Restart the server.