1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
<HTML><HEAD>
<TITLE>Tcl API Reference -- ns_perm</TITLE>
<LINK rel=Previous href="tapi-c93.htm">
<LINK rel=ToC href="toc.htm">
<LINK rel=Index href="master.htm">
<LINK rel=Next href="tapi-c95.htm">
</HEAD><BODY BGCOLOR="#ffffff"><A NAME="topofpage"></A>
<TABLE WIDTH=100%>
<TR>
<TD ALIGN=LEFT>
<A NAME="topofpage"></A> <IMG SRC="as-c-sm.gif">
</TD>
<TD ALIGN=RIGHT>
<A href="tapi-c93.htm"><IMG BORDER="0" src=navbprev.gif alt="[ Previous ]"></A>
<A href=toc.htm> <IMG BORDER="0" src=navbhome.gif alt="[ Contents ]"></A>
<A href=master.htm> <IMG BORDER="0" src=navbhelp.gif alt="[ Index ]"></A>
<A href="tapi-c95.htm"> <IMG BORDER="0" src=navbnext.gif alt="[ Next ]"></A>
<A name="7983"> </A>
</TD>
</TR>
</TABLE>
<a name="79412">
</a><h3>ns_perm</h3>
<a name="79413">
</a><h4>Overview</h4>
<p><a name="79414">
</a>Add users, groups, and permissions</p>
<a name="79415">
</a><h4>Syntax</h4>
<p><a name="79416">
</a><b>ns_perm adduser </b><i>name encpass userfield</i> ?-allow | -deny <i>host</i> ...?</p>
<p><a name="231042">
</a><b>ns_perm addgroup</b> <i>name user</i> ?<i>user</i> ...?</p>
<p><a name="231043">
</a><b>ns_perm allowuser</b> ?-noinherit? <i>method url user</i></p>
<p><a name="231044">
</a><b>ns_perm denyuser</b> ?-noinherit? <i>method url user</i></p>
<p><a name="231045">
</a><b>ns_perm allowgroup</b> ?-noinherit? <i>method url group</i></p>
<p><a name="231046">
</a><b>ns_perm denygroup</b> ?-noinherit? <i>method url group</i></p>
<p><a name="296065">
</a><b>ns_perm</b> <b>checkpass</b> <i>user passwd</i></p>
<p><a name="296066">
</a><b>ns_perm</b> <b>setpass</b> <i>user encpass</i></p>
<a name="79431">
</a><h4>Description</h4>
<p><a name="295201">
</a><b>Note:</b> To use this function after server startup, the SkipLocks parameter (see <a href="con-ch3.htm#125748">page 69</a> in the <i>AOLserver Administrator's Guide</i>) must be set to On.</p>
<p><a name="79432">
</a><b>ns_perm adduser </b>adds the user with the specified <i>name</i> and the encrypted password (<i>encpass</i>) and the specified user text (<i>userfield</i>) into the users database. </p>
<p><a name="231089">
</a>If -allow and hostnames are specified, the user will be allowed on the specified hostnames. If -deny and hostnames are specified, the user will be denied on the specified hostnames. The hostname must be specified as ipaddress/netmask or dnshostname. For example: 128.2.142.0/255.255.255.0 or www.microsoft.com or .microsoft.com.</p>
<p><a name="231090">
</a><b>ns_perm addgroup</b> creates a new group with the specified <i>name</i> that includes the <i>user</i>s listed after the name.</p>
<p><a name="231091">
</a><b>ns_perm allowuser</b> allows the specified <i>user</i> access to the specified <i>method</i> and <i>URL</i> combination. If -noinherit is specified, only access to the exact URL is allowed; otherwise, URLs under that URL are allowed as well.</p>
<p><a name="231094">
</a><b>ns_perm denyuser</b> denies the specified <i>user</i> access to the specified <i>method</i> and <i>URL</i> combination. If -noinherit is specified, only access to the exact URL is denied; otherwise, URLs under that URL are denied as well.</p>
<p><a name="231107">
</a><b>ns_perm allowgroup</b> allows the specified <i>group</i> access to the specified <i>method</i> and <i>URL</i> combination. If -noinherit is specified, only access to the exact URL is allowed; otherwise, URLs under that URL are allowed as well.</p>
<p><a name="231108">
</a><b>ns_perm denygroup</b> denies the specified <i>group</i> access to the specified <i>method</i> and <i>URL</i> combination. If -noinherit is specified, only access to the exact URL is denied; otherwise, URLs under that URL are denied as well.</p>
<p><a name="296270">
</a><b>ns_perm checkpass</b> checks that the specified plain-text password is correct for the specified user. A Tcl error is thrown if it does not match.</p>
<p><a name="296271">
</a><b>ns_perm setpass</b> updates the specified user's password to the encrypted password <i>encpass</i>. The password should be encrypted using <b>ns_encrypt</b>.</p>
<TABLE BORDER="2" CELLPADDING="1" width="100%">
<TR><TD COLSPAN=3><P ALIGN=Center>
<IMG SRC="bluebult.gif">
<A HREF="#topofpage">
<FONT SIZE=-1>Top of Page</FONT></A>
<IMG SRC="bluebult.gif">
</TD></TR>
<TR><TD COLSPAN=3><P ALIGN=Center>
<A href="tapi-c93.htm">
<IMG BORDER="0" src=navbprev.gif alt="[ Previous ]"></A>
<A href=toc.htm>
<IMG BORDER="0" src=navbhome.gif alt="[ Contents ]"></A>
<A href=master.htm>
<IMG BORDER="0" src=navbhelp.gif alt="[ Index ]"></A>
<A href="tapi-c95.htm">
<IMG BORDER="0" src=navbnext.gif alt="[ Next ]"></A>
<BR align=center>
<FONT size=-1>Copyright © 1998-99 America Online,
Inc.</FONT>
</TD></TR></TABLE></BODY></HTML>
|