Note: This example is for C users that are not planning on using the LSP plugin. Creating authentication and authorization logic is much easier when using Lua. You can also take advantage of the JSON based user data management. Navigate to ba.create.jsonuser() and click the Show JSON authenticator example. The Lua example simulates the same authentication and authorization logic as this C code example.
This is an advanced example that sets up users and roles. The Barracuda Authentication and Authorization classes make it possible to design advanced security models, although you may not require the "roles" concept in your system. Please refer to the security options listed in the authentication and authorization document.
The documentation for the security example is integrated with the example code. You can either read the introduction offline or when running the example program.