Weblogic 6 User Manager Adapter |   |  
 Author: Jordan Reed (jreed at sapient.com) Version:  Created: 
   |  
  |   |  
 |  
This module provides adapter classes to allow one to tie Weblogic 6.1 into
the Carbon User Manager service.  This allows one to protect Weblogic resources
such as Servlets, JSPs, EJBs, Data sources, etc., using a standardized User Management
service that can also be used by the application for managing users.
 
  |   
 |  
This module is needed by anyone using a Weblogic 6.1 release that is using a
user store which is not one natively supported by Weblogic.  This will allow
one to Weblogic directly into the security service and allow full use of
the J2EE security model.
 
  |   
 |  
  - Weblogic 6.1
 
  - Any dependencies used by the User Manager implementation.
 
 
  |   
 |  
  |   |  
  - Install Carbon to the main Application Server Classpath
 
  - Install/Configure the Custom Security Realm for the User Manager Adapters
 
  - Create a Caching Realm
 
  - Setup the Weblogic Deployment Descriptors for the J2EE application
 
 
  This will describe the process of setting up Carbon using the Weblogic
  console.  At the end of this documentation is the snippet from the
  config.xml created by Weblogic after these steps are completed.
 
 |  
  The classes used here, and all dependencies must be installed into
  Weblogic's root classpath.  This means one must edit the
  startWeblogic file for the environment to properly
  setup the classpath and any other Carbon deployment properties.
  This allows Carbon, and including the User Manager service
  this depends on, to run within the main application server
  sandbox and give proper access to all the needed classes and
  memories locations.
 
  The consequence is that only instance of Carbon can run in
  the application server.  This instance will be initialized
  when the application server starts.  All applications installed
  within the application server context will use the main
  applications instance of Carbon.  Any deployment properties
  set using CarbonDeploymentConfig.properties inside
  and application specific classpath (the EAR, WAR or JAR)
  will not be used.
 
  |   
 |  
  To setup the Carbon User Manager requires defining a new custom
  security realm is referenced by the J2EE application.  Weblogic
  provides complete instructions on the generic process
  available from their online help at:
 
  
    Installing a Custom Security Realm
  
 
  |   
 |  
  After starting the application server the custom realm must be
  configured.  This tells Weblogic which classes are used to
  work with the realm.  The following steps are done in the
  Weblogic console, usually accessible at
  http://localhost:7001/console
 
  - In the left, go to [domain name]->Security->Realms
 
  - Click "Configure a new Custom Realm..."
 
  - Give the Realm a name.  This example uses 
Carbon Realm 
  - Set the "Realm Class Name" to: 
org.sape.carbon.services.security.auth.weblogic61.WeblogicCarbonRealm 
  - 
    In the "Configuration Data" field you must give the Realm the path
    of the User Manager service the Realm is configured against.
    The property is called 
userManagerPath.  An example
    entry the box is (without the quotes):
    "userManagerPath=/security/management/RdbmsUserManager"
   
  - Click the "Create" button
 
  - In the left, go to [domain name]->Security->Caching Realms
 
  - Click "Configure a new Caching Realm..."
 
  - Give the Caching Realm a name.  This example uses 
Carbon Cached Realm 
  - Select the Basic Realm you configured before, such as "Carbon Realm"
 
  - Click the "Create" button
 
  - In the left, go to [domain name]->Security
 
  - Select the "Filerealm" tab
 
  - Select the Caching Realm you just created, such as "Carbon Cached Realm"
 
  - Click the "Apply" button
 
  - Reboot Weblogic
 
 
  |   
 |  
  After performing the above steps in the console, Weblogic's config.xml file
  for the domain will have entries similar to the following adding to it:
 
<CustomRealm
    Name="Carbon Realm"
    RealmClassName="org.sape.carbon.services.security.auth.weblogic61.WeblogicCarbonRealm"
    ConfigurationData="/security/management/RdbmsUserManager"
    />
<CachingRealm
    Name="Carbon Cached Realm"
    BasicRealm="Carbon Realm"
    />
<FileRealm
    Name="wl_default_file_realm"
    />
<Realm
    Name="wl_default_realm"
    FileRealm="wl_default_file_realm"
    CachingRealm="Carbon Cached Realm"
    />
  |   
 |  
  |