Deploy portal using configurations with DB and LDAP and check if it's working by logging into it
Checking DB Configuration
Get clean portal sources and AS with clean state (in server/default remove 'log', 'work', 'data', 'tmp')
Set JBOSS_HOME env to AS directory
Invoke tasks:
build/build.xml deploy
core-admin/build.xml deploy
core-cms/build.xml deploy
core-management/build.xml deploy
core-samples/build.xml deploy
core-search/build.xml deploy
wsrp/build.xml deploy
Run AS and check if there are no exceptions during deployment on the AS console
Open browser (ideally Internet Explorer) and go to http://localhost:8080/portal
Login as user: user/user
Check that everything is displaying correctly
Logout and login as user: admin/admin
Check that everything is displaying correctly
Logout and then in UserPortlet on the main page try to register new user
Check if you are able to login as such new user
Checking LDAP Configuration using RH Directory Server in QA
Prepare working directory server instance
Check if you have connection to vpn (ping dev39.qa.atl.jboss.com - requires jboss vpn connection)
Recreate content in ldap (require to have ldap tools 'ldapdelete' and 'ldapadd' installed)
Go to identity/src/resources/example directory in portal sources
invoke command: ldapdelete -x -h dev39.qa.atl.jboss.com -p 10389 -D"cn=Directory Manager" -w qpq123qpq -r "o=test,dc=portal,dc=qa,dc=atl,dc=jboss,dc=com" (it may produce some error messages)
invoke command: ldapadd -x -h dev39.qa.atl.jboss.com -p 10389 -D"cn=Directory Manager" -w qpq123qpq -f portal-sample-rhds.ldif (should compleate without errors
Edit Portal configuration in sources to enable LDAP support
Edit core/src/resources/portal-core-sar/META-INF/jboss-service.xml and change line:
<attribute name="ConfigFile">conf/identity/identity-config.xml</attribute>
to
<attribute name="ConfigFile">conf/identity/ldap_identity-config.xml</attribute>
Edit core/src/resources/portal-core-sar/conf/identity/ldap_identity-config.xml and put following content into it
Comments