Skip to content

Add COmanage-agnostic osg-project-usermap.py and share its logic - #31

Closed
CannonLock wants to merge 1 commit into
opensciencegrid:masterfrom
CannonLock:split-project-map
Closed

CannonLock wants to merge 1 commit into
opensciencegrid:masterfrom
CannonLock:split-project-map

Conversation

@CannonLock

Copy link
Copy Markdown

Move the LDAP/Topology lookup, localmap merging, sanity check and output code into a new osg-project-usermap.py that needs only LDAP access. osg-comanage-project-usermap.py now imports that script, sorts each user's groups by COmanage group ID, and reuses the shared writer, so its output is unchanged.

This lets the usermap be generated without COmanage REST API credentials.

Move the LDAP/Topology lookup, localmap merging, sanity check and output code into a new osg-project-usermap.py that needs only LDAP access. osg-comanage-project-usermap.py now imports that script, sorts each user's groups by COmanage group ID, and reuses the shared writer, so its output is unchanged.

This lets the usermap be generated without COmanage REST API credentials.
@CannonLock

Copy link
Copy Markdown
Author

This doesn't need to be merged. I can use it either way.

@williamnswanson

Copy link
Copy Markdown
Collaborator

@brianhlin, If this PR is merged, we'll need to add the new osg_project_usermap.py file to the ospool_access_point.yaml role file in puppet, so that the APs will still be able to generate their Mapfiles.

@CannonLock

Copy link
Copy Markdown
Author

Closing because I have to get the UID from LDAP anyways so I might as well just query directly rather then via this shared script.

@CannonLock CannonLock closed this Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants