AuthTrans

compared with
Current by Sudha.Bhat
on Mar 10, 2009 03:06.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View page history
|{{auth-type}} |Specifies the type of authorization to be used. The values can be {{basic}}, {{digest}}, or {{ssl}}. The default value is {{basic}}. |
|{{userdb}} |(Optional) Specifies the full path and file name of the database to be used for user verification. This parameter will be passed to the user function. |
|{{userfn}} |Name of the user custom function to verify authorization. This function must have been previously loaded with {{load-modules}}. It has the same interface as all of the SAFs, but it is called with the user name ({{user}}), password ({{pw}}), user database ({{userdb}}), and group database ({{groupdb}}), if supplied, in the {{pb}} parameter.This function checks the name and password using the database and returns {{REQ_NOACTION}} if they are not valid. It returns {{REQ_PROCEED}} if the name and password are valid. The {{basic-auth}} function will then add {{auth-type}}, {{auth-user}} ({{user}}), {{auth-db}} ({{userdb}}), and {{auth-password}} ({{pw}}, Windows only) to the {{rq->vars pblock}}. For more information on custom functions, Creating Custom Server Application Functions in [Sun Java System Web Server NSAPI Developer's Guide|http://docs.sun.com/doc/820-6606/abvcu?a=view]. Guide|NSAPI Developer's Guide#Creating Custom Server Application Functions]. |
|{{groupdb}} |(Optional) Specifies the full path and file name of the user database. This parameter will be passed to the group function. |
|{{groupfn}} |(Optional) Name of the group custom function that must have been previously loaded with {{load-modules}}. It has the same interface as all of the SAFs, but it is called with the user name ({{user}}), password ({{pw}}), user database ({{userdb}}), and group database ({{groupdb}}) in the {{pb}} parameter. This parameter also has access to the {{auth-type}}, {{auth-user}} ({{user}}), {{auth-db}} ({{userdb}}), and {{auth-password}} ({{pw}}, Windows only) parameters in the {{rq->vars pblock.}} The group function determines the group to which the user belongs using the group database, add it to {{rq->vars}} as {{auth-group}}, and return {{REQ_PROCEED}} if found. It returns {{REQ_NOACTION}} if the user’s group is not found. |

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact