/
Create an offline mode di...
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.
Additional configuration settings for the directory server of the IdP.
- https://oag.domain.tldhttps://oag.domain.tld/api/v2/idps/{idpId}/offline-mode/directories
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"
}
}'Offline mode directory created successfully
Additional configuration settings for the directory server of the IdP.
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" } }