tfModifyAuthPassword

Jump to: navigation, search

Table of Contents >> SNMP Programmer's Reference


#include <trapi.h>


int tfModifyAuthPassword (
int flags,
ttCharPtr userName,
ttCharPtr password
);


Function Description

This function lets the user modify the authentication password. The user can call this function only prior to starting the agent to overwrite the default


Parameters

  • flags
    Not used.
  • password
    The new authentication password.
  • userName
    The user name to which the password belongs to.


Returns

  • TM_ENOERROR
    Success.
  • TM_PASSWORD_TOOLONG
    Password is longer than TM_SNMP_MAX_USER_AUTH_PSWD_LEN.
  • TM_PASSWORD_NOT_PRINTABLE
    Password contains unprintable characters.
  • TM_USERNAME_NOT_PRINTABLE
    userName contains unprintable characters.
  • TM_ALLOCATION_ERROR
    Failure to allocate memory for the agent global variables.
  • TM_RECORD_NOTFOUND
    There is no record of the userName in the SNMP Init table.


Table of Contents >> SNMP Programmer's Reference