Alachisoft NCache 4.1 - Online Documentation

Performing Cache Operations in Secured Environment

 
If security is enabled, only authorized user can perform cache operations, provided those users exist under given domain in LDAP. Login credentials are required to belong to any WINDOWS Server, hosting the user login and running Active Directory services. User can give credential information in overloaded API's or in client.ncconf file. Now security parameters travel in the encrypted form. This feature can be used with the following namespace:
 
using Alachisoft.NCache.Web.Caching;
 
Providing credentials in API
 
For API'sInitializeCache, StartCache and StopCache, there are overloads that accept User ID and Password as parameters. They are then sent to the server for authentication and authorization.
 
// Initialize the cache.
NCache.InitializeCache("myReplicatedCache", new Alachisoft.NCache.Web.Security.SecurityParams ("john", "john123" ), new Alachisoft.NCache.Web.Security.SecurityParams ("sam", "sam123" ));
 
Note: Alachisoft.NCache.Web.Security.SecurityParams is an information holder class for User IDs and Passwords. The first SecurityParam is for primaryUserCredentials and second is for secondaryUserCredentials. InitializeCache
call either returns a cache instance after which user can perform cache operations on it or it throws the following exception.
 
Alachisoft.NCache.Runtime.Exceptions.SecurityException.
 
 
See Also
 
Copyright © 2005-2012 Alachisoft. All rights reserved.