Local operating system user registries

 

With the local operating system, or Local OS, user registry implementation, the WebSphere authentication mechanism can use the user accounts database of the local operating system.

WAS provides implementations for the Windows NT and Windows 2000 local accounts registry and domain registry, as well as implementations for the Linux, Solaris, and AIX user accounts registries. Windows Active Directory is supported through the LDAP user registry implementation discussed later.

A Local OS user registry is not a centralized user registry like LDAP. Do not use a Local OS user registry in a distributed WebSphere Application Server environment, where appservers are dispersed across several machines because each machine has its own user registry. Exceptions include a Windows domain registry, which is a centralized registry.

As mentioned previously, the access-IDs taken from the user registry are used during authorization checks. Because these IDs are typically unique identifiers, they vary from machine to machine, even if the exact users and passwords exist on each machine.

Web client certificate authentication is not currently supported when using the local operating system user registry. However, Java client certificate authentication does function with a local operating user registry. Java client certificate authentication maps the first attribute of the certificate domain name to the user ID in the user registry.

Even though Java client certificates function correctly, the following error displays in the SystemOut.log file...

SECJ0337E: The mapCertificate method is not supported
The error is intended for Web client certificates; however, it also displays for Java client certificates. Ignore this error for Java client certificates.

 

Using Windows operating system registries

When enabling security on Windows operating systems, if the local operating system (LocalOS) is selected as the registry, consider the following points...

 

Required privileges

The user that is running the WebSphere Application Server process requires enough operating system privilege to call the Windows systems API for authenticating and obtaining user and group information from the Windows operating system. This user logs into the machine, or if running as a service, is the Log On As user. Depending on the machine (whether the machine is a stand-alone machine or a machine that is part of a domain or is the domain controller), the access requirements vary.

To give a user the Act as part of the operating system or Log on as a service on Windows 2000 systems...

  1. Click Start > Settings > Control Panel > Admininstrative Tools > Local Security Policy > Local Policies > User Rights Assignments > Act as part of the operating system (or Log on as a service) .

  2. Add the user name by clicking Add.

  3. Restart the machine.

    Windows 2000 domain controller users: For a Windows 2000 domain controller replace Local Security Policy with Domain Security Policy in the previous step.

    Note that in all of the previous configurations, the server can be run as a service using the LocalSystem for the Log On As entry. LocalSystem has the required privileges and there is no need to give any user special privilege. However, because the LocalSystem has special privileges, make sure that it is appropriate to use it in your environment.

If the user running the server does not have the required privilege, you might see one of the following exception messages in the log files...

 

Domain and local registries

When WAS is started, the security run time initialization process dynamically attempts to determine if the local machine is a member of a Windows domain. If the machine is part of a domain then by default both the local registry users or groups and the domain registry users or groups can be used for authentication and authorization purposes with the domain registry taking precendence. The list of users and groups presented during the security role mapping would then include users and groups from both the local user registry and the domain user registry. The users and groups can be distinguished by the host names associated with them.

WAS does not support trusted domains.

If the machine is not a member of a Windows system domain, the user registry local to that machine is used.

 

Using both the domain registry and the local registry

As previously mentioned, when the machine hosting the WAS process is a member of a domain, both the local and the domain registries are used by default. The following section describes more on this topic and recommends some best practices to avoid undesirable consequences.

Using either the local or the domain registry. If you want to access users and groups from either the local registry or the domain registry, instead of both, set the property com.ibm.websphere.registry.UseRegistry. This property can be set to either local or domain. When this property is set to local (case insensitive) only the local registry is used. When this property is set to domain (case insensitive) only the domain registry is used. Set this property by clicking Custom Properties in the Security > User Registries > Local OS panel in the administrative console or by using scripts. When the property is set, the privilege requirement for the user who is running the product process does not change. For example, if this property is set to local, the user running the process requires the same privilege, as if the property was not set.

 

Using UNIX system registries

When using UNIX system registries, the process ID that runs the WAS process needs the root authority to call the local operating system APIs for authentication and for obtaining user or group information.

Note that In UNIX systems, only the local machine registry is used. Network Information Service (NIS) (Yellow Pages) is not supported.

 

Using Linux and Solaris system registries

For WAS Local OS security registry to work on the Linux and Solaris platforms, a shadow password file must exist. The shadow password file is named shadow and is located in the /etc directory. If the shadow password file does not exist, an error occurs after enabling global security and configuring the user registry as Local OS.

To create the shadow file, run the pwconv command (with no parameters). This command creates an /etc/shadow file from the /etc/passwd file. After creating the shadow file, you can enable local operating system security successfully.

 

Remote registries

By default, the registry is local to all of the product processes. The performance is higher, (no need for remote calls) and the registry also increases availability. Any process failing does not effect other processes. When using LocalOS as the registry, every product process must run with privilege access (root in UNIX, Act as part of operating system in Windows systems). If this process is not practical in some situations, you can use a remote registry from the node (or in very rare situations from the cell). Using a remote registry affects performance and creates a single point of failure. Use remote registries only in rare situations.

The node and the cell processes are meant for manipulating configuration information and using them to host the registry for all the appservers creates traffic and can cause problems. Using a node agent (instead of the cell) to host the remote registry is preferable because since the cell process is not designed to be highly available. Also, using a node to host the remote registry indicates that only the appservers in that node are using it. Because the Node Agent does not contain any application code, giving it the access required, privilege is not a concern.

Set up a remote registry by setting the WAS_UseRemoteRegistry property in the Global Security panel using the Custom Properties link at the bottom of the administrative console panel. Use either the Cell or the Node (case insensitive) value. If the value is Cell, the cell registry is used by all of the product processes including the node agent and all of the appservers. If the cell process is down for any reason, restart all of the processes after the cell is cycled. If the node agent registry needs is used for the remote registry, set the value, WAS_UseRemoteRegistry, to node. In this case, all the appserver processes use the node agent registry. In this case, if the node agent fails and does not start automatically, then depending on that node agent, you might need to restart all the appservers, after the node agent is started.

 

See Also

Simple WebSphere authentication mechanism
Custom user registries