Quantcast
Channel: Ocsinventory Q&A - Recent questions without answers
Viewing all articles
Browse latest Browse all 4609

Auth on /ocsinventory not work

$
0
0
Have a problem with my new ocs server i can not activate basic auth for agent in /ocsinventory directory.

My os is Ubuntu 16.04

My ocs version are the 2.4

In the apache log  not view an error but the agent send data to my ocs server without authentication, is a problem for me with the ocs inventory server exposed on the internet.

My z-ocsinventory-server.conf is

<Location /ocsinventory>
        <IfModule mod_authz_core.c>
      # Apache 2.4
      Require all granted
        </IfModule>
        <IfModule !mod_authz_core.c>
      # Apache 2.2
          order deny,allow
          allow from all
        </IfModule>
        # 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/.htpasswd
        Require valid-user
        SetHandler perl-script
        PerlHandler Apache::Ocsinventory
  </Location>

Please help me ?

Viewing all articles
Browse latest Browse all 4609

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>