Skip to content

dhoard/gemfire-security-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gemfire-security-manager

Simple hard coded Gemfire SecurityManager implementation

username = admin password = xyz1234


  1. Clone the project and build it using mvn
mvn clean package
  1. Create a directory for the jar
mkdir /opt/security-manager
  1. Copy target/gemfire-security-manager-0.1.0-SNAPSHOT.jar to the created directory
cp target/gemfire-security-manager-0.1.0-SNAPSHOT.jar /opt/security-manager
  1. Change to the gemfire installation root
cd /opt/pivotal-gemfire-9.10.5
  1. Add gemfire bin to path
export PATH=$PATH:/opt/pivotal-gemfire-9.10.5/bin
  1. Launch the gfsh shell
gfsh
  1. Start the locator
gfsh> start locator --name=locator1 \
    --J=-Dgemfire.security-manager=com.github.dhoard.SimpleSecurityManager \
    --classpath=/opt/security-manager/gemfire-security-manager-0.1.0-SNAPSHOT.jar
  1. Start the server
gfsh> start server --name=server1 \
    --locators=gemfire.address.cx[10334] --server-port=40411 \
    --J=-Dgemfire.security-manager=com.github.dhoard.SimpleSecurityManager \
    --classpath=/opt/security-manager/gemfire-security-manager-0.1.0-SNAPSHOT.jar \
    --user=admin --password=xyz1234
  1. Connect
gfsh> connect --locator=gemfire.address.cx[10334] \
    --user=admin --password=xyz1234
  1. List members
gfsh> list members

Example output...

Member Count : 2
  
  Name   | Id
-------- | ------------------------------------------------------------------
locator1 | 192.168.100.173(locator1:9670:locator)<ec><v0>:41000 [Coordinator]
server1  | 192.168.100.173(server1:10139)<v1>:41001
  1. Query the region to check for data
gfsh> query --query="select * from /check"  

Example output...

Result : true
Limit  : 100
Rows   : 1

Result
-----------------------------------------------
test-value-9564bbcd-11d3-450a-9b22-6b18b40ac7a9

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages