Connect a remote user store
WSO2 Identity Platform allows you to connect a remote user store and onboard users and groups from it. The user store connection can either be with read-only or read/write permissions. Administrators can then start managing access to business applications in WSO2 Identity Platform for these users and groups. This guide explains how you can set up a remote user store for your WSO2 Identity Platform organization.
User store connections
WSO2 Identity Platform connects to a remote user store through a user store agent that runs in your network. The connection supports both read/write and read-only user stores, and offers full management capabilities.
If you have connected a user store before 7th February 2023, you will only have read-only access for the user store. If you need read/write access for your user store in WSO2 Identity Platform,
- Delete the existing remote user store.
- Register a remote user store again with Read/Write access type.
- Set up the remote user store with the latest user store agent.
Register and configure a user store in WSO2 Identity Platform
The following guides explain how you can register and set up a remote user store for your WSO2 Identity Platform organization.
Prerequisites
Ensure your system has the following before you proceed.
-
An on-premise user store. Currently, WSO2 Identity Platform supports:
- Lightweight Directory Access Protocol (LDAP)
- Active Directory (AD)
-
To run the user store agent:
- Install JAVA 8 or JAVA 11.
- Configure
JAVA_HOME.
System requirements
-
Recommended hardware requirements
CPU cores 2Storage 500 MBof free space on disk.Operating system The connector can run on Windows or Linux. RAM 1 GB -
Connectivity methods
User store agent Protocol Web socket Port 443
Register a remote user store
To configure a remote user store for your organization:
-
On the WSO2 Identity Platform Console, go to User Attributes & Stores > User Stores.
-
Click Connect userstore to open the following:
-
Enter the following details about the user store.
User store name A unique name to identify your user store. Description A description for the user store. Remote user store type Select your user store type. Access type Select the access type of the user store. It can be any one of the following:
- Read-only
- Read/Write
Note: The access type of the user store cannot be modified after creation. -
Click Next and under Configurations, provide the properties of your user store.
User attributes Username This attribute is used as the user identifier. Provide an attribute that identifies users in your on-premise user store.
For the best experience, use a username that satisfies validation rules in the Username validation section.User Id This attribute is used to uniquely identify a user entry. Provide an attribute that uniquely identifies a user entry in your user store. warning-
Map the Username and User Id attributes correctly for successful user authentication.
-
Additionally, to allow multiple email addresses and mobile numbers attributes for users, follow instructions in Assign multiple email addresses and mobile numbers to a user.
-
-
Click Finish to complete the registration.
You can register only one remote user store per organization without an enterprise tier account. If you want to connect a different user store, delete the existing user store and register a new one.
If you're on the enterprise tier and need to connect more than one user store, please contact our support team through the WSO2 cloud support portal or email us at [email protected]. We'll guide you through the process.
Set up the remote user store
After registering the user store, you'll be redirected to the Setup Guide of the user store agent. To assemble and configure the user store agent bundle, follow the steps below.
-
Download the user store agent.
-
Configure the properties and connection details of the on-premise user store by following these steps:
-
Unzip the downloaded user store agent.
-
Go to the root directory of the user store agent and open the
deployment.tomlfile. -
Update the configurations according to your user store settings. A sample configuration is given below for the reference.
[user_store]type = "ldap"base_dn = "dc=wso2,dc=org"connection_url = "ldap://localhost:10391"connection_name = "cn=admin,dc=example,dc=org"connection_password = "adminpassword"user_id_search_filter = "(&(objectClass=inetOrgperson)(uid=?))"user_name_list_filter = "(objectClass=inetOrgperson)"user_id_attribute = "uid"user_name_attribute = "cn"user_name_search_filter = "(&(objectClass=inetOrgperson)(cn=?))"password_hash_method = "PLAIN_TEXT"group_search_base = "ou=Groups,dc=example,dc=org"group_name_attribute = "cn"group_name_search_filter = "(&(objectClass=groupOfNames)(cn=?))"group_name_list_filter = "(objectClass=groupOfNames)"group_id_attribute = "gid"membership_attribute = "member"noteRefer remote agent properties for the complete list of agent configurations.
-
-
Return to the WSO2 Identity Platform Console and, click Generate Token to create an installation token. The installation token is essential to run the user store agent.
warning- Copy the installation token and save it in a safe location. You won't be able to see it again!
- This token has no expiry time, but in case you lose or forget it, you can regenerate an installation token.
-
To start the user store agent, navigate to its root directory and run one of the following commands based on your operating system:
- Linux/Unix
- Windows
sh wso2agent.shwso2agent.bat -- runEnter the installation token generated in the previous step when prompted.
(Optional) Run the user store agent as a background process
-
Create a file named
accessTokenin the root directory of the agent. -
Add the installation token obtained from the previous step.
-
Run the user store agent.
- Linux/Unix
- Windows
sh wso2agent.sh startwso2agent.bat start
What's Next
- Configure high availability for a remote user store
- Manage remote user stores in WSO2 Identity Platform
- Deployment best practices for the remote agent
- Advanced configuration for the remote agent
Was this page helpful?