Nametrans Example - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

}
/* No match, have it ask them again */
log_error(LOG_SECURITY, "hardcoded-auth", sn, rq,
return REQ_NOACTION;
}

NameTrans Example

The
ntrans.c
subdirectory of the server root directory contains source code for two example
NameTrans
explicit_pathinfo
This example allows the use of explicit extra path information in a URL.
https_redirect
This example redirects the URL if the client is a particular version of Netscape
Navigator.
This section discusses the first example. Look at the source code in
the second example.
NOTE
/* Verify password */
if(strcmp(pw, user_set[x].pw)) {
log_error(LOG_SECURITY, "hardcoded-auth", sn, rq,
"user %s entered wrong password", user);
/* This will cause the enforcement function to ask */
/* user again */
return REQ_NOACTION;
}
/* If we return REQ_PROCEED, the username will be accepted */
return REQ_PROCEED;
"unknown user %s", user);
file in the
nsapi/examples/
functions:
The main thing that a
the logical URL in
However, the example discussed here,
not translate the URL into a physical pathname, it changes the
value of the requested URL. See the second example,
https_redirect
function that converts the value of
to a physical pathname.
or
plugins/nsapi/examples
function usually does is to convert
NameTrans
in
ppath
rq->vars
, in
for an example of a
ntrans.c
ppath
Chapter 6
NameTrans Example
ntrans.c
to a physical pathname.
explicit_pathinfo
NameTrans
in
from a URL
rq->vars
Examples of Custom SAFs
for
, does
215

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents