GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • V14 Documentation
  • Privacy Statement
  • License Agreement
  • Contact Us

This view

  • Original page
  • New address

GeezerVison is showing docs.voltdb.com — 12.9. Integrating Kerberos Security with VoltDB

  • Volt Active Data
  • Developer Hub
  • Books
    • VoltDB Tutorial
    • Using VoltDB
    • VoltDB Guide to Performance and Customization
    • VoltDB Administrator's Guide
    • Volt Kubernetes Administrator's Guide
    • VoltDB Quick Reference
  • Current docs ▶
  • VoltDB V14
    • VoltDB V16
    • VoltDB V15.3 LTS
    • VoltDB V14.3 LTS
    • VoltDB V13.3 LTS
    • VoltDB V12.3 LTS
    • VoltDB V11.4
    • VoltDB V10.2
    • VoltDB V9.3
12.9. Integrating Kerberos Security with VoltDB

Using VoltDB

  • About This Book
  • 1. Overview▶
    • 1.1. What is VoltDB?
    • 1.2. Who Should Use VoltDB
    • 1.3. How VoltDB Works
      • 1.3.1. Partitioning
      • 1.3.2. Serialized (Single-Threaded) Processing
      • 1.3.3. Partitioned vs. Replicated Tables
      • 1.3.4. Ease of Scaling to Meet Application Needs
    • 1.4. Working with VoltDB Effectively
  • 2. Installing VoltDB▶
    • 2.1. Operating System and Software Requirements
    • 2.2. Installing VoltDB
      • 2.2.1. Upgrading From Older Versions
    • 2.3. Setting Up Your Environment
    • 2.4. What is Included in the VoltDB Distribution
  • 3. Starting the Database▶
    • 3.1. Initializing and Starting a VoltDB Database
    • 3.2. Initializing and Starting a VoltDB Database on a Cluster
    • 3.3. Stopping a VoltDB Database
    • 3.4. Saving the Data
    • 3.5. Restarting a VoltDB Database
    • 3.6. Updating Nodes on the Cluster
    • 3.7. Defining the Cluster Configuration
      • 3.7.1. Determining How Many Sites per Host
      • 3.7.2. Configuring Paths for Runtime Features
      • 3.7.3. Verifying your Hardware Configuration
  • 4. Designing the Database Schema▶
    • 4.1. How to Enter DDL Statements
    • 4.2. Creating Tables and Primary Keys
    • 4.3. Analyzing Data Volume and Workload
    • 4.4. Partitioning Database Tables
      • 4.4.1. Choosing a Column on which to Partition Table Rows
      • 4.4.2. Specifying Partitioned Tables
      • 4.4.3. Design Rules for Partitioning Tables
    • 4.5. Replicating Database Tables
      • 4.5.1. Choosing Replicated Tables
      • 4.5.2. Specifying Replicated Tables
    • 4.6. Modifying the Schema
      • 4.6.1. Effects of Schema Changes on Data and Clients
      • 4.6.2. Viewing the Schema
      • 4.6.3. Modifying Tables
      • 4.6.4. Adding and Dropping Indexes
      • 4.6.5. Modifying Partitioning for Tables and Stored Procedures
  • 5. Designing Stored Procedures to Access the Database▶
    • 5.1. How Stored Procedures Work
      • 5.1.1. VoltDB Stored Procedures are Transactional
      • 5.1.2. VoltDB Stored Procedures are Deterministic
    • 5.2. The Anatomy of a VoltDB Stored Procedure
      • 5.2.1. The Structure of the Stored Procedure
      • 5.2.2. Passing Arguments to a Stored Procedure
      • 5.2.3. Creating and Executing SQL Queries in Stored Procedures
      • 5.2.4. Interpreting the Results of SQL Queries
      • 5.2.5. Returning Results from a Stored Procedure
      • 5.2.6. Rolling Back a Transaction
    • 5.3. Installing Stored Procedures into the Database
      • 5.3.1. Compiling, Packaging, and Loading Stored Procedures
      • 5.3.2. Declaring Stored Procedures in the Schema
      • 5.3.3. Partitioning Stored Procedures in the Schema
  • 6. Designing VoltDB Client Applications▶
    • 6.1. Connecting to the VoltDB Database
      • 6.1.1. How Connections To The Cluster Work
      • 6.1.2. Specifying Multiple Servers
    • 6.2. Invoking Stored Procedures
    • 6.3. Invoking Stored Procedures Asynchronously
    • 6.4. Defining Options on a Per-Call Basis
    • 6.5. Closing the Connection
    • 6.6. Handling Errors
      • 6.6.1. Interpreting Execution Errors
      • 6.6.2. Handling Timeouts
      • 6.6.3. Writing Handlers to Interpret Other Errors
    • 6.7. Compiling and Running Client Applications
      • 6.7.1. Starting the Client Application
      • 6.7.2. Running Clients from Outside the Cluster
  • 7. Simplifying Application Development▶
    • 7.1. Using Default Procedures
    • 7.2. Shortcut for Defining Simple Stored Procedures
    • 7.3. Verifying Expected Query Results
    • 7.4. Scheduling Stored Procedures as Tasks
    • 7.5. Directed Procedures: Distributing Transactions to Every Partition
  • 8. Using VoltDB with Other Programming Languages▶
    • 8.1. C++ Client Interface
      • 8.1.1. Writing VoltDB Client Applications in C++
      • 8.1.2. Creating a Connection to the Database Cluster
      • 8.1.3. Invoking Stored Procedures
      • 8.1.4. Invoking Stored Procedures Asynchronously
      • 8.1.5. Interpreting the Results
    • 8.2. JSON HTTP Interface
      • 8.2.1. How the JSON Interface Works
      • 8.2.2. Using the JSON Interface from Client Applications
      • 8.2.3. How Parameters Are Interpreted
      • 8.2.4. Interpreting the JSON Results
      • 8.2.5. Error Handling using the JSON Interface
    • 8.3. JDBC Interface
      • 8.3.1. Using JDBC to Connect to a VoltDB Database
      • 8.3.2. Using JDBC to Query a VoltDB Database
  • 9. Using VoltDB in a Cluster▶
    • 9.1. Starting a Database Cluster
    • 9.2. Defining the Cluster Configuration
    • 9.3. Elastic Scaling to Resize the Cluster
      • 9.3.1. Adding Nodes with Elastic Scaling
      • 9.3.2. Removing Nodes with Elastic Scaling
      • 9.3.3. Configuring How VoltDB Rebalances Nodes During Elastic Scaling
  • 10. Availability▶
    • 10.1. How K-Safety Works
    • 10.2. Enabling K-Safety
      • 10.2.1. What Happens When You Enable K-Safety
      • 10.2.2. Calculating the Appropriate Number of Nodes for K-Safety
    • 10.3. Recovering from System Failures
      • 10.3.1. What Happens When a Node Rejoins the Cluster
      • 10.3.2. Where and When Recovery May Fail
    • 10.4. Avoiding Network Partitions
      • 10.4.1. K-Safety and Network Partitions
      • 10.4.2. Network Fault Protection
  • 11. Active(N) Database Replication▶
    • 11.1. How Database Replication Works
      • 11.1.1. Starting Database Replication
      • 11.1.2. Database Replication, Availability, and Disaster Recovery
      • 11.1.3. Database Replication and Completeness
    • 11.2. Using Active(N) Cross Datacenter Replication
      • 11.2.1. Designing Your Schema for Active Replication
      • 11.2.2. Configuring the Database Clusters
      • 11.2.3. Starting the Database Clusters
      • 11.2.4. Loading a Matching Schema and Starting Replication
      • 11.2.5. Stopping Replication
      • 11.2.6. Example XDCR Configurations
      • 11.2.7. Understanding Conflict Resolution
    • 11.3. Updating the Schema During Replication
      • 11.3.1. Safely Updating the Schema While the Clusters are Paused
      • 11.3.2. Adding and Removing Tables Without Pausing
      • 11.3.3. Using Dynamic Schema Change to Add, Remove, and Modify Table Columns Without Pausing
    • 11.4. Monitoring Database Replication
    • 11.5. Tuning Active(N) to Meet Your Application Needs
      • 11.5.1. The XDCR Workflow
      • 11.5.2. Detecting and Correcting Bottlenecks in the XDCR Workflow
  • 12. Security▶
    • 12.1. How Security Works in VoltDB
    • 12.2. Enabling Authentication and Authorization
    • 12.3. Defining Users and Roles
    • 12.4. Assigning Access to Stored Procedures
    • 12.5. Assigning Access by Function (System Procedures, SQL Queries, and Default Procedures)
    • 12.6. Using Built-in Roles
    • 12.7. Encrypting VoltDB Communication Using TLS/SSL
      • 12.7.1. Creating the TLS/SSL Certificates
      • 12.7.2. Using Certificate Revocation Lists (CRLs)
      • 12.7.3. Configuring TLS/SSL on the VoltDB Server
      • 12.7.4. Configuring Mutual TLS/SSL on the Server and Clients
      • 12.7.5. Using the VoltDB Command Line Utilities with TLS/SSL
      • 12.7.6. Implementing TLS/SSL in the Java Client Applications
      • 12.7.7. Configuring Database Replication (XDCR) With TLS/SSL
      • 12.7.8. Updating TLS/SSL Certificates and Certificate Revocation Lists (CRLs)
    • 12.8. Integrating LDAP Security with VoltDB
      • 12.8.1. Configuring LDAP Security in VoltDB
      • 12.8.2. Configuring VoltDB Security in LDAP
    • 12.9. Integrating Kerberos Security with VoltDB
      • 12.9.1. Installing and Configuring Kerberos
      • 12.9.2. Installing and Configuring the Java Security Extensions
      • 12.9.3. Configuring the VoltDB Servers and Clients
      • 12.9.4. Accessing the Database from the Command Line and the Web
  • 13. Saving & Restoring a VoltDB Database▶
    • 13.1. Performing a Manual Save and Restore of a VoltDB Cluster
      • 13.1.1. How to Save the Contents of a VoltDB Database
      • 13.1.2. How to Restore the Contents of a VoltDB Database Manually
      • 13.1.3. Changing the Cluster Configuration Using Save and Restore
    • 13.2. Scheduling Automated Snapshots
    • 13.3. Tuning the Snapshot Process
    • 13.4. Managing Snapshot Files
    • 13.5. Special Notes Concerning Save and Restore
  • 14. Command Logging and Recovery▶
    • 14.1. How Command Logging Works
    • 14.2. Controlling Command Logging
    • 14.3. Configuring Command Logging for Optimal Performance
      • 14.3.1. Log Size
      • 14.3.2. Log Frequency
      • 14.3.3. Synchronous vs. Asynchronous Logging
      • 14.3.4. Hardware Considerations
  • 15. Streaming Data: Import, Export, and Migration▶
    • 15.1. How Data Streaming Works in VoltDB
      • 15.1.1. Understanding Import
      • 15.1.2. Understanding Export
      • 15.1.3. Understanding Migration
      • 15.1.4. Understanding Topics
    • 15.2. The Business Case for Streaming Data
      • 15.2.1. Extract, Transform, Load (ETL)
      • 15.2.2. Change Data Capture
      • 15.2.3. Streaming Data Validation
      • 15.2.4. Caching
      • 15.2.5. Archiving
    • 15.3. VoltDB Export Connectors
      • 15.3.1. How Export Works
      • 15.3.2. The File Export Connector
      • 15.3.3. The HTTP Export Connector
      • 15.3.4. The JDBC Export Connector
      • 15.3.5. The Kafka Export Connector
      • 15.3.6. The Elasticsearch Export Connector
    • 15.4. VoltDB Import Connectors
      • 15.4.1. Bulk Loading Data Using VoltDB Standalone Utilities
      • 15.4.2. Streaming Import Using Built-in Import Features
      • 15.4.3. The Kafka Importer
    • 15.5. VoltDB Import Formatters
    • 15.6. VoltDB Topics
      • 15.6.1. Types of VoltDB Topics
      • 15.6.2. Declaring VoltDB Topics
      • 15.6.3. Configuring and Managing Topics
      • 15.6.4. Configuring the Topic Server
      • 15.6.5. Calling Topics from Consumers and Producers
      • 15.6.6. Using Opaque Topics
  • A. Supported SQL DDL Statements▶
    • ALTER STREAM
    • ALTER TABLE
    • ALTER TASK
    • ALTER VIEW
    • CREATE AGGREGATE FUNCTION
    • CREATE FUNCTION
    • CREATE INDEX
    • CREATE PROCEDURE AS
    • CREATE PROCEDURE FROM CLASS
    • CREATE ROLE
    • CREATE STREAM
    • CREATE TABLE
    • CREATE TASK
    • CREATE VIEW
    • DR TABLE
    • DROP FUNCTION
    • DROP INDEX
    • DROP PROCEDURE
    • DROP ROLE
    • DROP STREAM
    • DROP TABLE
    • DROP TASK
    • DROP VIEW
    • PARTITION TABLE
  • B. Supported SQL Statements▶
    • DELETE
    • INSERT
    • MIGRATE
    • SELECT
    • TRUNCATE TABLE
    • UPDATE
    • UPSERT
  • C. SQL Functions▶
    • ABS()
    • APPROX_COUNT_DISTINCT()
    • AREA()
    • ARRAY_ELEMENT()
    • ARRAY_LENGTH()
    • ASTEXT()
    • AVG()
    • BIN()
    • BIT_SHIFT_LEFT()
    • BIT_SHIFT_RIGHT()
    • BITAND()
    • BITNOT()
    • BITOR()
    • BITXOR()
    • CAST()
    • CEILING()
    • CENTROID()
    • CHAR()
    • CHAR_LENGTH()
    • COALESCE()
    • CONCAT()
    • CONTAINS()
    • COS()
    • COT()
    • COUNT()
    • CSC()
    • CURRENT_TIMESTAMP()
    • DATEADD()
    • DATEDIFF()
    • DAY(), DAYOFMONTH()
    • DAYOFWEEK()
    • DAYOFYEAR()
    • DECODE()
    • DEGREES()
    • DISTANCE()
    • DWITHIN()
    • EXP()
    • EXTRACT()
    • FIELD()
    • FLOOR()
    • FORMAT()
    • FORMAT_CURRENCY()
    • FORMAT_TIMESTAMP()
    • FROM_UNIXTIME()
    • HEX()
    • HOUR()
    • INET6_ATON()
    • INET6_NTOA()
    • INET_ATON()
    • INET_NTOA()
    • ISINVALIDREASON()
    • ISVALID()
    • IS_VALID_TIMESTAMP()
    • LATITUDE()
    • LEFT()
    • LN(), LOG()
    • LOG10()
    • LONGITUDE()
    • LOWER()
    • MAKEVALIDPOLYGON()
    • MAX()
    • MAX_VALID_TIMESTAMP()
    • MIGRATING()
    • MIN()
    • MIN_VALID_TIMESTAMP()
    • MINUTE()
    • MOD()
    • MONTH()
    • NOW()
    • NUMINTERIORRINGS()
    • NUMPOINTS()
    • OCTET_LENGTH()
    • OVERLAY()
    • PI()
    • POINTFROMTEXT()
    • POLYGONFROMTEXT()
    • POSITION()
    • POWER()
    • QUARTER()
    • RADIANS()
    • REGEXP_POSITION()
    • REPEAT()
    • REPLACE()
    • RIGHT()
    • ROUND()
    • SEC()
    • SECOND()
    • SET_FIELD()
    • SIGN()
    • SIN()
    • SINCE_EPOCH()
    • SPACE()
    • SQRT()
    • STR()
    • SUBSTRING()
    • SUM()
    • TAN()
    • TIME_WINDOW()
    • TO_TIMESTAMP()
    • TRIM()
    • TRUNCATE()
    • UPPER()
    • VALIDPOLYGONFROMTEXT()
    • WEEK(), WEEKOFYEAR()
    • WEEKDAY()
    • YEAR()
  • D. VoltDB CLI Commands▶
    • csvloader
    • jdbcloader
    • kafkaloader
    • sqlcmd
    • voltadmin
    • voltdb
  • E. YAML Configuration Properties▶
    • E.1. Understanding YAML Syntax
      • E.1.1. YAML Files
      • E.1.2. Dot Notation
    • E.2. YAML Properties for Configuring Volt Databases on Bare Metal
  • F. VoltDB Datatype Compatibility▶
    • F.1. Java and VoltDB Datatype Compatibility
  • G. System Procedures▶
    • @AdHoc
    • @AdjustLogging
    • @Explain
    • @ExplainProc
    • @ExplainView
    • @GetPartitionKeys
    • @GetYamlConfiguration
    • @Metrics
    • @Note
    • @Pause
    • @Ping
    • @QueryStats
    • @Quiesce
    • @Resume
    • @SetYamlConfiguration
    • @Shutdown
    • @SnapshotDelete
    • @SnapshotRestore
    • @SnapshotSave
    • @SnapshotScan
    • @Statistics
    • @StopNode
    • @SwapTables
    • @SystemCatalog
    • @SystemInformation
    • @UpdateClasses
    • @UpdateLogging

