Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for emailAddress in subject #461

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add support for email in subject
  • Loading branch information
hesstobi committed Oct 25, 2021
commit ce6006c82647db3605440d1e7d62f3eb119464f2
2 changes: 2 additions & 0 deletions tests/test_piv.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
r"CN=Before\0dAfter,DC=example,DC=net",
# r"1.3.6.1.4.1.1466.0=#04024869", - Not supported.
r"CN=Lu\C4\8Di\C4\87",
(r"CN=James Smith,OU=Sales,L=Redwood Shores,O=OpenLDAP,"
r"ST=California,C=US,[email protected]"),
],
)
def test_parse_rfc4514_string(value):
Expand Down
1 change: 1 addition & 0 deletions ykman/piv.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"STREET": NameOID.STREET_ADDRESS,
"DC": NameOID.DOMAIN_COMPONENT,
"UID": NameOID.USER_ID,
"emailAddress": NameOID.EMAIL_ADDRESS,
}


Expand Down