...
Note that LDAP is used going forward to refer to both LDAP and ActiveDirectory servers.
Step 1 : Backup <carbon-home> <PRODUCT_HOME>/repository/conf/user-mgt.xml
.
- A sample file for LDAP user store is given below:
...
Copy the user-mgt-ldap.xml file and save it as <carbon-home> <PRODUCT_HOME>/repository/conf/user-mgt.xml
. When you are configuring for ActiveDirectory, do the same to user-mgt-actdir.xml.
...
So the user-mgt.xml file must contain details for two database connections. The connection details mentioned earlier is used by the Authorization manager. If we specify another set of database connection details inside UserStoreManager, it will read/write users to that database. Step by step guidelines for connecting to an external JDBC user store in read-only mode is given below.
Step 1 : Back-up the <carbon-home> <PRODUCT_HOME>/repository/conf/user-mgt.xml
file. A sample file for JDBC user store (user-mgt-jdbc.xml) is available in <carbon-home><PRODUCT_HOME>/repository/conf
directory. Download the relevant file and save it as <IS_HOME>/repository/conf/user-mgt.xml. Uncomment the following section in your file if it is commented out.
...
Step 6 : Add the JDBC driver to the classpath by dropping the jar to <carbon-home> <PRODUCT_HOME>/repository/components/lib
directory.
Step 7 : Edit the SQLs in user-mgt.xml file according to your requirements, and start the server.
...