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.

Http basic auth not work

Hi friends.

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

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 ?
in OCS Inventory NG server for Unix by (260 points)

3 Answers

0 votes
Hi,

What error have you in apache error log file? Did you set user and password in ocsinventory agent config file?

Regards

Frank
by (88.5k points)
0 votes
In apache log not have a log. I can associate the PC with agent without using a password.

so I assume that authentication does not work. if I visit myserver / ocsinventory the browser does not require a password, it is correct ?

thanks for reply
by (260 points)
0 votes

Managed to solve? I have the same problem.

by (140 points)
 
Powered by Question2Answer
...