Reputation: 386
I would like to expose users configured in a secondary user store in WSO2 IS as an ldap. I found out that WSO2 IS has its own internal ldap but just for primary user store, and secondary user stores are not available through this method.
I couldn't find any ldap connector neither.
Is there a way to do this OOB?
Cheers
Upvotes: 0
Views: 301
Reputation: 1149
You don't need any explicit connector to configure an LDAP server as Primary or Secondary userstore of the Identity Server. It's supported out of the box.
If you want to add your LDAP as the Primary userstore of the WSO2 server, you can configure the "ReadWriteLDAPUserStoreManager" in the <IS_HOME>/repository/conf/user-mgt.xml
file. Documentation WSO2 Identity Server does come with an OOB in-built LDAP server configured as the primary user store. This can also be confiured as a secondary user store if you want. But, please note that it's NOT recommended to use this embedded LDAP server in the production. You should configure an external dedicated LDAP server in production.
You can also add LDAP servers as secondary user stores from the Management Console. Documentation If you want to test adding an LDAP server as the secondary, you can try that by pointing the same in-built LDAP server. Just copy the LDAP server configs from the user-mgt.xml
and fill the details in the Management Console. Again, it's recommended to use an external LDAP server in production.
deployment.toml
file which will get reflected in the user-mgt.xml
file after a restart. Any lower, you should change the configs directly in the user-mgt.xml
file. Secondary userstores can be configured from the Management Console in all the versions.Upvotes: 1