Skip to content

Instantly share code, notes, and snippets.

View harrdou's full-sized avatar

Doug Harris harrdou

  • Ottawa, Ontario, Canada
View GitHub Profile
@harrdou
harrdou / Remove-Certificates.ps1
Last active September 26, 2024 14:34
Deleting old certificates from AD and EXO
Function Remove-Certificates {
$usercerts = @()
$exchangecerts = @()
Write-Host "Connecting to Exchange Online"
#used to connect to exchange online, must be customized for each tenant and certificate
$ClientId = ""
$Organization = ""
$CertificateThumbprint = ""
Try {
@harrdou
harrdou / CATSv2IDPAttributeMapper.java
Created October 30, 2019 19:22
CATSv2IDPAttributeMapper from the CATS IDP Simulator
package ca.gc.ssc.cats;
import com.sun.identity.saml2.plugins.DefaultIDPAttributeMapper;
import com.sun.identity.saml2.common.SAML2Exception;
import java.util.List;
/**
* This class <code>CATSv2IDPAttributeMapper</code> implements the
* <code>IDPAttributeMapper</code> to return the only SAML Attribute
* mandated by CATS v2 for insertion in the SAML Assertion.