Review Board 1.7.22


ZOOKEEPER-1373: Hardcoded SASL login context name clashes with Hadoop security configuration override

Review Request #3631 - Created Jan. 25, 2012 and updated

Eugene Koontz
trunk
ZOOKEEPER-1373
Reviewers
zookeeper
zookeeper-git
ZOOKEEPER-1373: Hardcoded SASL login context name clashes with Hadoop security configuration override

Fix is to allow system property to designate the JAAS configuration section that the zookeeper client will use.
"ant test" java tests pass.
conf/zoo_sample.cfg
Revision aafb324 New Change
[20] 20 lines
[+20]
21
# The number of snapshots to retain in dataDir
21
# The number of snapshots to retain in dataDir
22
#autopurge.snapRetainCount=3
22
#autopurge.snapRetainCount=3
23
# Purge task interval in hours
23
# Purge task interval in hours
24
# Set to "0" to disable auto purge feature
24
# Set to "0" to disable auto purge feature
25
#autopurge.purgeInterval=1
25
#autopurge.purgeInterval=1

    
   
26
#

    
   
27
# The client will look for the following value to

    
   
28
# to find section of the JAAS configuration

    
   
29
# to use to authenticate with Zookeeper Server.

    
   
30
#org.apache.zookeeper.client.SaslClient.loginContextName=Client
src/java/main/org/apache/zookeeper/ClientCnxn.java
Revision 6c25e40 New Change
 
src/java/main/org/apache/zookeeper/client/ZooKeeperSaslClient.java
Revision 722538e New Change
 
src/java/test/org/apache/zookeeper/test/SaslAuthDesignatedClientTest.java
New File
 
src/java/test/org/apache/zookeeper/test/SaslAuthFailDesignatedClientTest.java
New File
 
  1. conf/zoo_sample.cfg: Loading...
  2. src/java/main/org/apache/zookeeper/ClientCnxn.java: Loading...
  3. src/java/main/org/apache/zookeeper/client/ZooKeeperSaslClient.java: Loading...
  4. src/java/test/org/apache/zookeeper/test/SaslAuthDesignatedClientTest.java: Loading...
  5. src/java/test/org/apache/zookeeper/test/SaslAuthFailDesignatedClientTest.java: Loading...