Commands icon
Docker icon
Get icon
Search icon
If icon
Fail icon
Pause icon
Set icon
OutputValues icon
Log icon
Request icon
Webhook icon

Move OpenLDAP users with group membership proof

Move OpenLDAP users between OUs with approval, refint checks, UUID assertions, recovery receipts and independent group membership verification.

Categories
CoreInfrastructure

Move a leaf inetOrgPerson between OUs while preserving its UUID and groupOfNames/member references. OU-based permissions are outside scope.

How it works

  1. LDAP searches capture the user, destination, groups and member-only MDB refint configuration.
  2. Dry runs write no LDAP/KV state. Live moves need approval, the plan fingerprint and a note within one hour. Fresh snapshots must match before saving a pending receipt.
  3. A UUID/timestamp assertion guards the rename. Independent reads verify identity, membership and zero old-DN references before marking the receipt COMPLETE. Repeats reconcile the saved UUID.

What you get

Download outputs.plan_move.outputFiles['plan-summary.json'] and outputs.verify_memberships.outputFiles['verification.json']. outputs.result.values exposes status and report URIs. Alerts include the failed task and execution link.

Who it's for

Identity engineers can use this flow when reorganizing OpenLDAP users whose groups store member DNs. It checks that moving a user preserves their identity and memberships.

Why orchestrate this with Kestra

Kestra keeps the reviewed snapshot across approval and checks it again before a move. Durable receipts reconcile interrupted requests, and independent reads verify the result before the change is marked complete.

Prerequisites

Use Kestra 2.0.8, LDAP/Shell plugins, Docker and OpenLDAP MDB with rootDN and refint_attributes member. Accounts need context-wide reads, rename rights and cn=config read access. Users, groups and the destination OU must exist.

Each shell container uses public Debian and installs python3-ldap via the shared install_ldap command. Allow package access. Both the worker and containers need LDAP connectivity; bridge cannot resolve sibling container names. Use a trusted network; TLS needs separate configuration.

Secrets

  • LDAP_BIND_DN and LDAP_BIND_PASSWORD authenticate directory reads and moves.
  • LDAP_CONFIG_BIND_DN and LDAP_CONFIG_PASSWORD provide configuration read access.
  • LDAP_MOVE_WEBHOOK_KEY protects the preview webhook.
  • LDAP_MOVE_ALERT_URL receives JSON failure alerts.

Quick start

  1. Set secrets and inputs. ldap_port is INT 389 (1–65535), dry_run is BOOL true, and other inputs are STRING. Defaults in the editor move alice from ou=people to ou=engineering under dc=example,dc=org.
  2. Preview the plan, then set dry_run=false. Resume with approved=true, the exact plan_fingerprint and a nonempty review_note.
  3. Inspect verification. Reuse request_id only for that request. The disabled webhook always previews.

How to extend

Extend planning and verification together for other reference attributes. Recover concurrent-edit failures manually using reports and the pending receipt.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.