2021-10-26 21:16:10 +02:00
2021-10-26 21:16:10 +02:00
2021-10-26 20:59:27 +02:00
2021-10-26 20:59:27 +02:00
2021-10-26 21:16:10 +02:00

dept-staff

A small php script for staff to fetch a list of email addresses to all colleagues at their department at SU.

It assumes some things:

  • All departments have a corresponding LDAP group named 'something-staff'
  • All staff at a department is in the group
  • Nobody has more than one -staff group

I don't know if any of the above is true, so proceed with caution.

The script only allows staff to fetch lists. This is controlled by looking at the logged in user's eduPersonAffiliation values in SUKAT.

Requirements

  • A php capable web server. I run apache with php-fpm.
  • A php environment with LDAP support. The Debian ldap package is php-ldap.
  • Shibboleth configured in the web server.
Description
Fetch a list of all email addresses of staff in your own department
Readme 22 KiB
Languages
PHP 100%