# ldap.gv.at definitions as specified in:
# http://www.ref.gv.at/AG-IZ-PVP2-Version-2-1-0-2.2754.0.html
LDAPGVAT_OID = 'urn:oid:1.2.40.0.10.2.1.1.'

UCL_DIR_PILOT = 'urn:oid:0.9.2342.19200300.100.1.'
X500ATTR_OID = 'urn:oid:2.5.4.'
LDAPGVAT_UCL_DIR_PILOT = UCL_DIR_PILOT
LDAPGVAT_X500ATTR_OID = X500ATTR_OID
NETSCAPE_LDAP = 'urn:oid:2.16.840.1.113730.3.1.'
PKCS_9 = 'urn:oid:1.2.840.113549.1.9.1.'
SCHAC = 'urn:oid:1.3.6.1.4.1.25178.1.2.'
SIS = 'urn:oid:1.2.752.194.10.2.'
UMICH = 'urn:oid:1.3.6.1.4.1.250.1.57.'

# openosi-0.82.schema http://www.openosi.org/osi/display/ldap/Home
OPENOSI_OID = 'urn:oid:1.3.6.1.4.1.27630.2.1.1.'


MAP = {
    'identifier': 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
    'fro': {
        NETSCAPE_LDAP+'39': 'preferredLanguage',
        NETSCAPE_LDAP+'241': 'displayName',
        PKCS_9+'1': 'email',
        SCHAC+'2': 'gender',
        UCL_DIR_PILOT+'1': 'uid',
        UCL_DIR_PILOT+'3': 'mail',
        X500ATTR_OID+'3': 'cn',
        X500ATTR_OID+'4': 'sn',
        X500ATTR_OID+'6': 'c',
        X500ATTR_OID+'7': 'l',
        X500ATTR_OID+'8': 'st',
        X500ATTR_OID+'9': 'street',
        X500ATTR_OID+'10': 'o',
        X500ATTR_OID+'11': 'ou',
        X500ATTR_OID+'12': 'title',
        X500ATTR_OID+'16': 'postalAddress',
        X500ATTR_OID+'17': 'postalCode',
        X500ATTR_OID+'18': 'postOfficeBox',
        X500ATTR_OID+'20': 'telephoneNumber',
        X500ATTR_OID+'42': 'givenName',
        'http://schemas.wko.at/ws/2014/02/identity/claims/redirect': 'wkis_redirect',
        'urn:oid:1.3.88': 'gln',
        'http://wirtschaftsportalverbund.at/ns/identity/claims/2016/04/authenticationClass': 'authenticationClass',
        'http://wirtschaftsportalverbund.at/ns/identity/claims/2016/04/registrationClassOrg': 'registrationClassOrg',
        'http://wirtschaftsportalverbund.at/ns/identity/claims/2016/04/registrationClassUser': 'registrationClassUser',
        'http://schemas.wko.at/ws/2014/06/identity/claims/possiblerole': 'PossibleRoles',
        '1.2.40.0.10.2.1.1.261.100': 'orgSourcePin',
    },
    'to': {
        'c': X500ATTR_OID+'6',
        'cn': X500ATTR_OID+'3',
        'displayName': NETSCAPE_LDAP+'241',
        'email': PKCS_9+'1',
        'gender': SCHAC+'2',
        'givenName': X500ATTR_OID+'42',
        'initials': X500ATTR_OID+'43',
        'l': X500ATTR_OID+'7',
        'mail': UCL_DIR_PILOT+'3',
        'o': X500ATTR_OID+'10',
        'ou': X500ATTR_OID+'11',
        'owner': X500ATTR_OID+'32',
        'physicalDeliveryOfficeName': X500ATTR_OID+'19',
        'postOfficeBox': X500ATTR_OID+'18',
        'postalAddress': X500ATTR_OID+'16',
        'postalCode': X500ATTR_OID+'17',
        'preferredLanguage': NETSCAPE_LDAP+'39',
        'sn': X500ATTR_OID+'4',
        'st': X500ATTR_OID+'8',
        'street': X500ATTR_OID+'9',
        'telephoneNumber': X500ATTR_OID+'20',
        'title': X500ATTR_OID+'12',
        'uid': UCL_DIR_PILOT+'1',
        'wkis_redirect': 'http://schemas.wko.at/ws/2014/02/identity/claims/redirect',
        'gln': 'urn:oid:1.3.88',
        'authenticationClass': 'http://wirtschaftsportalverbund.at/ns/identity/claims/2016/04/authenticationClass',
        'registrationClassOrg': 'http://wirtschaftsportalverbund.at/ns/identity/claims/2016/04/registrationClassOrg',
        'registrationClassUser': 'http://wirtschaftsportalverbund.at/ns/identity/claims/2016/04/registrationClassUser',
        'PossibleRoles': 'http://schemas.wko.at/ws/2014/06/identity/claims/possiblerole',
        'orgSourcePin': '1.2.40.0.10.2.1.1.261.100',
    }
}

