The USERMOD sample for the TDP User Security exit (TDPUSEC) is TDU0004 in dbcpfx.SAMPLIB.
TDPUSEC is an exit routine that is invoked after a Teradata server security violation occurs. TDPUSEC supplies a list of information about the violator.
TDPUSEC runs as an extension of TDP, in system key and supervisor state. To use TDPUSEC, enable and modify it according to your local requirements.
For more information on using and customizing TDPUSEC, see Teradata Director Program Reference, B035-2416.