ldap_add_bulk
Add multiple LDAP entries sequentially, reporting per-entry success or failure without aborting on the first error, ideal for seeding test data.
Instructions
Create multiple LDAP entries in one call (e.g. for seeding test/sample data). LDAP has no native multi-entry add operation, so this adds each entry sequentially and reports per-entry success/failure rather than aborting on the first error — a bad entry never blocks the rest of the batch. Blocked when that connection's own readOnly mode is enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | JSON array of {dn, attributes} objects, e.g. '[{"dn":"uid=jdoe,ou=Users,dc=example,dc=com","attributes":{"objectClass":["inetOrgPerson"],"cn":["John Doe"],"sn":["Doe"]}}]' | |
| connectionId | No | Id of the ldap connection to use, from databases.config.yml. Optional when only one ldap connection is configured. |