NWSetAuditingIdentity

Links the current thread group to a workstation address and a user name

Local Servers:blocking
Remote Servers:N/A
NetWare Server:4.x, 5.x, 6.x
Platform:NLM
Service:Server-Based Auditing

Syntax

   #include <nlm\nwtypes.h>  
   #include <nwaudnlm.h>  
    
   int  NWSetAuditingIdentity (  
      LONG    addressType,  
      BYTE   *networkAddress,  
      char   *identityName); 
   
   

Parameters

addressType
(IN) One of the following currently supported address types: ASCII_STRING_NET_ADDRESS_TYPE 0x00 (string) ETHERNET_NET_ADDRESS_TYPE 0x00 xxxxxxxx:xxxxxxxxxx
networkAddress
(IN) Points to a buffer that contains the network address of an auditing identity. If this pointer is NULL, the auditing identity for the current thread group is cleared.
identityName
(IN) Points to a buffer that contains the name of an auditing identity (up to 255 characters long). If this pointer is NULL, the auditing identity for the current thread group is cleared.

Return Values

Decimal

Hex

Constant

0

(0x00)

Successful

150

(0x96)

ERR_SERVER_OUT_OF_MEMORY

151

(0x97)

ERR_AUDITING_NOT_ENABLED

168

(0xA8)

ERR_AUDITING_NO_RIGHTS

Remarks

Te NWSetAuditingIdentitys function links the current thread group to a workstation address and a user name. The F2 audit specification for security auditing requires that the audit trail events identify the user name and the workstation address of the event initiator. NLM developers can use this function to ensure F2 auditing compliance. The auditing identity is tracked on a thread group basis; therefore, all threads in a thread group are audited as the single identity set by this function.

See Also

NWGetAuditingIdentity