fd64ac4d24
add mail/ command alongside search/ |
||
---|---|---|
css | ||
fonts | ||
img | ||
js | ||
templates | ||
.gitignore | ||
Makefile | ||
README.md | ||
config-local.php-dist | ||
config-srihashes.php | ||
config.php | ||
constants.php | ||
contribute.json | ||
country_codes.php | ||
edit.php | ||
faces.php | ||
favicon.ico | ||
functions.php | ||
index.php | ||
init.php | ||
office_cities.php | ||
opensearch.xml | ||
output-html.inc | ||
output-json.inc | ||
output-vcard.inc | ||
output.inc | ||
pic.php | ||
preprocessors-attr.inc | ||
search.php | ||
srihash_files.txt | ||
tree.php | ||
workday_location_map.php |
README.md
Phonebook
Mozilla's internal phonebook app.
Installation
- Clone, host on a local, PHP-enabled server, run.
- Optional:
cp config-local.php-dist config-local.php
and tweak as needed
Note: The app requires LDAP server access. You probably need a Mozilla-internal VPN connection up and running. Without, you can't currently develop on Phonebook. You can download your VPN certificate at login.mozilla.com.
Apache, Authentication, and LDAP
Previous versions of the app authenticated twice - once to Apache (mod_authnz_ldap
), and then again to PHP itself. This is not compatible with more complex auth methods (mod_auth_mellon
), which set REMOTE_USER
without providing a password for LDAP use.
The app now trusts that Apache is configured with require valid-user
. If REMOTE_USER
is not set, the app assumes something has gone wrong and refuses to proceed. The app admin is responsible for configuring Apache with a valid auth handler.
This should continue to work correctly under both the classic mod_authnz_ldap
and the modern mod_auth_mellon
methods, but please pay especial attention to this in future testing.
-- 2016-Apr (atoll)
Contributing
To contribute, file bugs in Bugzilla and use GitHub for code review:
- Bugs in Bugzilla: Webtools :: Phonebook
- Code via github pull request
SRI hashes
When committing changes to files listed in srihash_files.txt
, please also run make sri
and include the resulting autogenerated config-srihashes.php
in the same commit. This ensures that sites with SRI enabled (ENABLE_SRIHASH
set to true
in config-local.php-dist
) continue working correctly.