NCache provides two levels of security; Admin and User Level. These are explained below:
Admin Level Security: On this level, you can control who can manage and configure NCache. User can give rights to other users/accounts who can make manage or make configuration changes on a cache acting as cache Admins. These changes include (create a cache, stop a cache, remove cache etc). Once you have enabled admin level security then only authorized users will be allowed to manage NCache clusters.
User Level Security: On this level the you can decide that who can connect to the cache on application level and do cache level operations using NCache API (cache.Add(), cache.Get() etc). After enabling user level security, all applications would need to provide security credentials when connecting to a cache.
Note: All cache Admins and Users are always authenticated based on LDAP Active Directory.
Admin Level Security: Admin level or Node level security can be enabled only by the Administrator of the Node. Administrators can enable/disable node level security on remote machines as well and add/remove NCache managers for that node. Admin level security configurations will be saved in security.ncconf. Following are the steps need to be followed to configure node level security using Security Configuration Wizard.
Once security is enabled, only cache admin who is logged on to the cache server box would be able to manage cache and all un-authorized user would not be able to manage cache anymore.
Administrators and NCache managers can configure user level security for a cache. Each cache will have its own user level security configurations independent of other caches and users. Cache user level security configurations will be saved in config.ncconf against each cache. NCache Manager provides a tab view for configuring user level security for all caches.
User can also pass security credentials to API from the application using the following code:
NCache.InitializeCache("cacheId", new Alachisoft.NCache.Web.Security.