Configuring Security for Cache
Security for cache can be configured on following ways:
Using NCache Manager
In NCache Manager, go to Security menu option and select Security Credentials.
Security Credentials dialog will open.
Provide the valid credentials for your active directory like name of Domain Controller, Port (optional), User Name and Password.
Verify the credentials using Verify Credentials button. It will prompt success or failure message in case of success or failed verification of credentials successfully.
Click OK if credentials are successfully verified.
Click the cache name for which you want to configure the security. Cache settings open in the right pane inside the NCache Manager.
Go to the Security tab in cache settings.
Expand the domain users under the Available Domain Users section.
Add required users to Selected Users section using ‘>’ button. These users will have access for cache operations.
Check Enable Security check box.
Important
You can disable management security by unchecking the Enable Security check box at any time.
- Right click on the cache name in Cache Explorer and select Apply Configuration option.
Using Windows PowerShell
Add-CacheSecurity
cmdlet enables the user to configure cache level security for the cache
The following command enables security for demoClusteredCache on server 20.200.21.95 and add the user james_tredwell.
Add-CacheSecurity demoClusteredCache -EnableSecurity -Server 20.200.21.95 -UserName james_tredwell -Password yourpassword -DomainController yourdomain.org
If you want to add more users, use the following command after step 1. The following command adds the user aaron_finch to the secured users list of demoClusteredCache.
Add-CacheSecurity demoClusteredCache -AddUser -NewUser aaron_finch -Server 20.200.21.95 -UserName administrator -Password yourpassword -DomainController yourdomain.org