Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Linux connector

This page describes how to enable provisioning to a Linux system

The Linux connector enables provisioning/de-provisioning of users on a Linux server. It connects over SSH (password or certificate authentication) and executes bash scripts (the object rules) on the target host for each operation.

Operation
Supported

Create user

✅ (add_script.sh)

Modify user

✅ (modify_script.sh)

Delete user

✅ (delete_script.sh)

Reset password

✅ (sudo passwd)

Search / synchronize users

✅

Group create/modify/delete and membership

✅ (via the same scripts, type group)

SSH key provisioning

✅ (policy-map field + SSH Key manager)

Test connection

✅

Use cases

  • Managing local accounts and groups on Linux servers from OpenIAM — including group membership.

  • Provisioning users' SSH public keys to Linux hosts, with expiry-driven removal.

  • Importing existing Linux users into OpenIAM via synchronization/reconciliation.

Versions and compatibility

There is no end-application version here. The connector opens an SSH session to the target host and runs ordinary shell commands through it, so it works against any Linux that accepts SSH and provides the usual user and group tools — it is not built against a distribution or release.

Property
Value

Platform

Any Linux host reachable over SSH

Interface

SSH, using the JSch library

Authentication

Password, or a private key — see Prerequisites

Privilege

Commands are run through sudo, so the service account needs sudo rights

What it runs

Standard tools — useradd, usermod, groupadd, groupmod, groupdel, passwd, chmod — plus the object-rule scripts below

Prerequisites

A service account on the target Linux host with sudo rights and SSH access. Two options:

Create a Linux user for password authentication

Install openssh-server if needed:

Configure /etc/ssh/sshd_config:

Restart ssh:

Create a Linux user for certificate authentication

Installing the connector

Deploy the connector for your deployment type (the Kubernetes deployment configuration, or the RPM connector service openiam-connector@linux-connector-rabbitmq) — see Connectors via RPM. For certificate authentication, place the private key at a path readable by the connector (check file permissions).

Starting, stopping, and restarting

Deployment
Commands

RPM (systemd)

systemctl start|stop|restart openiam-connector@linux-connector-rabbitmq

Kubernetes

kubectl rollout restart the connector deployment.

Command-line parameters and properties

The connector is a Spring Boot application. Its defaults ship inside the jar, and you override them in either of two places:

  • An external property file, read at ${confpath}/conf/properties/linux-connector-rabbitmq.properties. The file is optional, and confpath is itself a system property, set with -Dconfpath=/data/openiam/.

  • Directly on the command line, as -D arguments, which win over the file.

Property
Default

org.openiam.connector.queue

LINUX_Connector_1_Request

org.openiam.connector.name

Linux

Property
Default
Purpose

linux.local.linux.command.directory

${confpath}/conf/iamscripts/connector/linux/

Where the connector reads its object-rule scripts on the connector host

linux.remote.linux.command.directory

~/

The working directory used on the target host

linux.local.linux.cert.location

${confpath}/conf/linux-connector-rabbitmq/certs/

Where private keys for certificate authentication are kept on the connector host

The connection details themselves are not set here — they are managed system parameters, covered under Configuring the managed system.

Verifying the connector is running

1

In the Webconsole, open the managed system — the Running connector status indicator must be green.

2

Click Test Connection — it must return success.

3

In the RabbitMQ management console, confirm the LINUX_Connector_1_Request queue exists and has a consumer.

4

Provision a test user and confirm the account exists on the Linux host (id <login>).

Troubleshooting

Symptom
Likely cause
Resolution

Test connection fails

SSH unreachable, wrong port, or wrong credentials/key path

Verify SSH connectivity manually; for certificate auth, check the key path and its file permissions.

Operations fail on the host

The service account lacks sudo rights, or scripts are missing

Verify the sudoers entry and that the object-rule scripts exist and are executable.

Password reset hangs or fails

sudo -S passwd flow differs on the host

Test the sudo -S passwd <login> sequence manually (see SSH commands above).

Second sync deletes entitlements

Provision role/group/resource missing in the transformation script

Add them to the sync object (see the warning above).

SSH key not appearing on the host

Key expired or policy-map field missing

Check the key's expiration date and the ssh_keys policy-map field.

Registering the connector in OpenIAM

The connector ships pre-registered. Configure its optional fields under Provisioning → Connectors → Linux connector → Connector Configuration:

The Provisioning Connector form for Linux, with Connector Name set to Linux CONNECTOR, Metadata Type to Linux Connector and the queue LINUX_Connector_1
Field
Value

Connector Name

Linux CONNECTOR

Metadata Grouping

Connector type

Metadata Type

Linux Connector

Connector Queue

