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.

Cannot change admin password nor create a user

I've just installed ver 2.2, I create new user from the web interface, nothing happens. I try to change the admin password, no luck. Rest everything else is ok, I can add systems to the inventory, glpi is also functioning well, can import from ocs.
in OCS Inventory NG server for Unix by (120 points)

2 Answers

0 votes
Hi,

Have you some errors into apache error_log and/or in mysql.log files when you change the admin password or create a new user?

Regards

Frank
by (88.5k points)
Hi Frank,

I see this on the error log

Mon May 09 11:31:27.319862 2016] [:error] [pid 19648] [client 10.1.1.101:50559] PHP Fatal error:  Call to undefined function password_hash() in /usr/share/ocsinventory-reports/ocsreports/require/function_users.php on line 126, referer: http://10.1.1.11/ocsreports/index.php?function=admin_add_user

regards

Sajiv
Hi,

php-mcrypt-5.4.16-4.el7.x86_64 is installed. OS: CentOS 7.2. SElinux disabled.

OCSNG_UNIX_SERVER-2.2 from the website was installed (not using rpm)

regards

Sajiv
0 votes
Hi

It seems that php-mcrypt library is not installed. If no install it then restart apache.

Regards

Frank
by (88.5k points)

phpinfo output:

mcrypt

mcrypt supportenabled
mcrypt_filter supportenabled
Version2.5.8
Api No20021217
Supported cipherscast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes
Supported modescbc cfb ctr ecb ncfb nofb ofb stream

Hi Frank,

It seems to be a bug. It's seems I have to use an older version of php < 5.4

https://github.com/OCSInventory-NG/OCSInventory-ocsreports/issues/61

regards

Sajiv
 
Powered by Question2Answer
...