API Manager provides sample external identity providers for Local Directory Access Protocol (LDAP) based on Apache Directory and Microsoft Active Directory. This chapter explains how to configure these sample providers using the Policy Studio and API Manager tools.
The following sample external identity provider configuration is available in the Policy Studio tree:
This section explains how to configure an Apache Directory LDAP external identity provider.
The sample LDAP configuration assumes that an Apache Directory LDAP server is running locally (on localhost:10389
), and configured with a sample partition (Seven Seas). This sample partition is available from:
http://directory.apache.org/apacheds/basic-ug/1.4.3-adding-partition.html
When the partition has been configured, you must import the sample LDAP Data Interchange Format (LDIF) data to populate the directory with users. The sample LDIF data is available from:
Note | All user passwords are set to pass . |
For more details, see the Apache Directory Studio User Guide.
To set up LDAP as an external identity provider, perform the following steps:
Community
). https://localhost:8075/
wbligh
user). Note | The Login name for an external user (provisioned by an external identity provider) is read-only and cannot be changed. |
This section explains how to configure a Microsoft Active Directory external identity provider.
To set up Active Directory as an external identity provider, perform the following steps:
ldap://127.0.0.1:389
).CN=Joe Bloggs,OU=DUBL,OU=IE,OU=Employees,DC=company,DC=com
). Note | This user must have Read MemberOf (search) privileges. |
OU=Employees,DC=company,DC=com
). This is the starting point in the Active Directory hierarchy at which the search for users will begin.Community
). https://localhost:8075/
jbloggs
user). Note | The Login name for an external user (provisioned by an external identity provider) is read-only and cannot be changed. |
You can configure the Account information policy in Policy Studio in Server Settings > API Manager > Identity Provider. This policy returns the user information to API Manager using the following attributes:
Attribute | Description |
---|---|
extidentity.organization.id
|
The organization ID (required). |
extidentity.role
|
The user’s role (required). This is one of the following:
|
extidentity.enabled
|
User is enabled only if the selector evaluates to 1 or true . |
extidentity.name
|
The user’s name (required). |
extidentity.description
|
A description of the user. |
extidentity.email
|
The user’s email address. |
extidentity.phone
|
The user’s phone number. |
For more details, see Configure API management settings in Policy Studio.
For details on how to create custom policies, see the API Gateway Policy Developer Guide.