Skip to content

add group owner to LDAP schema, change objectClass#736

Draft
simonLeary42 wants to merge 12 commits into
mainfrom
group-owner
Draft

add group owner to LDAP schema, change objectClass#736
simonLeary42 wants to merge 12 commits into
mainfrom
group-owner

Conversation

@simonLeary42
Copy link
Copy Markdown
Member

@simonLeary42 simonLeary42 commented May 27, 2026

The new general-purpose xGroup objectClass can be used for Coldfront allocation groups as well as PI groups. Unlike a PI group, the owner of a Coldfront allocation group cannot be derived from the group name. ownerUid provides a standard way for the piutils CLI tool to determine which users should have permissions over a directory.

In the future, we could use ownerUid to let one user be the owner of multiple PI groups, removing the need for the dummy course group PIs.

add space

no newlines allowed

worker set ownerUid

avoid weird formatting with -1

refactor functions for customizable filter

add changelog

limit worker to just setting ownerUid

restore file

fixup objectClass for all PI groups, even disabled ones

NON_DISABLED, INCLUDE_DISABLED

typo

remove CLI
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the LDAP schema to support storing an explicit group owner, introduces a new general-purpose unityGroup objectClass, and updates newly-created PI groups to use unityGroup instead of the deprecated piGroup.

Changes:

  • Add ownerUid attribute and unityGroup objectClass to the LDAP schema; mark piGroup as deprecated.
  • Update PI group creation to use unityGroup and persist owneruid on new groups.
  • Add a migration worker and changelog instructions to backfill ownerUid for existing PI groups.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
workers/setup-pi-group-owners.php New worker intended to populate ownerUid for existing PI groups.
tools/docker-dev/identity/account-portal-schema.ldif Adds ownerUid attribute and new unityGroup objectClass; deprecates piGroup.
resources/lib/UnityGroup.php Creates new groups with unityGroup and sets owneruid; minor string math cleanup.
CHANGELOG.md Adds 1.8 → 1.9 LDAP migration steps for the schema/objectClass transition and owner backfill.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread workers/setup-pi-group-owners.php
Comment thread CHANGELOG.md Outdated
@simonLeary42 simonLeary42 requested a review from Copilot June 2, 2026 13:45
@simonLeary42 simonLeary42 changed the title add group owner to LDAP schema, switch piGroup to unityGroup add group owner to LDAP schema, change objectClass Jun 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Comment thread tools/docker-dev/identity/account-portal-schema.ldif
Comment thread tools/docker-dev/identity/account-portal-schema.ldif
Comment thread workers/setup-pi-group-owners.php
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