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.10.0 available

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

MAC Client Basic Authentication + error 401

Hi together,

we have an ocs inventory server running on debian in version 2.6. Configured with https and basic authentification.

Everything is working fine with Windows Agents but I have troubles to get the MAC OS X clients to work. On client side, i get:

Cannot establish communication : 401 Unauthorized

So on sever side i seen that the client reach the right /ocsinventory path but with a total strange user:

 IPADDRESS- - [07/May/2020:13:50:34 +0200] "POST /ocsinventory HTTP/1.1" 401 5184 "-" "OCS-NG_unified_unix_agent_v2.6.1"
IPADDRESS- \xb2\xd6\xab}\xa7\x1e [07/May/2020:13:50:34 +0200] "POST /ocsinventory HTTP/1.1" 401 714 "-" "OCS-NG_unified_unix_agent_v2.6.1"

I have specified the realm, user and the password in the ocsinventory-agent.cfg in mac os with the following syntax:


realm="OCS Inventory agent area" (like in the server config file on ocs server)

user=USERNAME (plain text)

password=PASSWORD (plain text)


According to the access.log above the user name in plain text isn't recognize wright from an interpreter. Or do need to put it in a special format.



in OCS Inventory NG agent for MacOS X by (180 points)

2 Answers

+1 vote

try adding username and password to the https string of server line.

eg. server=https://username:password@FQDN:443/ocsinventory

Please keep in mind, that username and password will also be stored in the lib/ocsinventory-agent directory.


by (200 points)
0 votes
Hi Frank,

thanks for help. Works like a charm!


by (180 points)
Powered by Question2Answer