<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Ns_requestauthorize</id>
	<title>Ns requestauthorize - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Ns_requestauthorize"/>
	<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_requestauthorize&amp;action=history"/>
	<updated>2026-04-25T16:21:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_requestauthorize&amp;diff=2877&amp;oldid=prev</id>
		<title>WikiSysop: imported from WiKit id 631</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_requestauthorize&amp;diff=2877&amp;oldid=prev"/>
		<updated>2005-04-21T15:25:50Z</updated>

		<summary type="html">&lt;p&gt;imported from WiKit id 631&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Man page: http://aolserver.com/docs/tcl/ns_requestauthorize.html&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NAME'''&lt;br /&gt;
&lt;br /&gt;
: ns_requestauthorize - perform authorization check&lt;br /&gt;
&lt;br /&gt;
'''SYNOPSIS'''&lt;br /&gt;
&lt;br /&gt;
: '''ns_requestauthorize''' ''method url authuser authpasswd ?ipaddr?''&lt;br /&gt;
&lt;br /&gt;
'''DESCRIPTION'''&lt;br /&gt;
&lt;br /&gt;
: Ask the server to check permissions using the authProc provided by the [[nsperm]] module.  This function does the same permission check that the AOLserver does before serving a URL if the [[nsperm]] module is loaded.&lt;br /&gt;
&lt;br /&gt;
: The algorithm is as follows:&lt;br /&gt;
&lt;br /&gt;
   1. If the authuser is &amp;quot;nsadmin&amp;quot;, the password is correct, and the IP address of the client is allowed nsadmin access, then access is authorized. &lt;br /&gt;
&lt;br /&gt;
   2. Find the relevant permission record. If an exact match for the method and URL combination is not found, the end of the URL is pared down until a match is found. For example, if there is no match for &amp;quot;/products/cereals/raisin_bran.html,&amp;quot; then the server looks for a permission record for the URL &amp;quot;/products/cereals.&amp;quot; If that permission record is specified as &amp;quot;Exact URL match is NOT required,&amp;quot; then that permission record is used.&lt;br /&gt;
&lt;br /&gt;
By default, the server comes with a row that says GET on &amp;quot;/&amp;quot; is open to the world. If no relevant permission record is found, access is denied (forbidden).&lt;br /&gt;
&lt;br /&gt;
   1. If the authuser is in the &amp;quot;Allow Users&amp;quot; list, access is permitted. If the authuser is a member of a group in the &amp;quot;Allow Groups&amp;quot; list and not in the &amp;quot;Deny Users&amp;quot; list, access is permitted. &lt;br /&gt;
&lt;br /&gt;
   2. If the host is in the &amp;quot;Hosts to allow&amp;quot; list, access is permitted. If the host is in the &amp;quot;Hosts to deny&amp;quot; list, access is denied.&lt;br /&gt;
&lt;br /&gt;
   3. If the request does not come in with authorization data, access is denied. &lt;br /&gt;
&lt;br /&gt;
   4. The user and password are verified. If there is no password specified in the database, any password is accepted. &lt;br /&gt;
&lt;br /&gt;
   5. Otherwise, access is denied. Return Values: The following values can be returned by ns_requestauthorize.&lt;br /&gt;
&lt;br /&gt;
: This command returns one of the following values:&lt;br /&gt;
* '''OK''' - The user has permission to execute this URL and method.&lt;br /&gt;
* '''ERROR''' - There was an error performing the check.&lt;br /&gt;
* '''FORBIDDEN''' - There is no possible user/password/IP address combination that would give authorization.&lt;br /&gt;
* '''UNAUTHORIZED''' - The user does not have permission to execute this URL and method.&lt;br /&gt;
&lt;br /&gt;
'''SEE ALSO'''&lt;br /&gt;
&lt;br /&gt;
: [[ns_checkurl]], [[nsperm]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Category Documentation]] - [[Category Core Tcl API]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
</feed>