12.9. Integrating Kerberos Security with VoltDB

For environments where more secure communication is required than hashed usernames and passwords, it is possible for a VoltDB database to use Kerberos to authenticate clients and servers. Kerberos is a popular network security protocol that you can use to authenticate the Java client processes when they connect to VoltDB database servers. Use of Kerberos is supported for the Java client library and JSON interface only.

To use Kerberos authentication for VoltDB security, you must perform the following steps:

  1. Set up and configure Kerberos on your network, servers, and clients.

  2. Install and configure the Java security extensions on your VoltDB servers and clients.

  3. Configure the VoltDB cluster and client applications to use Kerberos.

The following sections describe these steps in detail.

12.9.1. Installing and Configuring Kerberos

Kerberos is a complete software solution for establishing a secure network environment. It includes network protocols and software for handling authentication and authorization in a secure, encrypted fashion. Kerberos requires one or more servers known as key distribution centers (KDC) to authenticate and authorize services and the users who access them.

To use Kerberos for VoltDB authentication you must first set up Kerberos within your network environment. If you do not already have a Kerberos KDC, you will need to create one. You will also need to install the Kerberos client libraries on all of the VoltDB servers and clients and set up the appropriate principals and services. Because Kerberos is a complete network environment rather than a single platform application, it is beyond the scope of this document to explain how to install and configure Kerberos itself. This section only provides notes specific to configuring Kerberos for use by VoltDB. For complete information about setting up and using Kerberos, please see the Kerberos documentation.

