5.19.3 Example of setting the configuration file
This section gives an example of setting the user information that has the directory configuration as shown in the following figure.
- Organization of this subsection
(1) Example of the jaas.conf settings
jaas.conf stores the user authentication information. Specify the login module name and the repository number specified in ua.conf (the LDAP directory server or RDB) in jaas.conf. The following figure shows an example of the jaas.conf settings.
(2) Example of the attribute list settings
The attribute list contains the user information that is obtained when the user is successfully authenticated (attribute name) and the alias is used to reference it. The following figure shows an example of the attribute list settings (c:\RealmA\config\AliasFile.csv (in Windows) or /tmp/RealmA/config/AliasFile.csv (in UNIX)).
Note that the attribute list can be directly specified within the program by using the AttributeEntry class without creating the file.
(3) Example of the ua.conf settings
ua.conf stores the repository access information (the LDAP directory server or RDB). The following figure shows an example of the ua.conf settings.
The following figure shows an example of the authentication program coding.
(4) Example of supporting single sign-on (when using the standard login module)
jaas.conf needs to be edited so that the user authentication library login module supports single sign-on. The following figure shows an example of supporting single sign-on (when using the standard login module).
(5) Example of supporting single sign-on (when using the custom login module)
jaas.conf and the authentication program coding must be edited so that the custom login module supports single sign-on. In addition, the custom login module definition item must be specified in ua.conf, which corresponds to the login module identifier ("Krb5" in the example). The following figure shows an example of supporting single sign-on (when using the custom login module).