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.
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.
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
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, andconfpathis itself a system property, set with-Dconfpath=/data/openiam/.Directly on the command line, as
-Darguments, which win over the file.
org.openiam.connector.queue
LINUX_Connector_1_Request
org.openiam.connector.name
Linux
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
In the Webconsole, open the managed system — the Running connector status indicator must be green.
Click Test Connection — it must return success.
In the RabbitMQ management console, confirm the LINUX_Connector_1_Request queue exists and has a consumer.
Provision a test user and confirm the account exists on the Linux host (id <login>).
Troubleshooting
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.
See also: general connector troubleshooting and the connector error-code reference.
Registering the connector in OpenIAM
The connector ships pre-registered. Configure its optional fields under Provisioning → Connectors → Linux connector → Connector Configuration:

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:
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
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

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:
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

SSH key provisioning (v4.2.1+)
A policy-map field provisions users' SSH keys — add it to the USER policy map as:
USER
ssh_keys
Policy
/provision/linux/ssh_keys.groovy
string
The default Groovy for this field:

Using the SSH Key manager
Configure the policy map for provisioning SSH keys: add the ssh_keys field shown above.
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.
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:
Search Filter for User
login=?
Search Filter for Group
group=?
Example sync configuration page:

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 containingany_stringanywhere.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:

Last updated
Was this helpful?