Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Protéger l’accès au répertoire /download

Bonjour,

Tout d’abord merci aux développeurs…

Est t’il possible de protéger l’accès au répertoire /download (via une demande d’authentification) ?

J’ai activé l’authentification des agents (linux) pour le répertoire /ocsinventory (via ocsinventory.conf)

  <Location /ocsinventory>

        order deny,allow

        deny from all

        Satisfy Any

        # If you protect this area you have to deal with http_auth_* agent's parameters

        AuthType Basic

        AuthName "OCS Inventory agent area"

        AuthUserFile /etc/apache2/passwd/passwords

        Require user toto

        SetHandler perl-script

        PerlHandler Apache::Ocsinventory

  </Location>

 

Ceci fonction très bien…

 

J’ai voulu faire la même chose pour le répertoire /download

Alias /download /var/lib/ocsinventory-reports/download

    <Directory /var/lib/ocsinventory-reports/download>

        Options Indexes FollowSymLinks MultiViews

        AllowOverride None

        order deny,allow

        deny from all

        Satisfy Any

        # If you protect this area you have to deal with http_auth_* agent's parameters

        AuthType Basic

        AuthName "OCS Inventory agent area"

        AuthUserFile /etc/apache2/passwd/passwords

        Require user toto

    </Directory>

 

Mais dans ce cas les agents ne peuvent plus faire de télédéployement car le fichier d’info n’est plus accessible…

Mes agents utilisent une connexion du type :

ocsinventory-agent --server 192.168.2.11 --user=toto --password=monpass --realm="OCS Inventory agent area"

 

Ce qui marche très bien pour l’inventaire seul, mais les agents ne semble pas s'authentifier quand ils accedent au répertoire download...

Auriez vous une solution, ou ceux-ci n’est t’il pas réalisable ?

Merci d'avance
in OCS Inventory NG server for Unix by (120 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...