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
-
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}
-
Copy the template file at
<extract_location>/docker-deploy/resources/tml-tm directory.
-
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"
-
Define the user contents specification file
usertemplate_config.json.
{
"userContent": [
{
"file": "ldap.properties.template",
"destination": "/etc/"
}
]
}
-
Copy the
usertemplate_config.json file to
<extract_location>/docker-deploy/resources/tml-tm/ and deploy the cluster.
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.