Portal 7: Creating a new portal based on one of the samples

The Enterprise Sample portal is installed under the o=EnterpriseSample organization in the Directory Server. There are also some JSP template files that comprise the channels in this sample. In order to create a new portal based on the Enterprise Sample, we must create a new properly configured Organization in the Directory Server, create some user accounts and roles, and make a copy of the JSP Template files.

Access Manager Changes

Access Manager is accessed at http://hostname:port/amconsole. Log in with the amadmin user account.

Creating Organization, Roles, and Users

  1. Create a new organization using Access Manager You just need to give the organization a name and then click the Save button
  2. Assign Services to the new organization In the left-hand pane, click the link for the new organization Select Services from the drop-down list Click Add... to add services. Select everything available to make things easy
  3. Create new roles for the organization Create a new static role called AustraliaExpansionRole2, keep default options Create a new static role called NewCustomerToursRole2, keep default options
  4. Create new user accounts. There is one authless anonymous account and three user accounts. Create a new authless anonymous account: authlessanonymousent (select all available services) Create three new users: ed2, chris2, mary2 (select all available services)
  5. Add users to roles Edit each user and select Roles from the drop-down. Assign the roles as follows:
    • chris2 - NewCustomerToursRole2
    • ed2 - AustraliaExpansionRole2
    • mary2 - NewCustomerToursRole2, AustraliaExpansionRole2
This completes the configuration steps in the Access Manager.

Portal Server Administration Console

Portal Server Admin Console is accessed at http://hostname:port/psconsole. Log in with the amadmin user account.

Add Organizations, Roles, and Users to the list of DNs

  1. Navigate to Portals, portal1
  2. Add your new organization to the list of DNs by clicking the Add DNs button at the top of the page.
  3. Add your new roles NewCustomerToursRole2, AustraliaExpansionRole2 and the original Enterprise sample Roles (NewCustomerToursRole, AustraliaExpansionRole) to the list of DNs
  4. Add your new authlessanonymousent and the original authlessenterprisesample users to the list of DNs

Download the original Display Profile Documents from Organization, Roles, and Anonymous User

  1. Select the original Enterprise Sample organization in the drop-down list
  2. Click on Download Display Profile and save as an XML file on your PC. When you enter the file name, be sure to omit the extension. You can add the extension when the Save File dialog opens on your PC.
  3. Select the AustraliaExpansionRole in the drop-down list
  4. Click on Download Display Profile and save as an XML file on your PC.
  5. Select the NewCustomerToursRole in the drop-down list
  6. Click on Download Display Profile and save as an XML file on your PC.
  7. Select the authlessenterprisesample User in the drop-down list
  8. Click on Download Display Profile and save as an XML file on your PC.

Upload Display Profile Documents to new Organization, Roles, and Anonymous User

  1. Select the new organization from the drop-down list
  2. Click on Upload Display Profile. Click Browse and select the organization XML file that you downloaded previously
  3. Select the new AustraliaExpansionRole2 role from the drop-down list
  4. Click on Upload Display Profile. Click Browse and select the AustraliaExpansionRole XML file that you downloaded previously
  5. Select the new NewCustomerToursRole2 role from the drop-down list
  6. Click on Upload Display Profile. Click Browse and select the NewCustomerToursRole XML file that you downloaded previously
  7. Select the new authlessanonymousent user from the drop-down list
  8. Click on Upload Display Profile. Click Browse and select the authlessenterprisesample XML file that you downloaded previously

Make the New authlessanonymousent User a Valid Anonymous User

  1. Select Top Level in the list of DNs
  2. There is a list at the bottom of the page titled Valid UIDs for Anonymous Desktop. Click Add
  3. Enter the full DN for the new anonymous user you created and the password. It will look like: uid=authlessanonymousent,ou=people,o=newEnterpriseOrgYouCreated,dc=YourCompany,dc=YourDomain
  4. Click Save

From the Command Line

Create a copy of the JSP Templates

  1. Open a Terminal session on the portal server
  2. Change to the portal jsp templates directory cd /var/opt/SUNWportal/portals/portal1/desktop
  3. Create a copy of the enterprise sample directories cp -rp enterprise_sample new_enterprise_sample

