[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
NNETCRTUSR()
Creates a new user
------------------------------------------------------------------------------
Syntax
NNETCRTUSR(<cName>,[<cPass>],[<cFullName>],[<lSuper>],
[<cServer>|<nConId>]) --> lSuccess
Netware: 2.2 and 3.11
Arguments
<cName> Designates the login name of the new user.
<cPass> Designates the password for <cName>.
<cFullName> Designates the full name for <cName>.
<lSuper> Designates whether the new user is granted supervisor
rights (.T.) or not (.F.). The default value (.F.) indicates that the
new user is not granted supervisor rights.
<cServer> Designates the name of the file server where the new user
is created. Your workstation must be attached to <cServer>.
<nConId> Designates the connection ID of your workstation on
<cServer>.
Returns
NNETCRTUSR() returns .T. if the user has been added successfully.
Description
NOVELL NET CREATE USER
NNETCRTUSR() allows you to create a new user and to define the basic
characteristics for the user. If NNETCRTUSR() is called only with the
parameter <cName>, a user of the type guest is created. The guest user
can log into the file server without a password. If <cPass> is passed,
the password is required to log into the file server. The password can
also be defined later with the NNETCPASS() function. With the argument
<cFullName>, the full name of the new user can be set. Supervisor
rights can be granted to the new user by passing the <lSuper> with
(.T.). The default value for <lSuper> (.F.) does not grant supervisor
rights. Additional rights can be assigned to the user by adding the
user to a group (NNETADDGRP()) or by explicitly setting trustee rights.
With the parameters <cServer> or <nConId>, a new user can be added on
any attached file server. The connection ID of a server can be
determined with NNETATTACH() or NNETLOGIN().
Supervisor rights are required to create a new user.
Note
. NNETCRTUSR() is a high level function based on the low level
functions of the bindery access. The CA-Clipper source code can be
found on the product disks.
Examples
. Create user PAUL with password 190366 and the full name PAUL
SMITH Give the new user supervisor rights:
IF NNETCRTUSR('PAUL','190366','Paul Smith',.T.)
? 'User created successfully!'
ELSE
? 'User could not be created!'
ENDIF
. Create a new user, and then set the password to HELLO:
IF NNETCRTUSR('TEST')
NNETCPASS('TEST',,'','HELLO')
ENDIF
See Also:
NNETADDGRP()
NNETCPASS()
NNETDELOBJ()
NNETTRUST()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson