OpenDS installation
Install OpenDS from https://opends.dev.java.net/public/downloads_index.html ( I use the zip distribution)
After unzipping, run setup
I use port 8389, use "password" as password and do not pre-populate with random user. Instead pick "import LDIF file" option and use modules/identity/identity/src/resources/examples/portal-sample.ldif.
Once installation is done, run bin/start-ds to start the ldap server. Server should start without any problem.
To verify that import of LDIF file was successful, you can use LDAP brower which you can download from http://www-unix.mcs.anl.gov/~gawor/ldap/download.html
Under Quick Connect, use host: localhost, port: 8389, Uncheck Anonymous Bind, User DN:cn=Directory Manager, password = password. Hit Connect
You should be able to see users and roles mentioned in LDIF file.
JBoss Portal Configuration
Modify jboss-portal.sar/META-INF/jboss-service.xml so that identity service points to ldap_indentity-config.xml instead of identity-config.xml
Change jboss-portal.sar/conf/identity/ldap_identity-config.xml to use correct port where ldap server is listening. It's 8389 in this case.
Basic Testing
Start JBoss Portal
If portal starts clean and lets you log in as admin then it verifies that the setup is correct.
Try modifying some property of any user through Identity Management Portlet such as email address. You should be able to see the change through LDAP browser on LDAP server as well.
Non-Basic Testing
Change ldap_identity-config.xml so that LDAPUserModuleImpl and LDAPRoleModuleImpl are used instead of their Ext counter parts.
Restart the server.
Through Identity Management Portlet, you should be able to create a new user, new role and see those reflected on LDAP server.
Comments