LINUX_Connector_1

Connector Configuration then lists every field the platform offers and lets you enable the ones this connector uses. Five are enabled for Linux:

Field
Required
What it holds for Linux

Connection String

Path to the private key, for certificate authentication

Add Object Rule

Yes

add_script.sh and its parameters

Modify Object Rule

Yes

modify_script.sh and its parameters

Delete Object Rule

Yes

delete_script.sh and its parameters

Search Object Rule

Yes

The attribute mapping the search returns

The values themselves go on the managed system, not here — see the table below. The remaining fields on that screen (JDBC Driver URL, Is Primary Repository, Secondary Repository, Always Update Secondary) belong to other connectors and stay unchecked. Connector configuration parameters describes the screen itself.

Configuring the managed system

Field name
Example value
Description

Host URL

localhost

URL of the Linux server (used for the SSH connection).

Port

22

Linux server SSH port.

Password Policy

Default Pswd Policy

Password policy to apply.

Login Id

linuxuser

Username for SSH login with the required rights.

Password

passwd00

For password authentication.

Connection String

/data/openiam/conf/linux-connector-rabbitmq/certs/id_rsa

Path to the private key (for certificate authentication). Check file permissions. Appears on this screen only while Connection String is enabled in Connector Configuration, above.

Add Object Rule

add_script.sh type login password groupsadd groupsdel

The bash script called with the necessary parameters.

Modify Object Rule

modify_script.sh type login oldlogin groupsadd groupsdel

The bash script called with the necessary parameters.

Delete Object Rule

delete_script.sh type login

The bash script called with the necessary parameters.

Search Object Rule

LOGIN=login, GROUPS=groups, GECOS=name:roomNumber:homePhone:workPhone

A configured Linux managed system - Active on, the host and SSH port, the linuxuser service account, the four object rules naming their bash scripts, both search filters, and an Attributes table holding eight managed system attributes

The Attributes table below the fields holds managed system attributes rather than connector settings — ON_DELETE and the pre/post-processor entries are the ones worth setting. See Managed system fields for what each name does and which are still read.

Object-rule scripts

The object rules are bash scripts run on the server; the first parameter is the object type — user or group. Default scripts:

add_script.sh type login password groupsadd groupsdel

modify_script.sh type login oldlogin groupsadd groupsdel

delete_script.sh type login:

Reset password needs no script. Users perform the operation themselves.

SSH commands used by the connector

Example ssh requests:

For password reset the connector uses:

then sends the sudo password and the new password twice. Verify that setting a password this way works on the host:

Attribute mapping and policy map

The USER policy map for the Linux managed system, with ten active mappings - password, login, enable, end_date, groups, home_phone, name, room_number, surname and work_phone - each resolved by a Groovy script under provision/linux

SSH key provisioning (v4.2.1+)

A policy-map field provisions users' SSH keys — add it to the USER policy map as:

Object type
Attribute name
Type
Policy
Data type

USER

ssh_keys

Policy

/provision/linux/ssh_keys.groovy

string

The default Groovy for this field:

The GROUP policy map for the Linux managed system, with two mappings - GROUP_PRINCIPAL and GROUP, both on group_name - resolved by groupPrincipal.groovy and groupName.groovy

Using the SSH Key manager

1

Configure the policy map for provisioning SSH keys: add the ssh_keys field shown above.

2

Add an SSH key in SelfService, from the account menu → Security → SSH Keys. The public key is mandatory; the private key is optional, reserved for a future capability that obtains keys and certificates from a company CA. SSH keys in the SelfService guide covers the screen itself.

3

On provisioning, the key is checked: it is added to the system if its expiration date is not in the past, and deleted from the Linux system once the expiration date passes.

Reconciliation and synchronization

Two fields on the managed-system page drive both:

Field
Value

Search Filter for User

login=?

Search Filter for Group

group=?

Example sync configuration page:

An example synchronization configuration for Linux users, with the Linux managed system as the source, a Complete sync type, the filter login=%test%, and validation, transformation and attribute-lookup scripts under sync/user/linux

Provision to target systems? — if unchecked, you need to add the login to the user in the transformation script:

SQL Query / Directory Filter filters users by login:

  • * — select all records from Linux.

  • For 4.1.x: any_string — logins containing any_string anywhere.

  • For 4.2.x: login=any_string — exact match; login=any_string% — contains anywhere.

Reconciliation

Reconciliation uses the same two search filters as synchronization, above. An example reconciliation configuration:

An example reconciliation configuration for the Linux connector, with target and OpenIAM search query scripts under recon/Linux, their filters, and a Situations list mapping all four situations to a response and the user population script

Last updated

Was this helpful?