How To Install wordpress-shibboleth on Ubuntu 18.04

In this tutorial we learn how to install wordpress-shibboleth on Ubuntu 18.04. wordpress-shibboleth is Shibboleth plugin for WordPress

Introduction

In this tutorial we learn how to install wordpress-shibboleth on Ubuntu 18.04.

What is wordpress-shibboleth

wordpress-shibboleth is:

This plugin is designed to support integrating your WordPress blog into your existing identity management infrastructure using a Shibboleth Service Provider.

WordPress can be configured so that all standard login requests will be sent to your configured Shibboleth Identity Provider or Discovery Service. Upon successful authentication, a new WordPress account will be automatically provisioned for the user if one does not already exist. User attributes (username, first name, last name, display name, nickname, and email address) can be synchronized with your enterprise’s system of record each time the user logs into WordPress.

Finally, the user’s role within WordPress can be automatically set (and continually updated) based on any attribute Shibboleth provides. For example, you may decide to give users with an eduPersonAffiliation value of faculty the WordPress role of editor, while the eduPersonAffiliation value of student maps to the WordPress role contributor. Or you may choose to limit access to WordPress altogether using a special eduPersonEntitlement value.

There are three methods to install wordpress-shibboleth on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install wordpress-shibboleth Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install wordpress-shibboleth using apt-get by running the following command:

sudo apt-get -y install wordpress-shibboleth

Install wordpress-shibboleth Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install wordpress-shibboleth using apt by running the following command:

sudo apt -y install wordpress-shibboleth

Install wordpress-shibboleth Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install wordpress-shibboleth using aptitude by running the following command:

sudo aptitude -y install wordpress-shibboleth

How To Uninstall wordpress-shibboleth on Ubuntu 18.04

To uninstall only the wordpress-shibboleth package we can use the following command:

sudo apt-get remove wordpress-shibboleth

Uninstall wordpress-shibboleth And Its Dependencies

To uninstall wordpress-shibboleth and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove wordpress-shibboleth

Remove wordpress-shibboleth Configurations and Data

To remove wordpress-shibboleth configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge wordpress-shibboleth

Remove wordpress-shibboleth configuration, data, and all of its dependencies

We can use the following command to remove wordpress-shibboleth configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge wordpress-shibboleth

References

Summary

In this tutorial we learn how to install wordpress-shibboleth package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.