Skip to content

Create an offline mode directory

Request

Early Access

Creates an offline mode directory for the specified identity provider (IdP) by idpId.

When you create an offline mode directory, your LDAP configuration is saved in Access Gateway, and Access Gateway can connect to your LDAP to sync the groups and users into the offline mode directory. During an IdP failover, Access Gateway uses the offline mode directory as the authentication source to authenticate users and allow them to access their applications based on the group mappings in the directory.

Path
idpIdstring, (uuid)required

Identifier of the IdP

Bodyapplication/jsonrequired
configobjectrequired

Additional configuration settings for the directory server of the IdP.

connectionobjectrequired

Connection configuration settings for the directory server of the IdP

typestringrequired

The directory vendor type

Enum ValueDescription
OPEN_LDAP

OpenLDAP directory server

ACTIVE_DIRECTORY

Microsoft Active Directory server

curl -i -X POST \
  'https://oag.domain.tld/api/v2/idps/{idpId}/offline-mode/directories' \
  -H 'Content-Type: application/json' \
  -d '{
    "type": "OPEN_LDAP",
    "connection": {
      "connectionUrl": "ldap://dc1.example.com:636",
      "bindDn": "cn=svc-oag,ou=service-accounts,dc=example,dc=com",
      "bindCredential": "<bind-credential>"
    },
    "config": {
      "usernameLDAPAttribute": "uid",
      "uniqueIdAttribute": "entryUUID",
      "userSearchDn": "ou=users,dc=example,dc=com",
      "userObjectClasses": [
        "inetOrgPerson"
      ],
      "userObjectFilter": "(objectClass=inetOrgPerson)",
      "groupNameLDAPAttribute": "cn",
      "groupSearchDn": "ou=groups,dc=example,dc=com",
      "groupObjectClasses": [
        "groupOfUniqueNames"
      ],
      "memberAttribute": "uniqueMember",
      "memberUserAttribute": "uid",
      "rdnLdapAttribute": "uid"
    }
  }'

Responses

Offline mode directory created successfully

Bodyapplication/json
configobjectrequired

Additional configuration settings for the directory server of the IdP.

connectionobjectrequired

Connection configuration settings for the directory server of the IdP

idstring, (uuid)read-only

Unique identifier of the directory

typestringrequired

The directory vendor type

Enum ValueDescription
OPEN_LDAP

OpenLDAP directory server

ACTIVE_DIRECTORY

Microsoft Active Directory server

Response
{ "id": "d290f1ee-6c54-4b01-90e6-d701748f0851", "type": "OPEN_LDAP", "connection": { "connectionUrl": "ldap://dc1.example.com:636", "bindDn": "cn=svc-oag,ou=service-accounts,dc=example,dc=com" }, "config": { "usernameLDAPAttribute": "uid", "uniqueIdAttribute": "entryUUID", "userSearchDn": "ou=users,dc=example,dc=com", "userObjectClasses": [ … ], "userObjectFilter": "(objectClass=inetOrgPerson)", "groupNameLDAPAttribute": "cn", "groupSearchDn": "ou=groups,dc=example,dc=com", "groupObjectClasses": [ … ], "memberAttribute": "uniqueMember", "memberUserAttribute": "uid", "rdnLdapAttribute": "uid" } }