Skip to content

ikerexxe/sssd-test-suite

 
 

Repository files navigation

Virtual Test Suite for SSSD

Virtual Test Suite for SSSD is a set of Vagrant and Ansible scripts that will automatically setup and provision several virtual machines that you can use to test SSSD.

It creates an out of the box working virtual environment with 389 Directory Server, IPA and Active Directory servers. It also creates an SSSD client machine enrolled to those servers, ready to build and debug your code.

Table Of Contents

  1. Basic usage
  2. Guest description
  3. Configuration file
  4. Environment variables
  5. Tips and Tricks
  6. Running SSSD tests
  7. Creating new boxes

Quick Setup

The following examples uses the POOL_DIR variable. Set this variable to a directory that will hold the sssd-test-suite libvirt's pool. The directory should be on a large file system to hold all virtual machines. The directory must not be a existing pool.

I want to try SSSD with FreeIPA

$ POOL_DIR=/path/to/sssd/test/suite/pool
$ git clone https://github.com/SSSD/sssd-test-suite.git
$ cd sssd-test-suite
$ ./install-cli-deps.sh
$ ./sssd-test-suite provision host --pool "$POOL_DIR"
$ cp ./configs/sssd-f30.json config.json
$ ./sssd-test-suite up client ipa && ./sssd-test-suite provision enroll client ipa

Now you can:

  • ssh to the client machine with ./sssd-test-suite ssh client
  • ssh to the ipa machine with ./sssd-test-suite ssh ipa
  • open ipa web interface at https://master.ipa.vm

I want to try SSSD with native LDAP

$ POOL_DIR=/path/to/sssd/test/suite/pool
$ git clone https://github.com/SSSD/sssd-test-suite.git
$ cd sssd-test-suite
$ ./install-cli-deps.sh
$ ./sssd-test-suite provision host --pool "$POOL_DIR"
$ cp ./configs/sssd-f30.json config.json
$ ./sssd-test-suite up client ldap && ./sssd-test-suite provision enroll client ldap

Now you can:

  • ssh to the client machine with ./sssd-test-suite ssh client
  • ssh to the ldap machine with ./sssd-test-suite ssh ldap
  • access LDAP server at ldap://master.ldap.vm
  • load example data to the server with ./sssd-test-suite provision ldap --clear ./provision/ldif/basic.ldif

I want to try SSSD with Active Directory

$ POOL_DIR=/path/to/sssd/test/suite/pool
$ git clone https://github.com/SSSD/sssd-test-suite.git
$ cd sssd-test-suite
$ ./install-cli-deps.sh
$ ./sssd-test-suite provision host --pool "$POOL_DIR"
$ cp ./configs/sssd-f30.json config.json
$ ./sssd-test-suite up client ad && ./sssd-test-suite provision enroll client ad

Now you can:

  • ssh to the client machine with ./sssd-test-suite ssh client
  • open remote desktop of ad machine with ./sssd-test-suite rdp ad -- -g 90%

I want to try SSSD with FreeIPA, LDAP and Active Directory (including child domain)

$ POOL_DIR=/path/to/sssd/test/suite/pool
$ git clone https://github.com/SSSD/sssd-test-suite.git
$ cd sssd-test-suite
$ ./install-cli-deps.sh
$ ./sssd-test-suite provision host --pool "$POOL_DIR"
$ cp ./configs/sssd-f30.json config.json
$ ./sssd-test-suite up -s && ./sssd-test-suite provision guest && ./sssd-test-suite provision enroll

Now you can:

  • ssh to the client machine with ./sssd-test-suite ssh client
  • ssh to the ldap machine with ./sssd-test-suite ssh ldap
  • ssh to the ipa machine with ./sssd-test-suite ssh ipa
  • open remote desktop of ad machine with ./sssd-test-suite rdp ad -- -g 90%
  • open remote desktop of ad-child machine with ./sssd-test-suite rdp ad-child -- -g 90%
  • open ipa web interface at https://master.ipa.vm
  • access LDAP server at ldap://master.ldap.vm
  • load example data to the server with ./sssd-test-suite provision ldap --clear ./provision/ldif/basic.ldif

About

Setup virtual environment for testing SSSD against LDAP, IPA and Active Directory servers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.9%
  • Shell 12.7%
  • Ruby 4.2%
  • Vim Script 0.2%