Wiki » History » Version 2

« Previous - Version 2/5 (diff) - Next » - Current version
ymolinet, 01/04/2014 09:04 AM


Exemple de configuration Apache

Le module Apache mod_authn_dbd doit être activé sur le serveur : a2enmod mod_authn_dbd.
Vous devez créer un utilisateur dans MySQL disposant uniquement d'un droit de lecture sur la table glpi_plugin_authapachedbd_users.

DBDriver mysql
DBDParams "host=monip port=3306 dbname=dbglpi user=userglpi pass=passdbglpi"
DBDExptime 300
DBDMin 1
DBDMax 10

<Directory "/var/www/web">
AuthType basic
AuthName "Registered User"
AuthBasicProvider dbd
AuthDBDUserPWQuery "SELECT glpi_plugin_apacheauthdbd_users.password FROM glpi_plugin_apacheauthdbd_users INNER JOIN glpi_users ON (glpi_users.id = glpi_plugin_apacheauthdbd_users.users_id AND glpi_users.is_active=1) WHERE glpi_users.name=%s AND glpi_plugin_apacheauthdbd_users.auth=1"
Require valid-user
</Directory>