Skip to content

korteke/shibboleth-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shibboleth-vagrant

Vagrant box - Shibboleth IdP3 + SP 3.x testing environment

Shibboleth SP / IdP are almost on factory settings. So IdP wont release any attributes to the SP. IdP will release couple of attributes to the Shibboleth SP (uid, mail, sn, cn, givenName)

Prereqs

  • Virtualbox (or other vagrant compliant virtualization "engine")

This Vagrant box includes following packages / applications:

  • CentOS 7
  • httpd 2.4.x
  • (Azul) OpenJDK 8 (Update 181)
  • Tomcat 8.5.34
  • Shibboleth Service Provider (SP) 3.0.2
  • Shibboleth Identity Provider (IdP) 3.3.3
  • OpenLDAP
  • phpLdapAdmin

All programs are provisioned to vagrant box with Ansible

Installation

Before you can run this box you need to install Vagrant and Ansible to your host computer:

Ansible

Mac

Linux

Windows (Not tested) w\ cygwin

  • Founded way to tackle this problem. Will test and push changes.

Vagrant

Configuration

You need to add Vagrant box ip address to the hosts-file (linux /etc/hosts, windows c:\windows\system32\drivers\etc\hosts)

192.168.0.120 vagrant.local

Usage

  • Execute "vagrant up" and wait that the ansible run has completed, expected outcome:
PLAY RECAP ********************************************************************
default                    : ok=66   changed=61   unreachable=0    failed=0

Open browser and navigate to the address "https://vagrant.local/secure/" this URL is secured with Shibboleth SP, so that will redirect you to the Shibboleth IdP where you need to authenticate.

You can use following users to test this setup:

  • johnd / Password1
  • janed / Password1

Google Authenticator flow can be tested with URL: https://vagrant.local/Shibboleth.sso/totp or https://vagrant.local/Shibboleth.sso/totp?target=/secure
Latter URL will redirect you to the so simple PHP-site where you can see your attributes & headers.

Google Authenticator seed for "johnd" = G24YUKCHHXRDWCPR
QR-code:
alt text

After authentication you will be redirected back to https://vagrant.local/secure/. There is a simple PHP site which will show your environment variables and http headers.

Manage

You can use phpLdapAdmin application to manage users that are allowed to authenticate. It can be found https://vagrant.local/ldapadmin. Authenticate with user: "cn=manager,dc=vagrant,dc=local" password: "Password1"

File locations

  • Shibboleth IdP - /opt/shibboleth-idp
  • Shibboleth SP - /etc/shibboleth
  • Apache httpd - /etc/httpd
  • Java - /opt/zulu8.31.0.1-jdk8.0.181-linux_x64
  • Tomcat - /opt/apache-tomcat-8.5.34
  • OpenLDAP - /etc/openldap

About

Shibboleth IdP v3 + SP 2.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages