Skip to content
AI GatewayAI Gateway Manual

LDAP user provisioning

Configure access-group users and groups in a search scope as members and teams, with LDAP limits and troubleshooting.

When LDAP is the active auth provider, AI Gateway reads the directory with the bind account in Auth providers. Access group users become members. Groups in a separately configured search scope become teams. Active Directory and OpenLDAP are supported.

Users must be below the user base DN and belong to the access group directly or through nested groups. OpenLDAP follows at most ten group levels. Active Directory uses the server’s transitive membership rule. Users outside the user base DN are excluded from both sign-in and sync.

  • A user removed from the access group or deleted from the directory becomes a member-removal candidate. If the access group itself is missing, the run fails instead of treating it as an empty group.
  • Teams have a separate scope. A group below the Group base DN that matches the Group filter becomes a team. Only its nested members who are also assigned through the access group join that team.
  • Team names come from group cn. Different groups with the same name become separate teams.
  • OpenLDAP reads member for groupOfNames, uniqueMember for groupOfUniqueNames, and memberUid for posixGroup. It compares memberUid with user uid values and includes every matching user, including users with several uid values.
  • Email comes from the first populated attribute in the Auth provider’s email-attribute list. AD installations without mail can use userPrincipalName as a later fallback. Users without an email appear as missing_email in the result.

For member and team changes, seats and permissions, dry runs, execution and scheduling, follow How user provisioning works.

Follow LDAP authentication setup for the connection and certificates. The bind account needs read access to users, the access group, nested groups and Team groups. Write access is unnecessary: sync never changes the LDAP directory.

The server kind, URL and access group DN are read-only on the provisioning page. Change the bind DN, password, user base DN, email attributes and CA in Auth providers. The next run uses the active configuration. When the page observes a changed provider revision, it discards the old preview and confirmation while keeping unsaved search-scope edits.

  1. As an administrator with user-management permission, open Organization → Auth providers and select Manage provisioning on the active LDAP card.
  2. Check the read-only server kind, LDAP server URL and access group DN.
  3. If you need teams, enter a group base DN and optionally a parenthesized LDAP filter.
FieldExampleMeaning
Group base DNOU=Groups,DC=corp,DC=example,DC=comSearch for Team groups below this scope.
Group filter(cn=aigw-*)Select names starting with aigw-. Omit it to select every supported group in the scope.
  1. Save and run a dry run to review member and team changes. Run the sync or enable scheduling after checking the scope.

With Follow directory user status enabled, assigned AD users with disabled accounts are deactivated. Memberships, roles and Gateway Keys stay. OpenLDAP has no synchronized disabled state, so assigned members deactivated by hand are activated again.

  • AD primary-group-only membership and POSIX gidNumber primary groups are unsupported. Do not choose a primary group such as Domain Users as the access group.
  • AD support is limited to one domain. Multi-domain forests and Global Catalog searches have not been verified as supported.
  • OpenLDAP referrals are not followed. A referral in user search, access-group verification, the nesting graph or Team search fails the whole run. The configured server must serve all required scopes locally.
  • Every page is read, but the results are not a snapshot. Directory changes during retrieval can cause duplicate or missing entries. A later run reads current data but does not automatically restore roles or keys from members or teams already removed.
  • The default member-removal threshold is 100%, which permits removing everyone. Review removals before the first run and after changing a search scope.
ReasonWhat to check
directory_application_not_foundCheck the access group and user base DN in Auth providers, and the group base DN on this page. The access group must have a supported group class.
directory_unauthorizedCheck the bind DN, password and required read permissions.
directory_rate_limitedThe server returned busy. Check its load and retry on a later run.
directory_unavailableCheck URL, CA, networking, operation timeouts, early search termination, paging support, read limits and OpenLDAP referrals.
removal_rate_exceededCheck access-group membership and user base DN before raising the threshold.
interruptedThe ten-minute run limit or process termination interrupted execution. Already applied changes remain; check the history.

Limits are 50,000 assigned users, 1,000 Team groups and 50,000 members per group. OpenLDAP also limits nesting-graph groups to 10,000 and all users below the user base DN to 50,000. Narrow an overly broad scope. If any required read fails, the run changes no member, team or team membership.