On This Page
Configure LDAP Vendor Attributes for SecureTrack
To update the name of an LDAP server field for a new or existing LDAP server
-
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>';\""
-
Restart the Tomcat server:
kubectl delete pod -l app=st-server
Supported arguments
|
Argument |
Description |
|---|---|
|
|
Command to update the specified attribute name |
|
|
The name of the vendor should always be Active Directory. |
|
|
The specific attribute in the SecureTrack database from the LDAP Server Attributes |
|
|
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