OSI/MHS Management Programming Manual
Examples
OSI/MHS Management Programming Manual—424824-001
C-30
Prerequisites
Prerequisites
This example requires a password database which consists of the following two SQL
tables:
A TACL macro file to create these two example SQL tables is included in the file
EXPSWTL1 on the OSI/MHS installation subvolume.
To compile this example, using both the C compiler and the SQL compiler, use
commands like the following:
c/in expswc1, out outfile/objectfile
sqlcomp/in objectfile, out outfile/catalog sqlcatalog
Overview of Tasks
This example uses both the MTA and the MS password server programmatic interfaces.
The tasks performed for each interface are described separately below.
This example does not implement any security features, such as checking the identity of
the requester.
MTA Password Server Functions
The example performs the following tasks using the MTA password server interface:
•
Opens $RECEIVE to read SPI requests from the MRP process.
•
Reads a SPI request and validates it.
MTPWTABL contains MTA password information. The information contained in
this table must be entered by some other application or by hand, and
includes the following:
local MTA and domain names
remote MTA and domain names
local passwords
remote passwords
MSPWTABL contains MS password information. The information contained in this
table is entered by this example password server process in response
to ADD APPL, ALTER APPL, or DELETE APPL commands, and
includes the following:
APPL names
passwords
O/R names
OSI addresses