ACCSECRD packet

The ACCSECRD (Access Security Reply Data) packet is sent by the server as part of the authentication process, in response to an ACCSEC request. It contains information about encryption and security, and should not be modified, except by advanced users.


Properties

Valid values for SECMEC are:


When this packet is received, the name of the database user is not yet known, therefore filters will not have access to it for this type of packet.

Example

If we wanted to make sure that a connection does change its password, we could make sure that USRIDNWPWD is not in the list with:

log.debug("Security mechanisms that the server accepts: " + context.packet.SECMECstring);

context.packet.removeSECMEC(5);

However, if the server responded with only that one code, we cannot leave the list empty, so we'll also make sure the list contains USRIDPWD:

context.packet.removeSECMEC(5);

context.packet.addSECMEC(3);