Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN contacts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN contacts
Commits
b28c8659
Commit
b28c8659
authored
3 months ago
by
Davide Vaghetti
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'master'
Master See merge request
!8
parents
6c6df71e
8212b741
Branches
master
No related tags found
1 merge request
!8
Master
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+31
-2
31 additions, 2 deletions
README.md
identity_federations_security_contacts.py
+4
-3
4 additions, 3 deletions
identity_federations_security_contacts.py
with
35 additions
and
5 deletions
README.md
+
31
−
2
View file @
b28c8659
...
...
@@ -10,7 +10,7 @@ Script name :`identity_federations_contacts.py`
This script consume the eduGAIN API to retrieve the details of all the eduGAIN identity
federations and parse it to create a list of contacts per each federation in CSV format. This list will be printed to stdout.
CSV Format:
Output (
CSV Format
)
:
```
FEDERATION,COUNTRIES,SECURITY CONTACT,FEDERATION CONTACT
...
...
@@ -40,7 +40,7 @@ Script: `entity_details.py`
This script will print out some details about a single entity or a list of entities
passed as a list of entityIDs.
CSV Format:
Output (
CSV Format
)
:
```
entityID,FederationName,RegistrationAuthority,OrganizationName,TechnicalContact,SupportContact,AdministrativeContact
...
...
@@ -73,4 +73,33 @@ Examples
./entity_details.py -e idp_list -f edugain-v2.xml
```
## Entities Search
Script:
`entity_search.py`
This script will search entities in a metadata aggregate by their certificates' SHA256 fingerprint
and it will output the entityID(s) in case of matches.
```
usage: entity_search.py [-h] [-s S] [-f F] [-u U]
Search for an entity in a metadata aggregate (default to eduGAIN metadata).
options:
-h, --help show this help message and exit
-s S search entity by the sha256 hash S
-f F load metadata from file F
-u U download metadata from url U (default to https://mds.edugain.org/edugain-v2.xml)
Output (String): `entityID`
Examples
- Search an entity by the SHA256 hash of its certificate in the eduGAIN metadata:
./entity_search.py -s SHA256HASH_STRING
- Search an entity by the SHA256 hash of its certificate using local metadata file:
./entity_details.py -s SHA256HASH_STRING -f edugain-v2.xml
```
This diff is collapsed.
Click to expand it.
identity_federations_security_contacts.py
+
4
−
3
View file @
b28c8659
...
...
@@ -15,6 +15,7 @@ feds_dict = feds.json()
print
(
'
#NAME,EMAIL
'
)
for
fed
in
feds_dict
:
if
'
security_contact
'
in
feds_dict
[
fed
]:
if
'
mail
'
in
feds_dict
[
fed
][
'
security_contact
'
]:
print
(
f
"
{
fed
}
,
{
feds_dict
[
fed
][
'
security_contact
'
][
'
mail
'
][
'
value
'
]
}
"
)
if
feds_dict
[
fed
][
'
status
'
]
==
'
6
'
:
if
'
security_contact
'
in
feds_dict
[
fed
]:
if
'
mail
'
in
feds_dict
[
fed
][
'
security_contact
'
]:
print
(
f
"
{
fed
}
,
{
feds_dict
[
fed
][
'
security_contact
'
][
'
mail
'
][
'
value
'
]
}
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment