#include <nwnet.h> or #include <nwaudit.h>NWCCODE N_API NWDSLoginAsContainerAuditor (NWCONN_HANDLE conn, nuint32 containerID, nuint8 N_FAR
key, nuint8 N_FAR
password);
Calling NWDSLoginAsContainerAuditor is the first step to any auditing function.
auditKey is initialized and setup for future auditing API calls; auditKey must be allocated by the program. Only a level one password is authenticated with NWDSLoginAsContainerAuditor.
If auditing has never been initialized on the Container, call NWDSLoginAsContainerAuditor first; AUDITING_NOT_ENABLED will be returned. Then, call NWEnableAuditingOnContainer.
If the user is not SUPERVISOR equivalent, NWDSEnableAuditingOnContainer will fail the first time it is called.
After calling NWDSEnableAuditingOnContainer successfully, the user must log in again by calling NWDSLoginAsContainerAuditor to have access to auditing.
Once auditing has been enabled, the user does not have to be SUPERVISOR equivalent, but must know the auditor password.
Auditing (Directory Support)