| 1 |
Bugzilla |
| 2 |
======== |
| 3 |
|
| 4 |
|image0| |
| 5 |
|
| 6 |
Presentation |
| 7 |
------------ |
| 8 |
|
| 9 |
`Bugzilla <http://www.bugzilla.org>`__ is server software designed to |
| 10 |
help you manage software development. |
| 11 |
|
| 12 |
Bugzilla can authenticate a user with HTTP headers, and auto-create its |
| 13 |
account with a few information: |
| 14 |
|
| 15 |
- User ID |
| 16 |
- Email |
| 17 |
- Real name |
| 18 |
|
| 19 |
Configuration |
| 20 |
------------- |
| 21 |
|
| 22 |
Bugzilla administration |
| 23 |
~~~~~~~~~~~~~~~~~~~~~~~ |
| 24 |
|
| 25 |
In Bugzilla administration interface, go in ``Parameters`` » |
| 26 |
``User authentication`` |
| 27 |
|
| 28 |
Then set: |
| 29 |
|
| 30 |
- **auth_env_id**: HTTP_AUTH_USER |
| 31 |
- **auth_env_email**: HTTP_AUTH_MAIL |
| 32 |
- **auth_env_realname**: HTTP_AUTH_CN |
| 33 |
- **user_info_class**: Env or Env,CGI |
| 34 |
|
| 35 |
Bugzilla virtual host |
| 36 |
~~~~~~~~~~~~~~~~~~~~~ |
| 37 |
|
| 38 |
Configure Bugzilla virtual host like other |
| 39 |
:doc:`protected virtual host<../configvhost>`. |
| 40 |
|
| 41 |
- For Apache: |
| 42 |
|
| 43 |
.. code-block:: apache |
| 44 |
|
| 45 |
<VirtualHost *:80> |
| 46 |
ServerName bugzilla.example.com |
| 47 |
|
| 48 |
PerlHeaderParserHandler Lemonldap::NG::Handler |
| 49 |
|
| 50 |
... |
| 51 |
|
| 52 |
</VirtualHost> |
| 53 |
|
| 54 |
- For Nginx: |
| 55 |
|
| 56 |
.. code-block:: nginx |
| 57 |
|
| 58 |
server { |
| 59 |
listen 80; |
| 60 |
server_name bugzilla.example.com; |
| 61 |
root /path/to/application; |
| 62 |
# Internal authentication request |
| 63 |
location = /lmauth { |
| 64 |
internal; |
| 65 |
include /etc/nginx/fastcgi_params; |
| 66 |
fastcgi_pass unix:/var/run/llng-fastcgi-server/llng-fastcgi.sock; |
| 67 |
# Drop post data |
| 68 |
fastcgi_pass_request_body off; |
| 69 |
fastcgi_param CONTENT_LENGTH ""; |
| 70 |
# Prevent attacks on older Nginx versions (<1.29.5) |
| 71 |
fastcgi_param HTTP_HOST $host; |
| 72 |
# Keep original request (LL::NG server will receive /lmauth) |
| 73 |
fastcgi_param X_ORIGINAL_URI $original_uri; |
| 74 |
} |
| 75 |
|
| 76 |
# Client requests |
| 77 |
location / { |
| 78 |
auth_request /lmauth; |
| 79 |
set $original_uri $uri$is_args$args; |
| 80 |
auth_request_set $lmremote_user $upstream_http_lm_remote_user; |
| 81 |
auth_request_set $lmlocation $upstream_http_location; |
| 82 |
error_page 401 $lmlocation; |
| 83 |
try_files $uri $uri/ =404; |
| 84 |
|
| 85 |
... |
| 86 |
|
| 87 |
include /etc/lemonldap-ng/nginx-lua-headers.conf; |
| 88 |
} |
| 89 |
location / { |
| 90 |
try_files $uri $uri/ =404; |
| 91 |
} |
| 92 |
} |
| 93 |
|
| 94 |
Bugzilla virtual host in Manager |
| 95 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 96 |
|
| 97 |
Go to the Manager and :doc:`create a new virtual host<../configvhost>` |
| 98 |
for Bugzilla. |
| 99 |
|
| 100 |
Configure the :ref:`rules<rules>`. |
| 101 |
|
| 102 |
Configure the following :ref:`header<headers>`. |
| 103 |
|
| 104 |
- **Auth-User**: $uid |
| 105 |
- **Auth-Mail**: $mail |
| 106 |
- **Auth-Cn**: $cn |
| 107 |
|
| 108 |
.. |image0| image:: /applications/bugzilla_logo.png |
| 109 |
:class: align-center |
| 110 |
|