Home

 

Customizing login attributes

By default, Profiles looks at the login table and the three login attributes defined below to perform. To improve performance, you can comment out the attributes that are not used in your environment.

To edit configuration files, use wsadmin. See Start the wsadmin client for information about how to start the wsadmin command line tool.

Default mappings for uid and mail are provided. To use a mapping for loginId, replace ADMIN_REPLACE in the loginField element with the appropriate login attribute specified in WebSphere Application Server. This section should only contain those login attributes that will be used in a deployment. For example, if users only log in with e-mail, then the mappings for uid and loginId should be commented out or removed.

For more information on enabling and disabling access to profiles, see Managing access to Lotus Connections features.

To disable a mapping:

  1. Use wsadmin to access and check out the Profiles configuration files.

    1. Access the Profiles configuration files:

    2. Check out the Profiles configuration files...

      ProfilesConfigService.checkOutConfig("<working_directory>", "cell_name")

      where:

      • <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied and are stored while you make changes to them. Use forward slashes to separate directories in the file path, even if you are using the Microsoft Windows operating system.

      • cell_name is the name of the WebSphere Application Server cell hosting the Profiles feature. This argument is required even in stand-alone deployments. This argument is case-sensitive, so type it with care. If you do not know the cell name, do one of the following to determine it:

        • Stand-alone deployment: See:

          WAS_HOME\profiles\profile_name\config\cells\

        • Network deployment: From wsadmin...

          print AdminControl.getCell()

      For example:

      • AIX/Linux:

          ProfilesConfigService.checkOutConfig("/opt/prof/temp","foo01Cell01")
          

    3. Microsoft Windows:

        ProfilesConfigService.checkOutConfig("c:/prof/temp","foo01Cell01")
        

  2. Locate the Profiles configuration file, profiles-config.xml, in the local working specified in the checkOutConfig command. The Profiles configuration file contains the various configuration settings for the Profiles feature. Here is the relevant section of the file that is used for customizing login attributes:

      <loginAttributes>
      <loginAttribute>uid</loginAttribute>
      <loginAttribute>email</loginAttribute>
      <loginAttribute>loginId</loginAttribute>
      </loginAttributes>
      

  3. Comment out any attributes that are not used in your environment.

    For example:

      <loginAttributes>
      <loginAttribute>uid</loginAttribute>
      
      <! -- The following login attribute is not used
      
      <loginAttribute>email</loginAttribute>
      
      -->
      
      <loginAttribute>loginId</loginAttribute>
      </loginAttributes>
      

    Apply property changes


Customizing Profiles

 

Related tasks

Apply property changes

Forcing users to log in before they can access a feature


+

Search Tips   |   Advanced Search