NWDSLoginEx

Performs all authentication operations needed to establish a client’s connection to the network and to the network’s authentication service. Supports international and extended characters in passwords.

NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98, Windows 2000, Windows XP
Library:Cross-Platform NDS (NET*.*)
Service:NDS

Syntax

C

  #include <nwnet.h> 
  or 
  #include <nwdsasa.h> 
   
  N_EXTERN_LIBRARY (NWDSCCODE)  NWDSLoginEx  ( 
     NWDSContextHandle   context,  
     pnstr8              objectName,  
     nuint32             pwdFormat,
     nptr                pwd); 
  

Pascal

  uses netwin32 
   
  Function NWDSLoginEx 
    (context : NWDSContextHandle; 
     objectName : pnstr8; 
     pwdFormat : nuint32; 
     pwd : nptr 
  ) : NWDSCCODE;
  

Parameters

context

(IN) Specifies the NDS context for the request.

objectName

(IN) Points to the name of the object logging into the network.

pwdFormat

(IN) Specifies the format of the password data. Select from the following:

  • PWD_UNICODE_STRING
  • PWD_UTF8_STRING
  • PWD_RAW_C_STRING
pwd

(IN) Points to the client’s password.

Return Values

0x0000 0000

SUCCESSFUL

nonzero value

Nonzero values indicate errors. See NDS Return Values.

Remarks

NWDSLogin caches authentication information locally to be used by other functions and in background authentication to additional services.

The password parameter points to the client’s current password in clear text. If there is no password for the client, its value should point to a zero-length string ("").

If an application has a local copy of any password value, the value should be erased as soon as possible to prevent compromising the security of the password.

Until an authenticated connection is established, the client can access only eDirectory information classified as public.

NOTE:The PWD_RAW_C_STRING password format allows any arbitrary NULL-terminiated data to be used as a password. Passwords specified with this format are not interoperable with unicode and UTF8 passwords.

NCP Calls

See Also

NWDSAuthenticateConn, NWDSAuthenticateConnEx, NWDSLogout