Part of the Kerberos setup is the creation of a configuration file on both the VoltDB server and client machines. By default, the configuration file is located in /etc/krb5.conf on Linux systems. (On Macintosh systems, the configuration file is edu.mit.Kerberos located either in ~/Library/Preferences/ or /Library/Preferences/.) Be sure this file exists and points to the correct realm and KDC.

Once a KDC exists and the nodes are configured correctly, you must create the necessary Kerberos accounts — known as "user principals" for the accounts that run the VoltDB client applications and a "service principal" for the VoltDB cluster. If you intend to use the web-based Volt Management Center or the JSON interface, you will also want to create a host and HTTP service principle for each server as well. For example, to create the service keytab file for the VoltDB database, you can issue the following commands on the Kerberos KDC:

$ sudo kadmin.local
kadmin.local: addprinc -randkey service/voltdb
kadmin.local: ktadd -k voltdb.keytab service/voltdb

Then copy the keytab file to the database servers, making sure it is only accessible by the user account that starts the database process:

$ scp voltdb.keytab voltadmin@voltsvr:voltdb.keytab
$ ssh voltadmin@voltsvr chmod 0600 voltdb.keytab

You can then create host and HTTP service principles for each server in the cluster and write them to a server-specific keytab. For example, to create a keytab file for the database node server1, the command would be the following:

