Table of Contents

Client authentication (Bind)

Each SMPP-client has to send Bind command to start working with SMPP-servers. Bind stands for authentication according to the SMPP protocol. There must be an event-handler attached to evClientBind event to enable to bind-request processing by SMPP-server. The event is raised each time SMPP-server receives Bind command:

_server.evClientBind += (sender, client, bindPdu) =>
{
    //process Bind PDU
};

By using an empty event-handler as in the example above you allow any SMPP-client authenticate on your server. If there is no event-handler attached, the authentication will not succeed. Consequently, the SMPP-server will return response BindResp to the SMPP-client containing ESME_RBINDFAIL status.

It is common to implement various authentication rules, login checks and other security checks in the event-handler subscribed to evClientBind.