Commit b3fa4008 authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

Merge branch '12-make-door-crud' into 'master'

Resolve "make door CRUD"

Closes #12

See merge request kretschmar/doorcode!30
parents 6382417b aa257fb2
Pipeline #5456 passed with stages
in 1 minute and 57 seconds
......@@ -28,11 +28,11 @@ services:
- ./src/web:/var/www
- ./nginx/conf.d/:/etc/nginx/conf.d/
# Saml config
- ./simplesamlphp-1.18.3:/var/simplesamlphp
- ./simplesamlphp-1.18.5:/var/simplesamlphp
- ./simple-saml/cert:/var/simplesamlphp/cert
- ./simple-saml/config:/var/simplesamlphp/config
- ./simple-saml/metadata:/var/simplesamlphp/metadata
- ./simplesamlphp-1.18.3:/var/simplesamlphp-idp
- ./simplesamlphp-1.18.5:/var/simplesamlphp-idp
- ./simple-saml-idp/cert:/var/simplesamlphp-idp/cert
- ./simple-saml-idp/config:/var/simplesamlphp-idp/config
- ./simple-saml-idp/metadata:/var/simplesamlphp-idp/metadata
......@@ -77,11 +77,11 @@ services:
- ./src/web:/var/www
- ./php/dev.ini:/usr/local/etc/php/conf.d/local.ini
# Map saml files to the php-fpm server so it has access to them as well
- ./simplesamlphp-1.18.3:/var/simplesamlphp
- ./simplesamlphp-1.18.5:/var/simplesamlphp
- ./simple-saml/cert:/var/simplesamlphp/cert
- ./simple-saml/config:/var/simplesamlphp/config
- ./simple-saml/metadata:/var/simplesamlphp/metadata
- ./simplesamlphp-1.18.3:/var/simplesamlphp-idp
- ./simplesamlphp-1.18.5:/var/simplesamlphp-idp
- ./simple-saml-idp/cert:/var/simplesamlphp-idp/cert
- ./simple-saml-idp/config:/var/simplesamlphp-idp/config
- ./simple-saml-idp/metadata:/var/simplesamlphp-idp/metadata
......
......@@ -81,7 +81,7 @@ $config = [
//'remember.username.enabled' => false,
//'remember.username.checked' => false,
'jacob.priddy:you thought this was my real password, didn\'t ya' => [
'jacob.priddy:password' => [
'first_name' => ['Jacob'],
'last_name' => ['Priddy'],
'emplid' => ['9876543'],
......
<?php
$attributemap = [
'sn' => 'urn:mace:dir:attribute-def:sn',
'telephoneNumber' => 'urn:mace:dir:attribute-def:telephoneNumber',
'facsimileTelephoneNumber' => 'urn:mace:dir:attribute-def:facsimileTelephoneNumber',
'postalAddress' => 'urn:mace:dir:attribute-def:postalAddress',
'givenName' => 'urn:mace:dir:attribute-def:givenName',
'homePhone' => 'urn:mace:dir:attribute-def:homePhone',
'homePostalAddress' => 'urn:mace:dir:attribute-def:homePostalAddress',
'mail' => 'urn:mace:dir:attribute-def:mail',
'mobile' => 'urn:mace:dir:attribute-def:mobile',
'preferredLanguage' => 'urn:mace:dir:attribute-def:preferredLanguage',
'eduPersonPrincipalName' => 'urn:mace:dir:attribute-def:eduPersonPrincipalName',
'eduPersonAffiliation' => 'urn:mace:dir:attribute-def:eduPersonAffiliation',
'eduPersonScopedAffiliation' => 'urn:mace:dir:attribute-def:eduPersonScopedAffiliation',
'eduPersonEntitlement' => 'urn:mace:dir:attribute-def:eduPersonEntitlement',
'eduPersonOrgDN' => 'urn:mace:dir:attribute-def:eduPersonOrgDN',
'eduPersonOrgUnitDN' => 'urn:mace:dir:attribute-def:eduPersonOrgUnitDN',
];
<?php
/**
* This file provides translations from the schac namespace to the old, deprecated namespace provided by TERENA.
*/
if (!defined('SCHAC_OLD_NS')) {
define('SCHAC_OLD_NS', 'urn:mace:terena.org:attribute-def:');
}
if (!defined('SCHAC_NEW_NS')) {
define('SCHAC_NEW_NS', 'urn:schac:attribute-def:');
}
$attributemap = [
SCHAC_NEW_NS.'schacCountryOfCitizenship' => SCHAC_OLD_NS.'schacCountryOfCitizenship',
SCHAC_NEW_NS.'schacCountryOfResidence' => SCHAC_OLD_NS.'schacCountryOfResidence',
SCHAC_NEW_NS.'schacDateOfBirth' => SCHAC_OLD_NS.'schacDateOfBirth',
SCHAC_NEW_NS.'schacExpiryDate' => SCHAC_OLD_NS.'schacExpiryDate',
SCHAC_NEW_NS.'schacGender' => SCHAC_OLD_NS.'schacGender',
SCHAC_NEW_NS.'schacHomeOrganization' => SCHAC_OLD_NS.'schacHomeOrganization',
SCHAC_NEW_NS.'schacHomeOrganizationType' => SCHAC_OLD_NS.'schacHomeOrganizationType',
SCHAC_NEW_NS.'schacMotherTongue' => SCHAC_OLD_NS.'schacMotherTongue',
SCHAC_NEW_NS.'schacPersonalPosition' => SCHAC_OLD_NS.'schacPersonalPosition',
SCHAC_NEW_NS.'schacPersonalTitle' => SCHAC_OLD_NS.'schacPersonalTitle',
SCHAC_NEW_NS.'schacPersonalUniqueCode' => SCHAC_OLD_NS.'schacPersonalUniqueCode',
SCHAC_NEW_NS.'schacPersonalUniqueID' => SCHAC_OLD_NS.'schacPersonalUniqueID',
SCHAC_NEW_NS.'schacPlaceOfBirth' => SCHAC_OLD_NS.'schacPlaceOfBirth',
SCHAC_NEW_NS.'schacProjectMembership' => SCHAC_OLD_NS.'schacProjectMembership',
SCHAC_NEW_NS.'schacProjectSpecificRole' => SCHAC_OLD_NS.'schacProjectSpecificRole',
SCHAC_NEW_NS.'schacSn1' => SCHAC_OLD_NS.'schacSn1',
SCHAC_NEW_NS.'schacSn2' => SCHAC_OLD_NS.'schacSn2',
SCHAC_NEW_NS.'schacUserPresenceID' => SCHAC_OLD_NS.'schacUserPresenceID',
SCHAC_NEW_NS.'schacUserPrivateAttribute' => SCHAC_OLD_NS.'schacUserPrivateAttribute',
SCHAC_NEW_NS.'schacUserStatus' => SCHAC_OLD_NS.'schacUserStatus',
SCHAC_NEW_NS.'schacYearOfBirth' => SCHAC_OLD_NS.'schacYearOfBirth',
];
<?php
$attributemap = [
// Generated Facebook Attributes
'facebook_user' => 'eduPersonPrincipalName', // username OR uid @ facebook.com
'facebook_targetedID' => 'eduPersonTargetedID', // http://facebook.com!uid
'facebook_cn' => 'cn', // duplicate of displayName
// Attributes Returned by Facebook
'facebook.first_name' => 'givenName',
'facebook.last_name' => 'sn',
'facebook.name' => 'displayName', // or 'cn'
'facebook.email' => 'mail',
'facebook.username' => 'uid', // facebook username (maybe blank)
'facebook.profile_url' => 'labeledURI',
'facebook.locale' => 'preferredLanguage',
'facebook.about_me' => 'description',
];
<?php
$attributemap = [
'mobile' => 'urn:mace:dir:attribute-def:mobile',
'displayName' => 'urn:oid:2.16.840.1.113730.3.1.241',
];
<?php
$attributemap = [
// See http://developer.linkedin.com/docs/DOC-1061 for LinkedIn Profile fields.
// NB: JSON response requires the conversion of field names from hyphened to camelCase.
// For instance, first-name becomes firstName.
// Generated LinkedIn Attributes
'linkedin_user' => 'eduPersonPrincipalName', // id @ linkedin.com
'linkedin_targetedID' => 'eduPersonTargetedID', // http://linkedin.com!id
// Attributes Returned by LinkedIn
'linkedin.firstName' => 'givenName',
'linkedin.lastName' => 'sn',
'linkedin.id' => 'uid', // alpha + mixed case user id
'linkedin.headline' => 'title',
'linkedin.summary' => 'description',
];
<?php // Maps AD LDAP to Claims from http://msdn.microsoft.com/en-us/library/hh159803.aspx
$attributemap = [
'c' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country',
'givenName' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname',
'mail' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress',
'memberOf' => 'http://schemas.microsoft.com/ws/2008/06/identity/claims/role',
'postalcode' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/postalcode',
'uid' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name',
'sn' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname',
'st' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/stateorprovince',
'streetaddress' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/streetaddress',
'telephonenumber' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/otherphone',
];
<?php
$attributemap = [
'aRecord' => 'urn:oid:0.9.2342.19200300.100.1.26',
'aliasedEntryName' => 'urn:oid:2.5.4.1',
'aliasedObjectName' => 'urn:oid:2.5.4.1',
'associatedDomain' => 'urn:oid:0.9.2342.19200300.100.1.37',
'associatedName' => 'urn:oid:0.9.2342.19200300.100.1.38',
'audio' => 'urn:oid:0.9.2342.19200300.100.1.55',
'authorityRevocationList' => 'urn:oid:2.5.4.38',
'buildingName' => 'urn:oid:0.9.2342.19200300.100.1.48',
'businessCategory' => 'urn:oid:2.5.4.15',
'c' => 'urn:oid:2.5.4.6',
'cACertificate' => 'urn:oid:2.5.4.37',
'cNAMERecord' => 'urn:oid:0.9.2342.19200300.100.1.31',
'carLicense' => 'urn:oid:2.16.840.1.113730.3.1.1',
'certificateRevocationList' => 'urn:oid:2.5.4.39',
'cn' => 'urn:oid:2.5.4.3',
'co' => 'urn:oid:0.9.2342.19200300.100.1.43',
'commonName' => 'urn:oid:2.5.4.3',
'countryName' => 'urn:oid:2.5.4.6',
'crossCertificatePair' => 'urn:oid:2.5.4.40',
'dITRedirect' => 'urn:oid:0.9.2342.19200300.100.1.54',
'dSAQuality' => 'urn:oid:0.9.2342.19200300.100.1.49',
'dc' => 'urn:oid:0.9.2342.19200300.100.1.25',
'deltaRevocationList' => 'urn:oid:2.5.4.53',
'departmentNumber' => 'urn:oid:2.16.840.1.113730.3.1.2',
'description' => 'urn:oid:2.5.4.13',
'destinationIndicator' => 'urn:oid:2.5.4.27',
'displayName' => 'urn:oid:2.16.840.1.113730.3.1.241',
'distinguishedName' => 'urn:oid:2.5.4.49',
'dmdName' => 'urn:oid:2.5.4.54',
'dnQualifier' => 'urn:oid:2.5.4.46',
'documentAuthor' => 'urn:oid:0.9.2342.19200300.100.1.14',
'documentIdentifier' => 'urn:oid:0.9.2342.19200300.100.1.11',
'documentLocation' => 'urn:oid:0.9.2342.19200300.100.1.15',
'documentPublisher' => 'urn:oid:0.9.2342.19200300.100.1.56',
'documentTitle' => 'urn:oid:0.9.2342.19200300.100.1.12',
'documentVersion' => 'urn:oid:0.9.2342.19200300.100.1.13',
'domainComponent' => 'urn:oid:0.9.2342.19200300.100.1.25',
'drink' => 'urn:oid:0.9.2342.19200300.100.1.5',
'eduOrgHomePageURI' => 'urn:oid:1.3.6.1.4.1.5923.1.2.1.2',
'eduOrgIdentityAuthNPolicyURI' => 'urn:oid:1.3.6.1.4.1.5923.1.2.1.3',
'eduOrgLegalName' => 'urn:oid:1.3.6.1.4.1.5923.1.2.1.4',
'eduOrgSuperiorURI' => 'urn:oid:1.3.6.1.4.1.5923.1.2.1.5',
'eduOrgWhitePagesURI' => 'urn:oid:1.3.6.1.4.1.5923.1.2.1.6',
'eduPersonAffiliation' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.1',
'eduPersonAssurance' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.11',
'eduPersonEntitlement' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.7',
'eduPersonNickname' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.2',
'eduPersonOrgDN' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.3',
'eduPersonOrgUnitDN' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.4',
'eduPersonPrimaryAffiliation' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.5',
'eduPersonPrimaryOrgUnitDN' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.8',
'eduPersonPrincipalName' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.6',
'eduPersonScopedAffiliation' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.9',
'eduPersonTargetedID' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.10',
'eduPersonUniqueId' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.13',
'eduPersonOrcid' => 'urn:oid:1.3.6.1.4.1.5923.1.1.1.16',
'email' => 'urn:oid:1.2.840.113549.1.9.1',
'emailAddress' => 'urn:oid:1.2.840.113549.1.9.1',
'employeeNumber' => 'urn:oid:2.16.840.1.113730.3.1.3',
'employeeType' => 'urn:oid:2.16.840.1.113730.3.1.4',
'enhancedSearchGuide' => 'urn:oid:2.5.4.47',
'facsimileTelephoneNumber' => 'urn:oid:2.5.4.23',
'favouriteDrink' => 'urn:oid:0.9.2342.19200300.100.1.5',
'fax' => 'urn:oid:2.5.4.23',
'federationFeideSchemaVersion' => 'urn:oid:1.3.6.1.4.1.2428.90.1.9',
'friendlyCountryName' => 'urn:oid:0.9.2342.19200300.100.1.43',
'generationQualifier' => 'urn:oid:2.5.4.44',
'givenName' => 'urn:oid:2.5.4.42',
'gn' => 'urn:oid:2.5.4.42',
'homePhone' => 'urn:oid:0.9.2342.19200300.100.1.20',
'homePostalAddress' => 'urn:oid:0.9.2342.19200300.100.1.39',
'homeTelephoneNumber' => 'urn:oid:0.9.2342.19200300.100.1.20',
'host' => 'urn:oid:0.9.2342.19200300.100.1.9',
'houseIdentifier' => 'urn:oid:2.5.4.51',
'info' => 'urn:oid:0.9.2342.19200300.100.1.4',
'initials' => 'urn:oid:2.5.4.43',
'internationaliSDNNumber' => 'urn:oid:2.5.4.25',
'isMemberOf' => 'urn:oid:1.3.6.1.4.1.5923.1.5.1.1',
'janetMailbox' => 'urn:oid:0.9.2342.19200300.100.1.46',
'jpegPhoto' => 'urn:oid:0.9.2342.19200300.100.1.60',
'knowledgeInformation' => 'urn:oid:2.5.4.2',
'l' => 'urn:oid:2.5.4.7',
'labeledURI' => 'urn:oid:1.3.6.1.4.1.250.1.57',
'localityName' => 'urn:oid:2.5.4.7',
'mDRecord' => 'urn:oid:0.9.2342.19200300.100.1.27',
'mXRecord' => 'urn:oid:0.9.2342.19200300.100.1.28',
'mail' => 'urn:oid:0.9.2342.19200300.100.1.3',
'mailPreferenceOption' => 'urn:oid:0.9.2342.19200300.100.1.47',
'manager' => 'urn:oid:0.9.2342.19200300.100.1.10',
'member' => 'urn:oid:2.5.4.31',
'mobile' => 'urn:oid:0.9.2342.19200300.100.1.41',
'mobileTelephoneNumber' => 'urn:oid:0.9.2342.19200300.100.1.41',
'nSRecord' => 'urn:oid:0.9.2342.19200300.100.1.29',
'name' => 'urn:oid:2.5.4.41',
'norEduOrgAcronym' => 'urn:oid:1.3.6.1.4.1.2428.90.1.6',
'norEduOrgNIN' => 'urn:oid:1.3.6.1.4.1.2428.90.1.12',
'norEduOrgSchemaVersion' => 'urn:oid:1.3.6.1.4.1.2428.90.1.11',
'norEduOrgUniqueIdentifier' => 'urn:oid:1.3.6.1.4.1.2428.90.1.7',
'norEduOrgUniqueNumber' => 'urn:oid:1.3.6.1.4.1.2428.90.1.1',
'norEduOrgUnitUniqueIdentifier' => 'urn:oid:1.3.6.1.4.1.2428.90.1.8',
'norEduOrgUnitUniqueNumber' => 'urn:oid:1.3.6.1.4.1.2428.90.1.2',
'norEduPersonBirthDate' => 'urn:oid:1.3.6.1.4.1.2428.90.1.3',
'norEduPersonLIN' => 'urn:oid:1.3.6.1.4.1.2428.90.1.4',
'norEduPersonNIN' => 'urn:oid:1.3.6.1.4.1.2428.90.1.5',
'o' => 'urn:oid:2.5.4.10',
'objectClass' => 'urn:oid:2.5.4.0',
'organizationName' => 'urn:oid:2.5.4.10',
'organizationalStatus' => 'urn:oid:0.9.2342.19200300.100.1.45',
'organizationalUnitName' => 'urn:oid:2.5.4.11',
'otherMailbox' => 'urn:oid:0.9.2342.19200300.100.1.22',
'ou' => 'urn:oid:2.5.4.11',
'owner' => 'urn:oid:2.5.4.32',
'pager' => 'urn:oid:0.9.2342.19200300.100.1.42',
'pagerTelephoneNumber' => 'urn:oid:0.9.2342.19200300.100.1.42',
'personalSignature' => 'urn:oid:0.9.2342.19200300.100.1.53',
'personalTitle' => 'urn:oid:0.9.2342.19200300.100.1.40',
'photo' => 'urn:oid:0.9.2342.19200300.100.1.7',
'physicalDeliveryOfficeName' => 'urn:oid:2.5.4.19',
'pkcs9email' => 'urn:oid:1.2.840.113549.1.9.1',
'postOfficeBox' => 'urn:oid:2.5.4.18',
'postalAddress' => 'urn:oid:2.5.4.16',
'postalCode' => 'urn:oid:2.5.4.17',
'preferredDeliveryMethod' => 'urn:oid:2.5.4.28',
'preferredLanguage' => 'urn:oid:2.16.840.1.113730.3.1.39',
'presentationAddress' => 'urn:oid:2.5.4.29',
'protocolInformation' => 'urn:oid:2.5.4.48',
'pseudonym' => 'urn:oid:2.5.4.65',
'registeredAddress' => 'urn:oid:2.5.4.26',
'rfc822Mailbox' => 'urn:oid:0.9.2342.19200300.100.1.3',
'roleOccupant' => 'urn:oid:2.5.4.33',
'roomNumber' => 'urn:oid:0.9.2342.19200300.100.1.6',
'sOARecord' => 'urn:oid:0.9.2342.19200300.100.1.30',
'schacCountryOfCitizenship' => 'urn:oid:1.3.6.1.4.1.25178.1.2.5',
'schacCountryOfResidence' => 'urn:oid:1.3.6.1.4.1.25178.1.2.11',
'schacDateOfBirth' => 'urn:oid:1.3.6.1.4.1.25178.1.2.3',
'schacExpiryDate' => 'urn:oid:1.3.6.1.4.1.25178.1.2.17',
'schacGender' => 'urn:oid:1.3.6.1.4.1.25178.1.2.2',
'schacHomeOrganization' => 'urn:oid:1.3.6.1.4.1.25178.1.2.9',
'schacHomeOrganizationType' => 'urn:oid:1.3.6.1.4.1.25178.1.2.10',
'schacMotherTongue' => 'urn:oid:1.3.6.1.4.1.25178.1.2.1',
'schacPersonalPosition' => 'urn:oid:1.3.6.1.4.1.25178.1.2.13',
'schacPersonalTitle' => 'urn:oid:1.3.6.1.4.1.25178.1.2.8',
'schacPersonalUniqueCode' => 'urn:oid:1.3.6.1.4.1.25178.1.2.14',
'schacPersonalUniqueID' => 'urn:oid:1.3.6.1.4.1.25178.1.2.15',
'schacPlaceOfBirth' => 'urn:oid:1.3.6.1.4.1.25178.1.2.4',
'schacProjectMembership' => 'urn:oid:1.3.6.1.4.1.25178.1.2.20',
'schacProjectSpecificRole' => 'urn:oid:1.3.6.1.4.1.25178.1.2.21',
'schacSn1' => 'urn:oid:1.3.6.1.4.1.25178.1.2.6',
'schacSn2' => 'urn:oid:1.3.6.1.4.1.25178.1.2.7',
'schacUserPresenceID' => 'urn:oid:1.3.6.1.4.1.25178.1.2.12',
'schacUserPrivateAttribute' => 'urn:oid:1.3.6.1.4.1.25178.1.2.18',
'schacUserStatus' => 'urn:oid:1.3.6.1.4.1.25178.1.2.19',
'schacYearOfBirth' => 'urn:oid:1.3.6.1.4.1.25178.1.0.2.3',
'searchGuide' => 'urn:oid:2.5.4.14',
'secretary' => 'urn:oid:0.9.2342.19200300.100.1.21',
'seeAlso' => 'urn:oid:2.5.4.34',
'serialNumber' => 'urn:oid:2.5.4.5',
'singleLevelQuality' => 'urn:oid:0.9.2342.19200300.100.1.50',
'sisSchoolGrade' => 'urn:oid:1.2.752.194.10.2.2',
'sisLegalGuardianFor' => 'urn:oid:1.2.752.194.10.2.1',
'sisOrgDepartment' => 'urn:oid:1.2.752.194.10.3',
'sisSchoolUnitCode' => 'urn:oid:1.2.752.194.10.2.4',
'sn' => 'urn:oid:2.5.4.4',
'sshPublicKey' => 'urn:oid:1.3.6.1.4.1.24552.500.1.1.1.13',
'st' => 'urn:oid:2.5.4.8',
'stateOrProvinceName' => 'urn:oid:2.5.4.8',
'street' => 'urn:oid:2.5.4.9',
'streetAddress' => 'urn:oid:2.5.4.9',
'subtreeMaximumQuality' => 'urn:oid:0.9.2342.19200300.100.1.52',
'subtreeMinimumQuality' => 'urn:oid:0.9.2342.19200300.100.1.51',
'supportedAlgorithms' => 'urn:oid:2.5.4.52',
'supportedApplicationContext' => 'urn:oid:2.5.4.30',
'surname' => 'urn:oid:2.5.4.4',
'telephoneNumber' => 'urn:oid:2.5.4.20',
'teletexTerminalIdentifier' => 'urn:oid:2.5.4.22',
'telexNumber' => 'urn:oid:2.5.4.21',
'textEncodedORAddress' => 'urn:oid:0.9.2342.19200300.100.1.2',
'title' => 'urn:oid:2.5.4.12',
'uid' => 'urn:oid:0.9.2342.19200300.100.1.1',
'uniqueIdentifier' => 'urn:oid:0.9.2342.19200300.100.1.44',
'uniqueMember' => 'urn:oid:2.5.4.50',
'userCertificate' => 'urn:oid:2.5.4.36',
'userClass' => 'urn:oid:0.9.2342.19200300.100.1.8',
'userPKCS12' => 'urn:oid:2.16.840.1.113730.3.1.216',
'userPassword' => 'urn:oid:2.5.4.35',
'userSMIMECertificate' => 'urn:oid:2.16.840.1.113730.3.1.40',
'userid' => 'urn:oid:0.9.2342.19200300.100.1.1',
'x121Address' => 'urn:oid:2.5.4.24',
'x500UniqueIdentifier' => 'urn:oid:2.5.4.45',
];
<?php
$attributemap = [
'aRecord' => 'urn:mace:dir:attribute-def:aRecord',
'aliasedEntryName' => 'urn:mace:dir:attribute-def:aliasedEntryName',
'aliasedObjectName' => 'urn:mace:dir:attribute-def:aliasedObjectName',
'associatedDomain' => 'urn:mace:dir:attribute-def:associatedDomain',
'associatedName' => 'urn:mace:dir:attribute-def:associatedName',
'audio' => 'urn:mace:dir:attribute-def:audio',
'authorityRevocationList' => 'urn:mace:dir:attribute-def:authorityRevocationList',
'buildingName' => 'urn:mace:dir:attribute-def:buildingName',
'businessCategory' => 'urn:mace:dir:attribute-def:businessCategory',
'c' => 'urn:mace:dir:attribute-def:c',
'cACertificate' => 'urn:mace:dir:attribute-def:cACertificate',
'cNAMERecord' => 'urn:mace:dir:attribute-def:cNAMERecord',
'carLicense' => 'urn:mace:dir:attribute-def:carLicense',
'certificateRevocationList' => 'urn:mace:dir:attribute-def:certificateRevocationList',
'cn' => 'urn:mace:dir:attribute-def:cn',
'co' => 'urn:mace:dir:attribute-def:co',
'commonName' => 'urn:mace:dir:attribute-def:commonName',
'countryName' => 'urn:mace:dir:attribute-def:countryName',
'crossCertificatePair' => 'urn:mace:dir:attribute-def:crossCertificatePair',
'dITRedirect' => 'urn:mace:dir:attribute-def:dITRedirect',
'dSAQuality' => 'urn:mace:dir:attribute-def:dSAQuality',
'dc' => 'urn:mace:dir:attribute-def:dc',
'deltaRevocationList' => 'urn:mace:dir:attribute-def:deltaRevocationList',
'departmentNumber' => 'urn:mace:dir:attribute-def:departmentNumber',
'description' => 'urn:mace:dir:attribute-def:description',
'destinationIndicator' => 'urn:mace:dir:attribute-def:destinationIndicator',
'displayName' => 'urn:mace:dir:attribute-def:displayName',
'distinguishedName' => 'urn:mace:dir:attribute-def:distinguishedName',
'dmdName' => 'urn:mace:dir:attribute-def:dmdName',
'dnQualifier' => 'urn:mace:dir:attribute-def:dnQualifier',
'documentAuthor' => 'urn:mace:dir:attribute-def:documentAuthor',
'documentIdentifier' => 'urn:mace:dir:attribute-def:documentIdentifier',
'documentLocation' => 'urn:mace:dir:attribute-def:documentLocation',
'documentPublisher' => 'urn:mace:dir:attribute-def:documentPublisher',
'documentTitle' => 'urn:mace:dir:attribute-def:documentTitle',
'documentVersion' => 'urn:mace:dir:attribute-def:documentVersion',
'domainComponent' => 'urn:mace:dir:attribute-def:domainComponent',
'drink' => 'urn:mace:dir:attribute-def:drink',
'eduOrgHomePageURI' => 'urn:mace:dir:attribute-def:eduOrgHomePageURI',
'eduOrgIdentityAuthNPolicyURI' => 'urn:mace:dir:attribute-def:eduOrgIdentityAuthNPolicyURI',
'eduOrgLegalName' => 'urn:mace:dir:attribute-def:eduOrgLegalName',
'eduOrgSuperiorURI' => 'urn:mace:dir:attribute-def:eduOrgSuperiorURI',
'eduOrgWhitePagesURI' => 'urn:mace:dir:attribute-def:eduOrgWhitePagesURI',
'eduPersonAffiliation' => 'urn:mace:dir:attribute-def:eduPersonAffiliation',
'eduPersonAssurance' => 'urn:mace:dir:attribute-def:eduPersonAssurance',
'eduPersonEntitlement' => 'urn:mace:dir:attribute-def:eduPersonEntitlement',
'eduPersonNickname' => 'urn:mace:dir:attribute-def:eduPersonNickname',
'eduPersonOrgDN' => 'urn:mace:dir:attribute-def:eduPersonOrgDN',
'eduPersonOrgUnitDN' => 'urn:mace:dir:attribute-def:eduPersonOrgUnitDN',
'eduPersonPrimaryAffiliation' => 'urn:mace:dir:attribute-def:eduPersonPrimaryAffiliation',
'eduPersonPrimaryOrgUnitDN' => 'urn:mace:dir:attribute-def:eduPersonPrimaryOrgUnitDN',
'eduPersonPrincipalName' => 'urn:mace:dir:attribute-def:eduPersonPrincipalName',
'eduPersonScopedAffiliation' => 'urn:mace:dir:attribute-def:eduPersonScopedAffiliation',
'eduPersonTargetedID' => 'urn:mace:dir:attribute-def:eduPersonTargetedID',
'eduPersonUniqueId' => 'urn:mace:dir:attribute-def:eduPersonUniqueId',
'email' => 'urn:mace:dir:attribute-def:email',
'emailAddress' => 'urn:mace:dir:attribute-def:emailAddress',
'employeeNumber' => 'urn:mace:dir:attribute-def:employeeNumber',
'employeeType' => 'urn:mace:dir:attribute-def:employeeType',
'enhancedSearchGuide' => 'urn:mace:dir:attribute-def:enhancedSearchGuide',
'facsimileTelephoneNumber' => 'urn:mace:dir:attribute-def:facsimileTelephoneNumber',
'favouriteDrink' => 'urn:mace:dir:attribute-def:favouriteDrink',
'fax' => 'urn:mace:dir:attribute-def:fax',
'federationFeideSchemaVersion' => 'urn:mace:dir:attribute-def:federationFeideSchemaVersion',
'friendlyCountryName' => 'urn:mace:dir:attribute-def:friendlyCountryName',
'generationQualifier' => 'urn:mace:dir:attribute-def:generationQualifier',
'givenName' => 'urn:mace:dir:attribute-def:givenName',
'gn' => 'urn:mace:dir:attribute-def:gn',
'homePhone' => 'urn:mace:dir:attribute-def:homePhone',
'homePostalAddress' => 'urn:mace:dir:attribute-def:homePostalAddress',
'homeTelephoneNumber' => 'urn:mace:dir:attribute-def:homeTelephoneNumber',
'host' => 'urn:mace:dir:attribute-def:host',
'houseIdentifier' => 'urn:mace:dir:attribute-def:houseIdentifier',
'info' => 'urn:mace:dir:attribute-def:info',
'initials' => 'urn:mace:dir:attribute-def:initials',
'internationaliSDNNumber' => 'urn:mace:dir:attribute-def:internationaliSDNNumber',
'janetMailbox' => 'urn:mace:dir:attribute-def:janetMailbox',
'jpegPhoto' => 'urn:mace:dir:attribute-def:jpegPhoto',
'knowledgeInformation' => 'urn:mace:dir:attribute-def:knowledgeInformation',
'l' => 'urn:mace:dir:attribute-def:l',
'labeledURI' => 'urn:mace:dir:attribute-def:labeledURI',
'localityName' => 'urn:mace:dir:attribute-def:localityName',
'mDRecord' => 'urn:mace:dir:attribute-def:mDRecord',
'mXRecord' => 'urn:mace:dir:attribute-def:mXRecord',
'mail' => 'urn:mace:dir:attribute-def:mail',
'mailPreferenceOption' => 'urn:mace:dir:attribute-def:mailPreferenceOption',
'manager' => 'urn:mace:dir:attribute-def:manager',
'member' => 'urn:mace:dir:attribute-def:member',
'mobile' => 'urn:mace:dir:attribute-def:mobile',
'mobileTelephoneNumber' => 'urn:mace:dir:attribute-def:mobileTelephoneNumber',
'nSRecord' => 'urn:mace:dir:attribute-def:nSRecord',
'name' => 'urn:mace:dir:attribute-def:name',
'norEduOrgAcronym' => 'urn:mace:dir:attribute-def:norEduOrgAcronym',
'norEduOrgNIN' => 'urn:mace:dir:attribute-def:norEduOrgNIN',
'norEduOrgSchemaVersion' => 'urn:mace:dir:attribute-def:norEduOrgSchemaVersion',
'norEduOrgUniqueIdentifier' => 'urn:mace:dir:attribute-def:norEduOrgUniqueIdentifier',
'norEduOrgUniqueNumber' => 'urn:mace:dir:attribute-def:norEduOrgUniqueNumber',
'norEduOrgUnitUniqueIdentifier' => 'urn:mace:dir:attribute-def:norEduOrgUnitUniqueIdentifier',
'norEduOrgUnitUniqueNumber' => 'urn:mace:dir:attribute-def:norEduOrgUnitUniqueNumber',
'norEduPersonBirthDate' => 'urn:mace:dir:attribute-def:norEduPersonBirthDate',
'norEduPersonLIN' => 'urn:mace:dir:attribute-def:norEduPersonLIN',
'norEduPersonNIN' => 'urn:mace:dir:attribute-def:norEduPersonNIN',
'o' => 'urn:mace:dir:attribute-def:o',
'objectClass' => 'urn:mace:dir:attribute-def:objectClass',
'organizationName' => 'urn:mace:dir:attribute-def:organizationName',
'organizationalStatus' => 'urn:mace:dir:attribute-def:organizationalStatus',
'organizationalUnitName' => 'urn:mace:dir:attribute-def:organizationalUnitName',
'otherMailbox' => 'urn:mace:dir:attribute-def:otherMailbox',
'ou' => 'urn:mace:dir:attribute-def:ou',
'owner' => 'urn:mace:dir:attribute-def:owner',
'pager' => 'urn:mace:dir:attribute-def:pager',
'pagerTelephoneNumber' => 'urn:mace:dir:attribute-def:pagerTelephoneNumber',
'pairwise-id' => 'urn:oasis:names:tc:SAML:attribute:pairwise-id',
'personalSignature' => 'urn:mace:dir:attribute-def:personalSignature',
'personalTitle' => 'urn:mace:dir:attribute-def:personalTitle',
'photo' => 'urn:mace:dir:attribute-def:photo',
'physicalDeliveryOfficeName' => 'urn:mace:dir:attribute-def:physicalDeliveryOfficeName',
'pkcs9email' => 'urn:mace:dir:attribute-def:pkcs9email',
'postOfficeBox' => 'urn:mace:dir:attribute-def:postOfficeBox',
'postalAddress' => 'urn:mace:dir:attribute-def:postalAddress',
'postalCode' => 'urn:mace:dir:attribute-def:postalCode',
'preferredDeliveryMethod' => 'urn:mace:dir:attribute-def:preferredDeliveryMethod',
'preferredLanguage' => 'urn:mace:dir:attribute-def:preferredLanguage',
'presentationAddress' => 'urn:mace:dir:attribute-def:presentationAddress',
'protocolInformation' => 'urn:mace:dir:attribute-def:protocolInformation',
'pseudonym' => 'urn:mace:dir:attribute-def:pseudonym',
'registeredAddress' => 'urn:mace:dir:attribute-def:registeredAddress',
'rfc822Mailbox' => 'urn:mace:dir:attribute-def:rfc822Mailbox',
'roleOccupant' => 'urn:mace:dir:attribute-def:roleOccupant',
'roomNumber' => 'urn:mace:dir:attribute-def:roomNumber',
'sOARecord' => 'urn:mace:dir:attribute-def:sOARecord',
'schacCountryOfCitizenship' => 'urn:mace:terena.org:attribute-def:schacCountryOfCitizenship',
'schacCountryOfResidence' => 'urn:mace:terena.org:attribute-def:schacCountryOfResidence',
'schacDateOfBirth' => 'urn:mace:terena.org:attribute-def:schacDateOfBirth',
'schacExpiryDate' => 'urn:mace:terena.org:attribute-def:schacExpiryDate',
'schacGender' => 'urn:mace:terena.org:attribute-def:schacGender',
'schacHomeOrganization' => 'urn:mace:terena.org:attribute-def:schacHomeOrganization',
'schacHomeOrganizationType' => 'urn:mace:terena.org:attribute-def:schacHomeOrganizationType',
'schacMotherTongue' => 'urn:mace:terena.org:attribute-def:schacMotherTongue',
'schacPersonalPosition' => 'urn:mace:terena.org:attribute-def:schacPersonalPosition',
'schacPersonalTitle' => 'urn:mace:terena.org:attribute-def:schacPersonalTitle',
'schacPersonalUniqueCode' => 'urn:mace:terena.org:attribute-def:schacPersonalUniqueCode',
'schacPersonalUniqueID' => 'urn:mace:terena.org:attribute-def:schacPersonalUniqueID',
'schacPlaceOfBirth' => 'urn:mace:terena.org:attribute-def:schacPlaceOfBirth',
'schacProjectMembership' => 'urn:mace:terena.org:attribute-def:schacProjectMembership',
'schacProjectSpecificRole' => 'urn:mace:terena.org:attribute-def:schacProjectSpecificRole',
'schacSn1' => 'urn:mace:terena.org:attribute-def:schacSn1',
'schacSn2' => 'urn:mace:terena.org:attribute-def:schacSn2',
'schacUserPresenceID' => 'urn:mace:terena.org:attribute-def:schacUserPresenceID',
'schacUserPrivateAttribute' => 'urn:mace:terena.org:attribute-def:schacUserPrivateAttribute',
'schacUserStatus' => 'urn:mace:terena.org:attribute-def:schacUserStatus',
'schacYearOfBirth' => 'urn:mace:terena.org:attribute-def:schacYearOfBirth',
'searchGuide' => 'urn:mace:dir:attribute-def:searchGuide',
'secretary' => 'urn:mace:dir:attribute-def:secretary',
'seeAlso' => 'urn:mace:dir:attribute-def:seeAlso',
'serialNumber' => 'urn:mace:dir:attribute-def:serialNumber',
'singleLevelQuality' => 'urn:mace:dir:attribute-def:singleLevelQuality',
'sisSchoolGrade' => 'urn:mace:dir:attribute-def:sisSchoolGrade',
'sisLegalGuardianFor' => 'urn:mace:dir:attribute-def:sisLegalGuardianFor',
'sn' => 'urn:mace:dir:attribute-def:sn',
'st' => 'urn:mace:dir:attribute-def:st',
'stateOrProvinceName' => 'urn:mace:dir:attribute-def:stateOrProvinceName',
'street' => 'urn:mace:dir:attribute-def:street',
'streetAddress' => 'urn:mace:dir:attribute-def:streetAddress',
'subject-id' => 'urn:oasis:names:tc:SAML:attribute:subject-id',
'subtreeMaximumQuality' => 'urn:mace:dir:attribute-def:subtreeMaximumQuality',
'subtreeMinimumQuality' => 'urn:mace:dir:attribute-def:subtreeMinimumQuality',
'supportedAlgorithms' => 'urn:mace:dir:attribute-def:supportedAlgorithms',
'supportedApplicationContext' => 'urn:mace:dir:attribute-def:supportedApplicationContext',
'surname' => 'urn:mace:dir:attribute-def:surname',
'telephoneNumber' => 'urn:mace:dir:attribute-def:telephoneNumber',
'teletexTerminalIdentifier' => 'urn:mace:dir:attribute-def:teletexTerminalIdentifier',
'telexNumber' => 'urn:mace:dir:attribute-def:telexNumber',
'textEncodedORAddress' => 'urn:mace:dir:attribute-def:textEncodedORAddress',
'title' => 'urn:mace:dir:attribute-def:title',
'uid' => 'urn:mace:dir:attribute-def:uid',
'uniqueIdentifier' => 'urn:mace:dir:attribute-def:uniqueIdentifier',
'uniqueMember' => 'urn:mace:dir:attribute-def:uniqueMember',
'userCertificate' => 'urn:mace:dir:attribute-def:userCertificate',
'userClass' => 'urn:mace:dir:attribute-def:userClass',
'userPKCS12' => 'urn:mace:dir:attribute-def:userPKCS12',
'userPassword' => 'urn:mace:dir:attribute-def:userPassword',
'userSMIMECertificate' => 'urn:mace:dir:attribute-def:userSMIMECertificate',
'userid' => 'urn:mace:dir:attribute-def:userid',
'x121Address' => 'urn:mace:dir:attribute-def:x121Address',
'x500UniqueIdentifier' => 'urn:mace:dir:attribute-def:x500UniqueIdentifier',
];
<?php
/**
* This file provides translations from the deprecated schac namespace provided by TERENA, to the new namespace.
*/
if (!defined('SCHAC_OLD_NS')) {
define('SCHAC_OLD_NS', 'urn:mace:terena.org:attribute-def:');
}
if (!defined('SCHAC_NEW_NS')) {
define('SCHAC_NEW_NS', 'urn:schac:attribute-def:');
}
$attributemap = [
SCHAC_OLD_NS.'schacCountryOfCitizenship' => SCHAC_NEW_NS.'schacCountryOfCitizenship',
SCHAC_OLD_NS.'schacCountryOfResidence' => SCHAC_NEW_NS.'schacCountryOfResidence',
SCHAC_OLD_NS.'schacDateOfBirth' => SCHAC_NEW_NS.'schacDateOfBirth',
SCHAC_OLD_NS.'schacExpiryDate' => SCHAC_NEW_NS.'schacExpiryDate',
SCHAC_OLD_NS.'schacGender' => SCHAC_NEW_NS.'schacGender',
SCHAC_OLD_NS.'schacHomeOrganization' => SCHAC_NEW_NS.'schacHomeOrganization',
SCHAC_OLD_NS.'schacHomeOrganizationType' => SCHAC_NEW_NS.'schacHomeOrganizationType',
SCHAC_OLD_NS.'schacMotherTongue' => SCHAC_NEW_NS.'schacMotherTongue',
SCHAC_OLD_NS.'schacPersonalPosition' => SCHAC_NEW_NS.'schacPersonalPosition',
SCHAC_OLD_NS.'schacPersonalTitle' => SCHAC_NEW_NS.'schacPersonalTitle',
SCHAC_OLD_NS.'schacPersonalUniqueCode' => SCHAC_NEW_NS.'schacPersonalUniqueCode',
SCHAC_OLD_NS.'schacPersonalUniqueID' => SCHAC_NEW_NS.'schacPersonalUniqueID',
SCHAC_OLD_NS.'schacPlaceOfBirth' => SCHAC_NEW_NS.'schacPlaceOfBirth',
SCHAC_OLD_NS.'schacProjectMembership' => SCHAC_NEW_NS.'schacProjectMembership',
SCHAC_OLD_NS.'schacProjectSpecificRole' => SCHAC_NEW_NS.'schacProjectSpecificRole',
SCHAC_OLD_NS.'schacSn1' => SCHAC_NEW_NS.'schacSn1',
SCHAC_OLD_NS.'schacSn2' => SCHAC_NEW_NS.'schacSn2',
SCHAC_OLD_NS.'schacUserPresenceID' => SCHAC_NEW_NS.'schacUserPresenceID',
SCHAC_OLD_NS.'schacUserPrivateAttribute' => SCHAC_NEW_NS.'schacUserPrivateAttribute',
SCHAC_OLD_NS.'schacUserStatus' => SCHAC_NEW_NS.'schacUserStatus',
SCHAC_OLD_NS.'schacYearOfBirth' => SCHAC_NEW_NS.'schacYearOfBirth',
];