Hi All,
    Just to inform you that IS is now integrated with in-built  ApacheDS 
server. To achieve this we are replacing some tokens in user-mgmt.xml. 
Token replacement in user-mgmt.xml is not trivial and i had to introduce 
some new code into user-mgmt.xml to achieve this.
    In summary this is how we do token replacement in user-mgmt.xml.
    Introduce a new tag called "<ISUserStoreManager 
class="org.wso2.carbon.user.core.ldap.ApacheDSUserStoreManager">" and 
this is quite similar to <UserStoreManager 
"org.wso2.carbon.user.core.ldap.ApacheDSUserStoreManager"> tag. But in 
default configuration this is commented.
    When building IS comment all existing <UserStoreManager> tags and 
replace <!--ISUserStoreManager> with <UserStoreManager>.

This approach is quite fragile. For example if someone introduce a 
comment to a default <UserStoreManager>, build will break.

        I believe we should be able to improve the way we replace tokens 
in user-mgmt.xml. I guess the best way to achieve this is by separating 
UserStoreManager and their properties or maybe to introduce a enable, 
disable attribute to <UserStoreManager> tag.

Feedback appreciated.

Thankx
AmilaJ

_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to