$ sudo kadmin.local

kadmin.local: addprinc -randkey host/server1.mycompany.lan
kadmin.local: addprinc -randkey HTTP/server1.mycompany.lan
 
kadmin.local: ktadd -k server1.mycompany.lan.keytab HTTP/server1.mycompany.lan
kadmin.local: ktadd -k server1.mycompany.lan.keytab host/server1.mycompany.lan

12.9.2. Installing and Configuring the Java Security Extensions

The next step is to install and configure the Java security extension known as Java Cryptography Extension (JCE). JCE enables the more robust encryption required by Kerberos within the Java Authentication and Authorization Service (JAAS). This is necessary because VoltDB uses JAAS to interact with Kerberos.

The JCE that needs to be installed is specific to the version of Java you are running. See the the Java web site for details. Again, you must install JCE on both the VoltDB servers and client nodes

Once JCE is installed, you create a JAAS login configuration file so Java knows how to authenticate the current process. By default, the JAAS login configuration file is $HOME/.java.login.config. On the database servers, the configuration file must define the VoltDBService module and associate it with the keytab created in the previous section.

To enable Kerberos access from the web-based Volt Management Center and JSON interface, you must also include entries for the Java Generic Security Service (JGSS) declaring the VoltDB service principle and the server's HTTP service principle. For example:

Server JAAS Login Configuration File

VoltDBService {
    com.sun.security.auth.module.Krb5LoginModule required
        useKeyTab=true keyTab="/home/voltadmin/voltdb.keytab"
        doNotPrompt=true
        principal="service/[email protected]" storeKey=true;
};

com.sun.security.jgss.initiate { 
     com.sun.security.auth.module.Krb5LoginModule required 
     principal="service/[email protected]" 
     keyTab="/home/voltadmin/voltdb.keytab" 
     useKeyTab=true 
     storeKey=true 
     debug=false; 
}; 
  
com.sun.security.jgss.accept { 
     com.sun.security.auth.module.Krb5LoginModule required 
     principal="HTTP/[email protected]" 
     useKeyTab=true 
     keyTab="/etc/krb5.keytab" 
     storeKey=true 
     debug=false 
     isInitiator=false; 
};

On the client nodes, the JAAS login configuration defines the VoltDBClient module.

Client JAAS Login Configuration File

VoltDBClient {
    com.sun.security.auth.module.Krb5LoginModule required
    useTicketCache=true renewTGT=true doNotPrompt=true;
};

12.9.3. Configuring the VoltDB Servers and Clients

Finally, once Kerberos and the Java security extensions are installed and configured, you must configure the VoltDB database cluster and client applications to use Kerberos.