Back to the Portal Server Admin Console

Set Portal Service Attributes for new Organization, Roles, and Users

Each Organization, Role, and User has a set of attributes for the Portal Service. Select each of the new items from the drop-down list and make sure the following are set: COS Priority: Highest Parent Container: ASCTabContainer Edit Container: JSPEditContainer Desktop Type: new_enterprise_sample Desktop Attributes: Show is checked Display Profile Priority: (don't change this value)

Testing the New Portal

At this point you should have a duplicate copy of the Enterprise Sample. Try accessing the anonymous page with this URL http://server:port/portal/dt?desktop.suid=uid=authlessanonymousent,ou=People,o=newEntOrg,dc=company,dc=com You should see the Enterprise Portal with the login form in the upper-right corner Try logging in with one of the new users: chris2, ed2, or mary2. If successful, you should see the Enterprise Sample portal with the user's name displayed in the upper-right corner.

Summary

These steps are the first steps a developer should take. It is important to create a new portal because this will isolate the customizations from the samples that ship with the product. Future patches and product upgrades will not affect the new organization or jsp template location, so you can be assured that your customizations will remain safe. These same steps can be followed to create a new portal based on the DeveloperSample. Creating a new portal based on the Community Sample is more complex and not addressed in this article.
Comments:

Im trying to create a portal using the community sample. I have copied the community sample desktop files and have changed the desktop profile of my organization to that of the community sample's. The problem is that I can view the same UI when i login with a user in my own organization but i cannot create or join communities. Your help will be appreciated! Thanks. Regards, Mehwish.

Posted by mehwish on November 29, 2006 at 09:06 PM MST #

The procedure outlined here does not work for the Community Portal. That portal requires procedures that involve configuration of group calendar, derby database, and Access Manager Services. I suggest you read this blog for more information about setting up the sample portals using the included ant targets http://blogs.sun.com/dpolla/

Posted by Jim on November 29, 2006 at 11:59 PM MST #

hi, i want to create new portal application like liferay portal (open source ).can u give me idea to create new appplication .

Posted by lavanya on July 26, 2007 at 06:22 PM MDT #

Hi Jim Faut,
I set up a new Enterprise Site like your instructions .But when I log in the new site with new account , it always says "Login Unsucessful" .But If I use the accounts of old Enterprise Sample site such as : mary, chris, ed , the login is successful .
It seems the new site use the login page of the old site .
I don't know why . Jim, May you help me fix this strange bug ?

Best Regards,
thachhoang

Posted by thachhoang on February 27, 2008 at 12:56 PM MST #

Yea, this didn't work for me either. Tried it on the Enterprise sample and on the sandbox sample.
No dice on either.

Posted by Todd Wessendorf on March 31, 2008 at 05:28 AM MDT #

This does not work, tired it out, new users cant login

Posted by mufasa on March 10, 2009 at 03:50 AM MDT #

Seeing that alot of people are facing the same problem regarding new user being unable to authenticate against the new Portal, I did a bit of digging up and managed to get it to work. See the steps I followed below, but first follow Jim's example above then after follow the example below:

After configuring the roles and loading display profile change the following settings, so that the new user's you create can authenticate.

I did the following to get my new users to authenticate:

On Solaris I opened the following file: /var/opt/SUNWportal/portals/csonline/desktop/csonline/Login/display.template
I changed all occurrences of org=EnterpriseSample to my new organization o=fiction

I also changed the Organization display profile document, replaced every occurrence of o=EnterpriseSample with the name of my organization fiction, in this case I replaced all values that are o=EnterpriseSample,dc=test,dc=co,dc=za
With o=fiction,dc=test,dc=co,dc=za

After configuration you might get a module denied error “Authentication Module Denied”
Depending on which module you are using, in my case I am using LDAP so I also changed all occurrences of Membership to LDAP inside the display.template file.

After the above changes restart your web container container for the changes to take place and Bob’s your uncle.

That’s it. Its alive !!!

Hope this helps

Posted by Paul Willies - AKA Mufasa on July 29, 2009 at 11:19 PM MDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

user12622652

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today