BackPrevious Page Next PageNext

Using LDAP Server's Security Information

Using by importing from the LDAP server

Importing LDAP users automatically

Importing LDAP users and groups manually

Synchronizing local security information with that of LDAP server

Defining role maps

Using by the LDAP implementation of the Security API

The JReport Server security system can run two modes in which you can use an LDAP server's security system: importing mode and non-importing mode. Below diagram illustrates these two working modes:

Working Mode

Importing mode: You can import LDAP server's security information into the JReport Server security system (red line) so as to use them in JReport Server.

Non-importing mode: JReport Server can access an LDAP server and obtain LDAP security information directly using the LDAP implementation of the Security API (blue line).

Using by importing from the LDAP server

LDAP server's security information can be imported into the JReport Server security system either automatically or manually. You can also schedule a task to synchronize the security information of JReport Server with that of the LDAP server so as to get the LDAP server's most current security information. By predefining role maps, you can make JReport Server automatically assign the imported LDAP users to specific JReport Server roles.

Importing LDAP users automatically

If the Enable Auto-Import of Users from LDAP Server option in the Configuration > LDAP > Server tab is checked while configuring the LDAP server, LDAP users will automatically be imported into JReport Server when they log in for the first time. The Enable LDAP and Enable Auto-Import of Users from LDAP Server options in the Configuration > LDAP > Server tab work together. The former determines whether an imported LDAP user can be used in JReport Server, and the latter determines whether LDAP users can be imported automatically, as shown in the following table:

Checked=Checked; Unchecked=Unchecked

Enable LDAP
Enable Auto-Import of Users from LDAP Server
Can be used
Local User Checked Checked YES
Checked Unchecked YES
Unchecked Checked YES
Unchecked Unchecked YES
Imported LDAP User Checked Checked YES
Checked Unchecked YES
Unchecked Checked NO
Unchecked Unchecked NO
Non-Imported LDAP User Checked Checked YES
Checked Unchecked NO
Unchecked Checked NO
Unchecked Unchecked NO

Importing LDAP users and groups manually

You can also import LDAP users and groups into JReport Server's security system manually.

  1. In the JReport Server console, point to Administration on the system toolbar, and then click Security > LDAP from the drop-down menu to open the LDAP page. Click the Import tab.

    LDAP page

  2. Specify whether LDAP users will overwrite local users or be replaced by local users after LDAP users are imported into JReport Server.

    If you have imported users/groups from the LDAP server to JReport Server before and you want to import them again, in order to prevent the information of the users/groups on JReport Server from being overwritten by the newly imported users/groups, you should check Local users overwrite LDAP users and then import the users/groups.

  3. To view the LDAP users and groups that have the same names as the users and groups in JReport Server, click the List Users and List Groups buttons.
  4. Import the LDAP users and groups to JReport Server.

    The selected or all LDAP users/groups will then be imported based on the specified overwriting rule. Any LDAP group that has the same name as a group on JReport Server will be merged into the local group.

Notes:

Synchronizing local security information with that of LDAP server

In order to have the most current security information, you can schedule a task to synchronize the security information of JReport Server with that of the LDAP server. The synchronization process first compares the security information on both JReport Server and the LDAP server. Then if necessary, it updates the information on JReport Server so that both sides are consistent. However, for security reasons this process does not automatically import the newly-added users or groups from the LDAP server.

To schedule a synchronization task:

  1. In the Administration > Security > LDAP page, go to the Synchronize tab.

    Synchronize tab

  2. Click the Edit link in the LDAP Synchronization Schedule Settings table.
  3. From the Select time type to synchronize drop-down list, specify the time for when the task is to be performed.

    Specify Time

  4. Click Save to apply the schedule settings.

Information about the synchronization task is then displayed in LDAP Synchronization Schedule Settings table and the synchronization task is enabled by default. You can perform the following operations on the task:

You can also manually start the synchronization by clicking the Synchronize Now button. Then when the synchronization is completed, the Synchronization Information table will be displayed showing which users and roles/groups have been modified and removed. Click Back to return to the Synchronize tab.

Defining role maps

You can predefine role maps for the imported LDAP users, then when an LDAP user account is imported, JReport Server can automatically assign it to specific roles created on the server according to the map. A role map consists of two parts: Search Filter String and Corresponding Role Name. When an imported LDAP user account matches the filter condition, it will automatically be added to a specific role.

To create a role map:

  1. In the Administration > Security > LDAP page, go to the Role Map tab.

    Role Map tab

  2. Click the Create New Role Map link.
  3. In the Search Filter String text box, input the search filter criteria.

    Search Filter String

  4. From the Corresponding Role drop-down list, select a role to which you want to assign the matching users.
  5. Click Test to test the contents of the filter. The result of the test does not affect the creation of the new role map.
  6. Click Save to create the role map.

You can create as many role maps as you need and they are listed in the role map table. For any role map you can edit it as follows:

Using by the LDAP implementation of the Security API

JReport Server can access an LDAP server directly to look for LDAP users via LDAP Security API implementation, which could be your own LDAP implementation or be implemented using JReport's Security API (for details about the Security API, see the jet.server.api.custom.security package in the JReport Javadoc in <install_root>\help\api).

To use LDAP Security API implementation, you will need to turn on the LDAP security providers. There are three approaches to achieve this:

In order to use LDAP security providers, a valid admin user is required to access the JReport Server console in order to manage JReport Server. A user that meets one of the following two rules is regarded as an admin user:

BackPrevious Page Next PageNext