Configure LDAP Vendor Attributes for SecureTrack

To update the name of an LDAP server field for a new or existing LDAP server

  1. Change the name of the attribute:

    kubectl exec -it deploy/st-server -c st-server -- bash -c "psql -Upostgres securetrack -h stolon-proxy -p 5432 -c \"update ldap_attr set attr_name = '<attr_name>' where vendor='Active Directory' and attr_objective='<attr_objective>';\""

  2. Restart the Tomcat server:

    kubectl delete pod -l app=st-server

Supported arguments

Argument

Description

-c "update ldap_attr set attr_name = '<attr_name>'

Command to update the specified attribute name

vendor 'Active Directory'

The name of the vendor should always be Active Directory.

attr_objective '<attr_objective>'

The specific attribute in the SecureTrack database from the LDAP Server Attributes

attr_name '<attr_name>'

The name of the LDAP server field that corresponds to the attr_objective

Sample code

The following commands updates the mail attribute to ‘email’ :

kubectl exec -it deploy/st-server -c st-server -- bash -c "psql -Upostgres securetrack -h stolon-proxy -p 5432 -c \"update ldap_attr set attr_name = 'mail' where vendor='Active Directory' and attr_objective='mailAttributeName';\""

kubectl delete pod -l app=st-server