Scenario :
You have developed a XUserStoreManager extending an inbuilt userstoremanager implemetation (i.e. ActiveDirectoryUserStoreManager).
You need to read some configuration files from a property file, which you do not want embed in the XUserStoreManager.jar which is deployed in <IS_HOME>/repository/components/dropins
What is the best approach:
1. You can put your custom properties in <IS_HOME>/repository/conf/user-mgt.xml inside your <CustomUserStoreManager> section as below.
<Property name="customProperty">customValue</Property>
2. Put properties withing your CustomUserStoreManager configuration section. Then you can access your properties as below as in [1]
i.e.
String patterns = realmConfig.getUserStoreProperty(LDAPConstants.USER_DN_PATTERN);
Applicable : WSO2IS-4.6.0
[1] - https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.user.core/4.0.2/src/main/java/org/wso2/carbon/user/core/ldap/ReadOnlyLDAPUserStoreManager.java
Your Blog is fantastic ...really impressive.....properties
ReplyDeleteThe blog and data is excellent and informative as well
ReplyDeleteYour work is very good and I appreciate you and hopping for some more informative posts
home for sale Stone Oak