FreeIPA is a centralised identity management system. In this workshop you will learn how to deploy FreeIPA servers and enrol client machines, define and manage user and service identities, set up access policies, configure network services to take advantage of FreeIPA's authentication and authorisation facilities and issue X.509 certificates for services.
Mandatory:
- Unit 1: Installing the FreeIPA server
- Unit 2: Enrolling client machines
- Unit 3: User management and Kerberos authentication
- Unit 4: Host-based access control (HBAC)
Optional units—choose the topics that are relevant to you:
- Unit 5: Web application authentication and authorisation
- Unit 6: Service certificates
- Unit 7: Replica installation
- Unit 8: Sudo rule management
- Unit 9: SELinux User Maps
- Unit 10: SSH user and host key management
Parts of the workshop involve editing files on virtual
machines. The vi
and GNU nano
editors are available on the
VMs. If you are not familiar with vi
or you are unsure of what to use, you
should choose nano
.
This guide contains many examples of commands. Some of the commands should be executed on your host, others on a particular guest VM. For clarity, commands are annotated with the host on which they are meant to be executed, as in these examples:
$ echo "Run it on virtualisation host (no annotation)" [server]$ echo "Run it on FreeIPA server" [client]$ echo "Run it on IPA-enrolled client" ...
Some preparation is needed prior to the workshop. The workshop is
designed to be carried out in a Vagrant environment that configures
three networked virtual machines (VMs) with all software needed for
the workshop. The goal of this preparation is to vagrant up
the VMs. After this preparation is completed you are ready to begin
the workshop.
For the FreeIPA workshop you will need to:
- Install Vagrant and VirtualBox. (On Fedora, you can use libvirt instead of VirtualBox).
- Use Git to clone the repository containing the
Vagrantfile
- Fetch the Vagrant box for the workshop
- Add entries for the guest VMs to your hosts file (so you can access them by their hostname)
Please set up these items prior to the workshop. More detailed instructions follow.
If you intend to use the libvirt
provider (recommended), install
vagrant-libvirt
and vagrant-libvirt-doc
:
$ sudo dnf install -y vagrant-libvirt vagrant-libvirt-doc
Also ensure you have the latest versions of selinux-policy
and
selinux-policy-targeted
.
Allow your regular user ID to start and stop Vagrant boxes using libvirt
.
Add your user to libvirt
group so you don't need to enter your administrator
password everytime:
$ sudo gpasswd -a ${USER} libvirt $ newgrp libvirt
On Fedoda 28 you need to enable virtlogd
:
$ systemctl enable --now virtlogd.socket
Finally restart the services:
$ systemctl restart libvirtd $ systemctl restart polkit
Otherwise, you will use VirtualBox and the virtualbox
provider.
VirtualBox needs to build kernel modules, and that means that you must
first install kernel headers and Dynamic Kernel Module Support:
$ sudo dnf install -y vagrant kernel-devel dkms
Next, install VirtualBox from the official VirtualBox package repository. Before using the repo, check that its contents match what appears in the transcript below (to make sure it wasn't tampered with):
$ sudo curl -o /etc/yum.repos.d/virtualbox.repo \ http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo $ cat /etc/yum.repos.d/virtualbox.repo [virtualbox] name=Fedora $releasever - $basearch - VirtualBox baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc $ sudo dnf install -y VirtualBox-5.2
Finally, load the kernel modules (you may need to restart your system for this to work):
$ sudo modprobe vboxdrv vboxnetadp
Install Vagrant for Mac OS X from https://www.vagrantup.com/downloads.html.
Install VirtualBox 5.2 for OS X hosts from https://www.virtualbox.org/wiki/Downloads.
Install Git from https://git-scm.com/download/mac or via your preferred package manager.
Install Vagrant and Git:
$ sudo apt-get install -y vagrant git
Virtualbox 5.2 may be available from the system package manager, depending your your release. Find out which version of VirtualBox is available:
$ apt list virtualbox Listing... done virtualbox/bionic 5.2.10-dfsg-6 amd64
If version 5.2 is available, install it via apt-get
:
$ sudo apt-get install -y virtualbox
If VirtualBox 5.2 was not available in the official packages for your release, follow the instructions at https://www.virtualbox.org/wiki/Linux_Downloads to install it.
Install Vagrant via the .msi
available from
https://www.vagrantup.com/downloads.html.
Install VirtualBox 5.2 for Windows hosts from https://www.virtualbox.org/wiki/Downloads.
You will also need to install an SSH client, and Git. Git for Windows also comes with an SSH client so just install Git from https://git-scm.com/download/win.
This repository contains the Vagrantfile
that is used for the
workshop, which you will need locally.
$ git clone https://github.com/freeipa/freeipa-workshop.git
Please fetch the Vagrant box prior to the workshop. It is > 600MB so it may not be feasible to download it during the workshop.
$ vagrant box add netoarmando/freeipa-workshop
This step is optional. All units can be completed using the CLI only. But if you want to access the FreeIPA Web UI or other web servers on the VMs from your browser, follow these instructions.
Add the following entries to your hosts file:
192.168.33.10 server.ipademo.local 192.168.33.11 replica.ipademo.local 192.168.33.20 client.ipademo.local
On Unix systems (including Mac OS X), the hosts file is /etc/hosts
(you need elevated permissions to edit it.)
On Windows, edit C:\Windows\System32\system\drivers\etc\hosts
as
Administrator.
You are ready to begin the workshop. Continue to Unit 1: Installing the FreeIPA server.
Here are some contact details and resources that may help you after the workshop is over:
- IRC:
#freeipa
and#sssd
(Freenode) freeipa-users@lists.fedorahosted.org
mailing list- How To guides: large index of articles about specialised tasks and integrations
- Troubleshooting guide: how to debug common problems; how to report bugs
- Bug tracker
- Information about the FreeIPA public demo instance
- Deployment Recommendations: things to consider when going into production
- Documentation index
- FreeIPA Planet: aggregate of several FreeIPA and identity-management related blogs
- GitHub organisation. In addition to the main repository there are various tools, CI-related projects and documentation.
- Development roadmap