Required Behavior of SAFs for Each Directive
Chapter
4
Creating Custom SAFs
129
•
ObjectType SAFs
•
Service SAFs
•
Error SAFs
•
AddLog SAFs
Init SAFs
•
Purpose: Initialize at startup.
•
Called at server startup and restart.
•
rq
and
sn
are
NULL
.
•
Initialize any shared resources such as files and global variables.
•
Can register callback function with
daemon_atrestart()
to clean up.
•
On error, insert
error
parameter into
pb
describing the error and return
REQ_ABORTED
.
•
If successful, return
REQ_PROCEED
.
AuthTrans SAFs
•
Purpose: Verify any authorization information. Only basic authorization is
currently defined in the HTTP/1.0 specification.
•
Check for
Authorization
header in
rq->headers
which contains the
authorization type and uu-encoded user and password information. If header
was not sent return
REQ_NOACTION
.
•
If header exists, check authenticity of user and password.
•
If authentic, create
auth-type
, plus
auth-user
and/or
auth-group
parameter
in
rq->vars
to be used later by
PathCheck
SAFs.
•
Return
REQ_PROCEED
if the user was successfully authenticated,
REQ_NOACTION
otherwise.
Summary of Contents for ENTERPRISE SERVER 6.0
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 134: ...CGI to NSAPI Conversion 134 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 306: ...cinfo 306 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 312: ...Sample MIME Types File 312 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 324: ...Buffered Streams 324 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 332: ...332 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 340: ...340 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 346: ...346 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 352: ...352 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...