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
Diff Revision 1 Diff Revision 3
[20] 21 lines
[+20]
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
#
26
#
27
# The client will look for the following value to 
27
# The client will use the following value
28
# to find section of the JAAS configuration 
28
# as the section of the JAAS configuration
29
# to use to authenticate with Zookeeper Server.
29
# to use to authenticate with Zookeeper servers.
30
#org.apache.zookeeper.client.SaslClient.loginContextName=Client
30
#sasl.clientconfig=Client
src/java/main/org/apache/zookeeper/ClientCnxn.java
Diff Revision 1 Diff Revision 3
 
src/java/main/org/apache/zookeeper/Login.java
Diff Revision 1 Diff Revision 3
 
src/java/main/org/apache/zookeeper/client/ZooKeeperSaslClient.java
Diff Revision 1 Diff Revision 3
 
src/java/test/org/apache/zookeeper/test/SaslAuthMissingClientConfigTest.java
Diff Revision 1 Diff Revision 3
 
  1. conf/zoo_sample.cfg: Loading...
  2. src/java/main/org/apache/zookeeper/ClientCnxn.java: Loading...
  3. src/java/main/org/apache/zookeeper/Login.java: Loading...
  4. src/java/main/org/apache/zookeeper/client/ZooKeeperSaslClient.java: Loading...
  5. src/java/test/org/apache/zookeeper/test/SaslAuthMissingClientConfigTest.java: Loading...