Skip to content

Commit 86233c3

Browse files
Update saml_uri.py
According to https://tools.ietf.org/html/rfc2985 the urn for emailAddress has to be `1.2.840.113549.1.9.1`. In saml_uri.py this is not implemented correctly. The current version uses `PKCS_9+'1'` which equals to `1.2.840.113549.1.9.1.1`. This can be fixed by deleting the trailing '1.' from line 8. This should not cause any side-effects, because the variable `PKCS_9` in combination with `+'1'`.
1 parent 09c36b2 commit 86233c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/attributemaps/saml_uri.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
NOREDUPERSON_OID = "urn:oid:1.3.6.1.4.1.2428.90.1."
66
NETSCAPE_LDAP = "urn:oid:2.16.840.1.113730.3.1."
77
UCL_DIR_PILOT = 'urn:oid:0.9.2342.19200300.100.1.'
8-
PKCS_9 = "urn:oid:1.2.840.113549.1.9.1."
8+
PKCS_9 = "urn:oid:1.2.840.113549.1.9."
99
UMICH = "urn:oid:1.3.6.1.4.1.250.1.57."
1010

1111
MAP = {
@@ -196,4 +196,4 @@
196196
'labeledURI': UMICH+'57',
197197
'uid': UCL_DIR_PILOT+'1'
198198
}
199-
}
199+
}

0 commit comments

Comments
 (0)