On the database servers, you enable Kerberos security using security and its subproperties when you initialize the database root directory, specifying "kerberos" as the provider. For example:

deployment:
  security:
    enabled: True
    provider: kerberos
       . . .

You then assign roles to individual users as described in Section 12.3, “Defining Users and Roles”, except in place of generic usernames, you specify the Kerberos user — or "principal" — names, including their realm. Since Kerberos uses encrypted certificates, the password property is ignored and can be filled in with arbitrary text. For example:

deployment:
  security:
    enabled: True
    provider: kerberos
       . . .
  users:
    user:
    - name: "[email protected]"
      password: n/a 
      roles=administrator
    - name: "[email protected]" 
      password: n/a
      roles: dev
    - name: "[email protected]" 
      password: n/a
      roles: adhoc

Having configured Kerberos in a configuration file, you are ready to initialize and start the VoltDB cluster. When starting the VoltDB process, Java must know how to access the Kerberos and JAAS login configuration files created in the preceding sections. If the files are not in their default locations, you can override the default location using the VOLTDB_OPTS environment variable and setting the flags java.security.krb5.conf and java.security.auth.login.config, respectively.[4]

In Java client applications, you specify Kerberos as the security protocol when you create the client connection, using the enableKerberosAuthentication method as part of the configuration. For example:

import org.voltdb.client.ClientConfig;
import org.voltdb.client.ClientFactory;
 
ClientConfig config = new ClientConfig();
      // specify the JAAS login module
config.enableKerberosAuthentication("VoltDBClient"); 
 
VoltClient client = ClientFactory.createClient(config);
client.createConnection("voltsvr");

Note that the VoltDB client automatically picks up the Kerberos cached credentials of the current process, the user's Kerberos "principal". So you do not need to — and should not — specify a username or password as part of the VoltDB client configuration.

When using the VoltDB JDBC client interface, you can enable Kerberos by setting the kerberos property on the connection to match the settings in the Java API. For example, you can enable Kerberos by setting the property on the connection string as a query parameter:

Class.forName("org.voltdb.jdbc.Driver");
Connection c = DriverManager.getConnection(
     "jdbc:voltdb://svr1:21212,svr2:21212?kerberos=VoltDBClient");

Alternately, you can supply a list of properties, including the kerberos property, when you initialize the connection:

Class.forName("org.voltdb.jdbc.Driver");
Properties props = new Properties();
props.setProperty("kerberos", “VoltDBClient");
Connection c = DriverManager.getConnection(
     "jdbc:voltdb://svr1:21212,svr2:21212", props);

12.9.4. Accessing the Database from the Command Line and the Web

It is also important to note that once the cluster starts using Kerberos authentication, only Java, JDBC, JSON, and Python clients can connect to the cluster and they must use Kerberos authentication to do it. The same is true for the CLI commands, such has sqlcmd and voltadmin. To authenticate to a VoltDB server with Kerberos security enabled using the Java-based utilities sqlcmd and cvsloader, you must include the --kerberos flag identifying the name of the Kerberos client service module. For example:

$ sqlcmd --kerberos=VoltDBClient

If the configuration files are not in the default location, you must specify their location on the command line:

$ sqlcmd --kerberos=VoltDBClient \
     -J-Djava.security.auth.login.config=myclient.kerberos.conf

To use the Python API or Python-based voltadmin utility, you must first make sure you have the python-gssapi package installed. Then, login to your Kerberos account using kinit before invoking the Python client. When using the voltadmin utility, you must also include --kerberos flag, but you do not need to specify any argument since it picks up the credentials in the Kerberos user's cache. For example:

$ voltadmin shutdown --kerberos

To use the Volt Management Center or the JSON interface to access the database, your web browser must be configured to use the Simple and Protected GSS-API Negotiation Mechanism (also known as SPNEGO). See your web browser's help for instructions on configuring SPNEGO.



[4] On Macintosh systems, you must always specify the java.security.krb5.conf property.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.