|Getting Started with Pivotal GemFire / QuickStart Examples|
You establish trust by verifying credentials when one process connects to another.
The security framework establishes trust between members, and authorizes client cache operations based on that trust. New members connect to the locator in a peer-to-peer topology, providing credentials to the locators. Clients connect to cache servers, providing credentials to the servers. One system connects to another in a multi-site system, using mutual authentication.
The example shows a very simple client/server configuration that uses security. The server starts on a port with security properties for client requests. The client does puts and gets on the server with valid PUT credentials. The client uses the valid LDAP username and password.
In one session, start the server:
$ java quickstart.SecurityServer ldap ou=ldapserver,dc=mytown,dc=mycompany,dc=comReplace the LDAP server location information with your LDAP server information.
In the other session start the client:
$ java quickstart.SecurityClient my_user my_passwordReplace the username and password with a valid LDAP username and password.
Program and cache configuration files for the client and the server:
|SecurityServer.xml||Configures a cache to serve caching clients. The example region also is configured with a loader.|
|SecurityClient.xml||Configures a region as a client region in a Security cache.|
|SecurityServer.java||A server that starts on a port with security properties for client requests.|
|SecurityClient.java||Does put and get on the server with valid PUT credentials. This client uses the valid LDAP username and password.|