20 lines
716 B
Markdown
20 lines
716 B
Markdown
# 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.
|
|
|