Commit 27f83774 authored by 's avatar

fix mapitutor


git-svn-id: file:///home/svn/mapi/trunk@1063 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 3a7d6e84
......@@ -120,7 +120,7 @@ PAYLOAD
.IP "\fBCommon to IP, TCP, UDP & ICMP\fP"
CHECKSUM
.IP "\fBIP protocol fields\fP"
SRC_IP, DST_IP, TTL, TOS, ID, IP_PROTO, FIELD_VERSION, IHL, OPTIONS, FRAGMENT_OFFSET, PACKET_LENGTH
SRC_IP, DST_IP, TTL, TOS, ID, IP_PROTO, VERSION, IHL, OPTIONS, FRAGMENT_OFFSET, PACKET_LENGTH
.IP "\fBCommon to TCP & UDP\fP"
SRC_PORT, DST_PORT
.IP "\fBTCP protocol fields\fP"
......
No preview for this file type
......@@ -968,28 +968,28 @@ If it does not, an error is returned to the user.
For this example, the DiMAPI support is needed, so MAPI should be configured with the
\textit{--enable-dimapi} configuration option.
As an administrator who wants to deploy DiMAPI and its AAI, you should follow the
following steps:
1) Perform
./configure --enable-dimapi --enable-anonflib --enable-extraflib
\begin{enumerate}
\item Perform {\tt ./configure --enable-dimapi --enable-anonflib --enable-extraflib}
The AAI is available only in DiMAPI, by definition.
anonflib and extraflib are needed for the anonymization
and TCP stream reconstruction functions, respectively.
2) Edit the file config.h, found in the root directory
\item Edit the file {\tt config.h}, found in the root directory
of the tarball/distribution, and add the following line
#define WITH_AUTHENTICATION
{\tt \#define WITH\_AUTHENTICATION}
3) Perform make && make install, as usual.
\item Perform {\tt make \&\& make install}, as usual.
4) cd src/vod && make
\item {\tt cd src/vod \&\& make}
5) Edit the file vod.conf, and you'll see the following sections:
\item Edit the file {\tt vod.conf}, and you'll see the following sections:
\begin{verbatim}
[ca]
ip=your_CA_IP
port=your_CA_port_no
......@@ -998,28 +998,34 @@ port=your_CA_port_no
# RELATIVE PATHS
nicfile=example1.conf
policiesfile=example2.conf
\end{verbatim}
Edit them so they reflect your desired configuration.
6) Create the file 'example1.conf' in the directory you specified.
\item Create the file 'example1.conf' in the directory you specified.
It should contain sections and entries as seen below:
\begin{verbatim}
[interfaces]
VO_NAME=ALLOWED_INTERFACE_1:ALLOWED_INTERFACE_2
\end{verbatim}
7) Create the file 'example2.conf' in the directory you specified above.
\item Create the file {\tt 'example2.conf'} in the directory you specified above.
In a similar fashion, its entries are formed as shown below:
\begin{verbatim}
[VO_NAME]
ANONYMIZE=IP:SRC_IP:ZERO
# REST OF ANONYMIZE FUNCTIONS. These will be applied to flows that
# 'belong' to someone that authenticates under VO "VO_NAME".
\end{verbatim}
8) cd CAd && make all
9) Use the ./adduser script to add users in the CA database.
10) start ./cad <portnumber>
11) cd .. && ./vod
12) Use mapi_authenticate() in your tests/programs. :-)
\item {\tt cd CAd \&\& make all}
\item Use the ./adduser script to add users in the CA database.
\item {\tt start ./cad <portnumber>}
\item {\tt cd .. \&\& ./vod}
\item Use {\tt mapi\_authenticate()} in your tests/programs.
\end{enumerate}
\subsection{Using DiMAPI}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment