Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Styled step names

...

This exercise is also an introduction to the developer tools included in uPortal for lightweight inspection of user attributes.

Step 1: Log in as admin and notice the default admin user attributes

Log in as the user "admin", which by default has password "admin". (Conveniently, even if you've completed the exercise to change the CAS configuration, admin's password will still be "admin").

...

Note that by default there's no user attribute "email".

Step 2: Edit the personDirectoryContext.xml

Edit personDirectoryContext.xml, adding to it an additional mapping for the email attribute.

...

Likewise, the personDirectoryContext.xml with the described change is attached (or included in an "after" folder alongside this PDF if you're reading this as a PDF in the context of the seminar), so if you'd like to proceed straight to the solution rather than bother with pasting bits of XML, feel free to copy that "after" personDirectoryContext.xml file into place.

Attachments

Step 3: Be sure your portal is stopped

Step 4: Run the Ant deploy-war to deploy the modified uPortal

No Format
cd /up31seminar/uPortal-3.1.0-M2-quick-start/uPortal-3.1.0-M2
../ant.sh deploy-war

Step 5: Start the portal again

After you wait for uPortal to start up, you can see it in your web browser at

http://localhost:8080/uPortal/

Step 6: Try it out

When you log in as admin, you should now see the user attribute "email" available in addition to the attribute "mail" that was previously available.