Ending user processes to delete a user account

On a Linux operating system, you cannot delete a user if any user processes are running. The adapter can be configured for Linux operating systems to end all user processes when a user is deleted.

About this task

The default behavior of the Linux operating system is to fail a user delete request if any user processes are running. Use this task to configure the adapter to end any active user processes when you submit a delete user request.

This option is configurable by service. The option is not displayed automatically on the Service Form.

Note: This option must not be used on systems that permit duplicate user IDs.

To add this attribute to the Service Form:

Procedure

  1. Edit the profile JAR file.
    1. Log in to the system where the UNIX and Linux Adapter is installed.
    2. Copy the JAR file into a temporary directory.
    3. Extract the contents of the JAR file into the temporary directory. Run the following command. The following example applies to the Linux adapter profile.
    4. Type the name of the JAR file for your operating system.
      #cd /tmp
      #jar -xvf PosixLinuxProfile.jar

      The jar command extracts the files into the PosixLinuxProfile directory.

    5. Edit the Service.xml file for your respective profile. For example, erPosixLinuxRMIService.xml in the case of the Linux adapter.
    6. Add the attribute erPosixDelUserInUse on the Service form for your respective profile.
      <formElement name="data.erposixdeluserinuse" label="$erposixdeluserinuse">
                          <checkbox name="checkbox" value="false"/>
      </formElement>
      
    7. Save the changes.
  2. Import the file.
    1. Create a JAR file by using the files in the /tmp directory Run the following command:
      #cd /tmp
      #jar -cvf PosixLinuxProfile.jar PosixLinuxProfile
    2. Import the JAR file into the Identity server.
    3. Stop and start the Identity server.
    4. Restart the adapter service.
    Once the steps above are performed, erPosixDelUserInUse attribute is visible on service form.
  3. Create a service with following parameter:
    Delete user account even when it is in use
  4. Restart the Dispatcher.