Internal Accounts

To enable local-only authentication:

Step 1: Edit security.properties file

  1. open the security.properties file for editing located at: uPortal-4.x/uportal-war/src/main/resources/properties/security.properties

  2. edit the file to look like the following code below:
security.properties
##
##  Local Only Authentication
##  
##  The following is an example of configuring uPortal local user authentication
##  (authentication by username and password hash stored in the uPortal database).
##
##  Comment out all other properties in this file and then uncomment the lines
##  prefixed with a single # below.
## 


## This is the factory that supplies the concrete authentication class
root=org.jasig.portal.security.provider.SimpleSecurityContextFactory


## Answers what tokens are examined in the request for each context during authentication.
principalToken.root=userName
credentialToken.root=password


## This is the factory that supplies the concrete authorization class
authorizationProvider=org.jasig.portal.security.provider.AuthorizationServiceFactoryImpl

 

 

Step 2: Edit guest-lo.fragment-layout.xml

  1. Open the fragment layout file, guest-lo.fragment-layout.xml, for editing located at: uPortal-4.x/uportal-war/src/main/data/quickstart_entities/fragment-layout/guest-lo.fragment-layout.xml
  2. Edit the file, but adding the login portlet. See below:

 In the example below line 17 was changed from the default "logging-in" help portlet to the "login" portlet.

guest-lo.fragment-layout.xml
<layout xmlns:dlm="http://www.uportal.org/layout/dlm" script="classpath://org/jasig/portal/io/import-layout_v3-2.crn" username="guest-lo">
  <folder ID="s1" hidden="false" immutable="false" name="Root folder" type="root" unremovable="true">
    <folder ID="s2" hidden="true" immutable="true" name="Header folder" type="header" unremovable="true">
      <channel fname="fragment-admin-exit" unremovable="false" hidden="false" immutable="false" ID="n3"/>
    </folder>
    <folder ID="s4" hidden="false" immutable="false" name="Welcome" type="regular" unremovable="false">
      <structure-attribute>
          <name>externalId</name>
          <value>welcome</value>
      </structure-attribute>
      <folder ID="s5" hidden="false" immutable="false" name="Column" type="regular" unremovable="false">
        <structure-attribute>
          <name>width</name>
          <value>60%</value>
        </structure-attribute>
        <channel fname="what-is-uportal" unremovable="false" hidden="false" immutable="false" ID="n6"/>
        <channel fname="login" unremovable="false" hidden="false" immutable="false" ID="n7"/>
      </folder>
      <folder ID="s8" hidden="false" immutable="false" name="Column" type="regular" unremovable="false">
        <structure-attribute>
          <name>width</name>
          <value>40%</value>
        </structure-attribute>
        <channel fname="uportal-links" unremovable="false" hidden="false" immutable="false" ID="n9"/>
        <channel fname="please-register" unremovable="false" hidden="false" immutable="false" ID="n10"/>
      </folder>
    </folder>
    <folder ID="s11" hidden="false" immutable="false" name="Footer folder" type="footer" unremovable="false"/>
  </folder>
</layout>

Step 3: Import the modified fragment layout

Run the following command below to import the updated guest layout.

ant data-import -Dfile=uportal-war/src/main/data/quickstart_entities/fragment-layout/guest-lo.fragment-layout.xml

Step 4: Rebuild/Redeploy uPortal

After making these changes run the command:

ant clean deploy-war

Step 5: Restart Tomcat

Restart your tomcat servlet container to activate the modification.

Add Feedback content box here.....