Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetbinacc()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETBINACC()
 Determines the bindery security access level
------------------------------------------------------------------------------
 Syntax

     NNETBINACC([<cServer>|<nConId>]) --> nRights

     Netware: 2.2 and 3.11

 Arguments

     <cServer>  Designates the name of the file server for which the
     bindery security access level is determined.  Your workstation must be
     attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETBINACC() returns the bindery security access level of the currently
     logged in user.  nRights can be a numeric value between 0 and 3.

 Description

     NOVELL NET BINDERY ACCESS LEVEL
     All bindery objects and their properties have security levels for  read
     and write access.  For example, the security code can be defined when a
     new bindery object is created with the NNETCRTOBJ() function.  The
     access to an object or a property is possible only if the user's access
     right is equivalent to or higher than the security level defined for the
     operation.  With NNETBINACC(), you can determine the security access
     level.  The function returns a numeric value between 0 and 3.

     Table 18.1:  Security Access Levels
     ------------------------------------------------------------------------
     Value   Definition
     ------------------------------------------------------------------------
     0       User has not logged in to the file server
     1       User has logged in to the file server
     2       User has logged in to the file server with password
     3       User has logged in to the file server as supervisor
     ------------------------------------------------------------------------

     With the parameters <cServer> or <nConId>, the security access level can
     be determined for any attached file server.  The connection ID of a file
     server can be determined with the functions NNETATTACH() or NNETLOGIN().

 Example

     Determine the bindery security access level; if the return value is 3
     (supervisor), delete a user:

     #include "ctnnet.ch"

     IF NNETBINACC()=3
     NNETDELOBJ('GUEST',OBJ_USER)
     ENDIF

See Also: NNETCRTOBJ() NNETCRTPRP() NNETDELOBJ()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson