Ns_AuthorizeRequest
Overview
Check access of a method and URL
Syntax
int Ns_AuthorizeRequest(
char *hServer,
char *method,
char *URL,
char *authuser,
char *authpasswd,
char *ipaddr
);
Description
The Ns_AuthorizeRequest function is used to call the function registered by Ns_SetRequestAuthorizeProc to authorize a user's access to the given method and URL. Possible return values are:
NS_OK
|
The user's access is authorized.
|
NS_UNAUTHORIZED
|
Access is not public for this method or URL and either the user and password were not verified or the user does not have permission.
|
NS_FORBIDDEN
|
There is no possible user/password combination that would give authorization.
|
NS_ERROR
|
The authentication function could not perform the permission check.
|