Network Deployment (Distributed operating systems), v8.0 > Secure applications and their environment > Authenticate users > Select a registry or repository > Manage realms in a federated repository
Configure LDAP in a federated repository
Follow this topic to configure LDAP settings in a federated repository. You have chosen among various ways to configure LDAP:
At this point, you are viewing the LDAP repository configuration page of the admin console.
- Configure a single, LDAP repository in a new configuration under Federated repositories
- Change a federated repository to include a single, LDAP repository only
- Configure multiple LDAP repositories in a federated repository
- Configure a single built-in, file-based repository and one or more LDAP repositories in a federated repository
- Manage repositories in a federated repository
Procedure
- Enter a unique identifier for the repository in the Repository identifier field. This identifier uniquely identifies the repository within the cell, for example: LDAP1.
- Select the type of LDAP server used from the Directory type list. The type of LDAP server determines the default filters that are used by WAS.
IBM Tivoli Directory Server users can choose either IBM Tivoli Directory Server or SecureWay as the directory type. Use the IBM Tivoli Directory Server directory type for better performance. For a list of supported LDAP servers, see Use specific directory servers as the LDAP server.
- Enter the fully qualified host name of the primary LDAP server in the Primary host name field. We can enter either the IP address or the DNS name.
- Enter the server port of the LDAP directory in the Port field. The host name and the port number represent the realm for this LDAP server in a mixed version nodes cell. If servers in different cells are communicating with each other using Lightweight Third Party Authentication (LTPA) tokens, these realms must match exactly in all the cells.
The default value is 389, which is not an SSL connection. Use port 636 for an SSL connection. For some LDAP servers, you can specify a different port for a non-SSL or SSL connection. If you do not know the port to use, contactthe LDAP server administrator.
If multiple WASs are installed and configured to run in the same single sign-on domain, or if WAS interoperates with a previous version of WAS, then it is important that the port number match all configurations. For example, if the LDAP port is explicitly specified as 389 in a v5.x or 6.0.x configuration, and WAS at v6.1 is going to interoperate with the v5.x or 6.0.x server, then verify that port 389 is specified explicitly for the v6.1 server.
- Optional: Enter the host name of the failover LDAP server in the Failover host name field. We can specify a secondary directory server to be used in the event that your primary directory server becomes unavailable. After switching to a secondary directory server, LDAP repository attempts to reconnect to the primary directory server every 15 minutes.
- Optional: Enter the port of the failover LDAP server in the Port field and click Add. The default value is 389, which is not an SSL connection. Use port 636 for an SSL connection. For some LDAP servers, you can specify a different port for a non-SSL or SSL connection. If you do not know the port to use, contactthe LDAP server administrator.
- Optional: Select the type of referral. A referral is an entity used to redirect a client request to another LDAP server. A referral contains the names and locations of other objects. It is sent by the server to indicate that the information that the client requested can be found at another location, possibly at another server or several servers. The default value is ignore.
- ignore
- Referrals are ignored.
- follow
- Referrals are followed automatically.
- Optional: Specify the type of support for repository change tracking. The profile manager refers to this value before passing on the request to the corresponding adapter. If the value is none, then that repository is not called to retrieve the changed entities.
- none
- Specifies there is no change tracking support for this repository.
- native
- Specifies that the repository's native change tracking mechanism is used by virtual member manager to return changed entities.
- Optional: Specify arbitrary name and value pairs of data as custom properties. The name is a property key and the value is a string value that can be used to set internal system configuration properties. Defining a new property enables you to configure a setting beyond that which is available in the admin console.
- Optional: Enter the bind DN name in the Bind distinguished name field, for example, cn=root. The bind DN is required if anonymous binds are not possible on the LDAP server to obtain user and group information or for write operations. In most cases, bind DN and bind password are needed. However, when anonymous bind can satisfy all of the required functions, bind DN and bind password are not needed. If the LDAP server is set up to use anonymous binds, leave this field blank. If a name is not specified, the application server binds anonymously.
To create LDAP queries or to browse, an LDAP client must bind to the LDAP server using the distinguished name (DN) of an account that has the authority to search and read the values of LDAP attributes, such as user and group information. The LDAP administrator ensures that read access privileges are set for the bind DN. Read access privileges allow access to the subtree of the base DN and ensure that searches of user and group information are successful.
The directory server provides an operational attribute in each directory entry (for example, the IBM Directory Server uses ibm-entryUuid as the operational attribute). The value of this attribute is a universally unique identifier (UUID), which is chosen automatically by the directory server when the entry is added, and is expected to be unique: no other entry with the same or different name would have this same value. Directory clients may use this attribute to distinguish objects identified by a distinguished name or to locate an object after renaming. Ensure that the bind credentials have the authority to read this attribute.
- Optional: Enter the password that corresponds to the bind DN in the Bind password field.
- Optional: Enter the property names to use to log into WAS in the Login properties field. This field takes multiple login properties, delimited by a semicolon (;). For example, uid;mail.
All login properties are searched during login. If multiple entries or no entries are found, an exception is thrown. For example, if you specify the login properties as uid;mail and the login ID as Bob, the search filter searches for uid=Bob or mail=Bob. When the search returns a single entry, then authentication can proceed. Otherwise, an exception is thrown.
If you define multiple login properties, then the first login property is programmatically mapped to the federated repositories principalName property. For example, if you set uid;mail as the login properties, the LDAP attribute uid value is mapped to the federated repositories principalName property. If you define multiple login properties, after login, the first login property is returned as the value of the principalName property. For example, if you pass joe@yourco.com as the principalName value and the login properties are configured as uid;mail, the principalName is returned as joe.
- Optional: Specify the LDAP attribute for Kerberos principal name. This field is enabled and can be modified only when Kerberos is configured and it is one of the active or preferred authentication mechanisms.
- Optional: Select the certificate map mode in the Certificate mapping field. We can use the X.590 certificates for user authentication when LDAP is selected as the repository. The Certificate mapping field is used to indicate whether to map the X.509 certificates into an LDAP directory user by EXACT_DN or CERTIFICATE_FILTER. If EXACT_DN is selected, the DN in the certificate must exactly match the user entry in the LDAP server, including case and spaces.
- If you select CERTIFICATE_FILTER in the Certificate mapping field, specify the LDAP filter for mapping attributes in the client certificate to entries in LDAP.
If more than one LDAP entry matches the filter specification at run time, authentication fails because the result is an ambiguous match. The syntax or structure of this filter is:
LDAP attribute=${Client certificate attribute}
For example, uid=${SubjectCN}.
The left side of the filter specification is an LDAP attribute that depends on the schema thatthe LDAP server is configured to use. The right side of the filter specification is one of the public attributes in your client certificate. The right side must begin with a dollar sign ($) and open bracket ({) and end with a close bracket (}). We can use the following certificate attribute values on the right side of the filter specification. The case of the strings is important:
Optional. Select the Require SSL communications option to use SSL communications with the LDAP server.
- ${UniqueKey}
- ${PublicKey}
- ${PublicKey}
- ${Issuer}
- ${NotAfter}
- ${NotBefore}
- ${SerialNumber}
- ${SigAlgName}
- ${SigAlgOID}
- ${SigAlgParams}
- ${SubjectCN}
- ${Version}
If you select the Require SSL communications option, you can select either the Centrally managed or Use specific SSL alias option.
- Centrally managed
- Enables you to specify an SSL configuration for a particular scope, such as the cell, node, server, or cluster in one location.
To use the Centrally managed option, specify the SSL configuration for the particular set of endpoints. The Manage endpoint security configurations and trust zones panel displays all of the inbound and outbound endpoints that use the SSL protocol. If you expand the Inbound or Outbound section of the panel and click the name of a node, you can specify an SSL configuration used for every endpoint on that node. For an LDAP registry, you can override the inherited SSL configuration by specifying an SSL configuration for LDAP.
To specify an SSL configuration for LDAP...
- Click Security > SSL certificate and key management > Manage endpoint security configurations and trust zones.
- Expand Outbound > cell_name > Nodes > node_name > Servers > server_name
> LDAP.
- Use specific SSL alias
- Select the Use specific SSL alias option if you intend to select one of the SSL configurations in the menu that follows the option.
This configuration is used only when SSL is enabled for LDAP. The default is DefaultSSLSettings.
To modify or create a new SSL configuration...
- Click Security > SSL certificate and key management.
- Under Configuration settings, click Manage endpoint security configurations and trust zones > configuration_name.
- Under Related items, click SSL configurations.
- Click OK.
Results
After completing these steps,the LDAP repository settings are configured.
What to do next
Return to the appropriate task to complete the steps for your federated repository:
- Configure a single, LDAP repository in a new configuration under Federated repositories
- Change a federated repository to include a single, LDAP repository only
- Configure multiple LDAP repositories in a federated repository
- Configure a single built-in, file-based repository and one or more LDAP repositories in a federated repository
- Manage repositories in a federated repository
Related
LDAP repository configuration settings