nwerrors(3NCP) Netware Calls Library nwerrors(3NCP)
nwerrors - list of error codes returned by libncp calls
This is list of codes returned by functions in libncp. Error codes are split into several
When zero is returned, call was processed without problems.
These values are same as errno values and they are listed in errno(3). Return value is
libc error if it is in range 1-511.
RPC errors (obsolete)
These error codes are returned only by NWSM* group of functions. They are in range
libncp specific errors
These error codes are in range 0x8700-0x87FF and are used for reporting non-standard
problems in libncp.
These error codes are in range 0x8800-0x88FF and are used for reporting standard prob-
lems in libncp.
These error codes in range 0x8900-0x89FF are error codes returned by server when call-
ing NCP functions.
Error codes in range -1000 ... -256 are returned by NDS server system (-600 ... -799),
by local NDS system (-300 ... -399) and by other subsystems (other).
Range -255 ... -1 is reserved. If some function returns this value, it is bug (this is
probably forgotten libc return value (-1) or negative errno value)). Other ranges, not
mentioned in this document, are reserved for future expansion.
LIBNCP SPECIFIC ERRORS
~/.nwclient file has not mode 0600 or 0400 or
~/.nwclient file is readable or writeable by group or world
Requested information is larger than supplied buffer.
You have no connection to server (at this time, if ~/.nwclient is empty, this error
Reply returned by server fails in some consistency check (reply is shorter than
User name not specified (returned by ncp_find_conn_spec if user name was not
Invalid parameter (NULL, out of range...) was passed into some function.
Specified server was not found (see also 0x89FC:NWE_SERVER_UNKNOWN). This error is
returned, if ANY server was not found on the network (no response from SAP
Requested signature level is not compatible with server setting.
Unknown information type was requested from NWCCGetConnInfo.
Unspecified libncp error, ncp unavailable and so on.
You have not rights to specified (print) queue.
Your password has expired, this login was `grace' login.
Object is already in set.
Attempted function is not available on this version of NetWare.
Server was not found.
Operation attempted on invalid connection (NWClearConnection(3ncp), NWGetCon-
nInfo(3ncp), ...) or your own connection timed out (nds4linux).
Unspecified server error (bad parameters passed, LinWare/Mars/Windows on other end
of wire, bad password, ...).
Not enough memory (see also errno(3):ENOMEM).
Invalid key value DCK_* passed to NWDSGetContext or NWDSSetContext.
Invalid NWDSContextHandle was passed to some of NWDS* functions.
Information is larger than passed buffer.
Requested information does not exist in buffer. It can be programmer's error or
unexpected reply from server.
Operation attempted with buffer prepared for something else or buffer cannot con-
tain requested information.
Object name fails on some check (multiple dots, two equals or plus signs, backslash
at the end of name...)
If object has multiple naming attributes, you must specify all with or without
types, you must not mix it.
If object has multiple naming attributes, you must specify all without or with
types, you must not mix it.
Something is wrong with object name (odd length returned by server, string returned
from server is not zero terminated, object name is absolute, but has dot(s) at the
Something is wrong with object name (multiple equal signs without intervening dot
or plus sign).
Something is wrong with object name (there is more dots at the end of object name
than levels in current context name).
You are trying to apply default naming rule on typeless name with multiple naming
Country name must not exceed two characters.
Something went wrong.
Application passed invalid iteration handle to one of NWDS* functions. It is bug
Application passed empty request buffer to one of NWDS* functions. It is bug in
An error occured in NWDSCreateContext. You should use NWDSCreateContextHandle,
which has better error reporting.
Unexpected reply was returned from server.
NULL pointer was passed to some function. Only (some) output parameters can be
You have not any connection for this context handle. At this moment (18.104.22.168),
call NWDSAddConnection(NWDSContextHandle, NWCONN_HANDLE).
If object has multiple naming attributes, they must not have same name.
You are trying to authenticate connection before you logged in. You must first do
NWDSLogin before call to NWDSAuthenticate.
Invalid characters in password.
Transport not supported / referral addresses does not include any supported proto-
Invalid Syntax ID was passed to NWDSGet/NWDSPut/NWDSCompute function.
Multiple dots or some other problem (currently only in RemoveAllTypes).
Tables required for local<->unicode translation were not found (system defaults to
Object name is too long.
NWDSMoveObject cannot be used to rename object. Use either NWDSModifyRDN or
NWDSModifyDN function calls.
Specified object does not exist.
None of requested attributes exists.
Server did not understand your request. Either your program did not fill up request
buffer properly or server DS is too old.
Replica cannot be removed (or type cannot be changed) because of it is last master
replica of an partition.
Server time is not synchronized with rest of tree.
Invalid password or authentication time window exceeded.
Server does not support this API version - it is too old. One of examples is NWD-
SAddObject if server does not support fragmented DSV_ENTRY_ADD, but you asked for
it. Another example is NWDSListPartitionsExtInfo.
Server does not support this API version - this API call is no longer supported.
One of examples is NWDSRemovePartition if server runs NDS8.
This manual page is incomplete and some error descriptions are confusing.
libncp (>= 22.214.171.124) 04/13/1999 nwerrors(3NCP)