Installing the cqlsh security packages

Install packages to use cqlsh with a Kerberized cluster.

To use cqlsh with a Kerberized cluster, you must install the PyKerberos and python-pure-sasl packages. The PyKerberos package is a high-level wrapper for Kerberos (GSSAPI) operations. The python-pure-sasl package is a pure Python client-side SASL (Simple Authentication and Security Layer) implementation.

Adding the required modules for packaged installs 

Debian-based installs:

$ sudo apt-get install python-pure-sasl

RHEL-based installs:

# yum install python-pure-sasl

Tarball installs:

To install from the binary tarball, you first install the PyKerberos module and then the pure-sasl module. DataStax recommends using APT or Yum because installing the dependencies can be difficult/time consuming. To install the modules:

Adding the required modules for tarball installs 

To install from the binary tarball, you first install the PyKerberos module and then the pure-sasl module.

Attention: DataStax recommends using APT or Yum because installing the dependencies can be difficult, time consuming, and requires a high level of Linux expertise.

Procedure

  1. Ensure all dependencies are properly installed for:

    Debian-based systems:

    $ apt-cache show python-kerberos

    Look at the Depends field.

    RHEL-based systems:

    $ yum deplist python-kerberos
  2. Update your system to meet any dependancies, such as gcc, g++, python-dev, and libkrb5-dev.
  3. Download the PyKerberos tarball:
    $ curl -OL http://username:password@downloads.datastax.com/enterprise/kerberos-1.1.2+DSE1.tar.gz
  4. Extract the tarball:
    $ tar -xzf kerberos-1.1.2+DSE1.tar.gz
  5. From the directory where you untarred PyKerberos:
    $ python setup.py build
  6. From the install directory:
    $ python setup.py install
  7. Download the pure-sasl module tarball:
    $ curl -OL http://pypi.python.org/packages/source/p/pure-sasl/pure-sasl-0.1.3.tar.gz
  8. Extract the tarball:
    $ tar -xzf pure-sasl-0.1.3.tar.gz
  9. From the install directory:
    $ sudo python setup.py install