sync-directory.py: a service account instead of the test user #40

Closed
opened 2026-12-01 09:16:59 +00:00 by claude · 1 comment
Owner

scripts/sync-directory.py wrote the team address book as the test user alice, which only exists on dev. Rewrite it.

`scripts/sync-directory.py` wrote the team address book as the test user `alice`, which only exists on dev. Rewrite it.
claude added this to the Platform v1 milestone 2026-12-01 09:16:59 +00:00
Author
Owner

Done, merged into main (infra 1f2f2ae) and run on dev.

  • Writes as directory-sync (seed-lldap.py; groups mail and konbi; DIRECTORY_SYNC_PASSWORD, added to an existing .env by gen-secrets.sh). It gets no card, and install-plugins.py leaves it out of the webmail's directory.
  • As a member of konbi it can read what the team shares through konbi@ (mail, calendar, contacts).
  • Cards are read and saved in pages the server accepts (a team book with more than 500 contacts would have failed), unchanged cards are no longer rewritten, errors say what to run.

Checked: 7 new tests (tests/test_sync_directory.py); on dev the account is created, signs in and sees the team book; two runs: 0 added, 0 updated, 0 removed, 4 members as before.

Done, merged into `main` (infra 1f2f2ae) and run on dev. - Writes as `directory-sync` (`seed-lldap.py`; groups `mail` and `konbi`; `DIRECTORY_SYNC_PASSWORD`, added to an existing `.env` by `gen-secrets.sh`). It gets no card, and `install-plugins.py` leaves it out of the webmail's directory. - As a member of `konbi` it can read what the team shares through konbi@ (mail, calendar, contacts). - Cards are read and saved in pages the server accepts (a team book with more than 500 contacts would have failed), unchanged cards are no longer rewritten, errors say what to run. Checked: 7 new tests (`tests/test_sync_directory.py`); on dev the account is created, signs in and sees the team book; two runs: 0 added, 0 updated, 0 removed, 4 members as before.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
konbi/infra#40
No description provided.