Example

Following is a sample custom adapter configuration for tml-tm pod and authenticates requests against LDAP.

Prerequisites

A configuration of an external LDAP system must to be available.

Procedure

  1. Name the configuration file as ldap.properties.template.
    ldap.properties.template
    ldap.provider=${ldap_provider_url}
    ldap.default.org=${ldap_default_org}
    request.header.username.field=${request_field_username}
    request.header.cred.field=${request_field_passwd}
  2. Copy the template file at <extract_location>/docker-deploy/resources/tml-tm directory.
  3. Edit <extract_location>/docker-deploy/properties/tml_tm_properties.json and input the value as follows.
    tml_tm_properties.json new properties
    "ldap_provider_url":"ldap://ldapservicename:389",
    "ldap_default_org":"sampleorg",
    "request_field_username":"username",
    "request_field_passwd":"creds"
  4. Define the user contents specification file usertemplate_config.json.
    {
      "userContent": [
        {
          "file": "ldap.properties.template",
          "destination": "/etc/"
        }
      ]
    }
  5. Copy the usertemplate_config.json file to <extract_location>/docker-deploy/resources/tml-tm/ and deploy the cluster.