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

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

Keep getting 'User not registered' after installing ocs and trying to log in

Hi,

I have recently installed OCS Inventory and have been able to access the console once. I don't really know why I can't access it anymore.

When I try to log-in with username: admin and password: admin after installing the database i keep getting : "User not registered".

I have tried to find solutions on the web but I can't seem to find any that work for me!

Any ideas?

Kind regards,

Jan
asked in Administrative console by (120 points)

2 Answers

+2 votes
Hello,

I have the same issue. Mysql user/paswd/database are correct in /etc/apache2/sites-enabled/z-ocsinventory-server.conf & in /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php.

However, when browsing the database structure, I did not come across a table 'operator'.

I included it like so:

CREATE TABLE `operators` (
  `ID` varchar(255) NOT NULL DEFAULT '',
  `FIRSTNAME` varchar(255) DEFAULT NULL,
  `LASTNAME` varchar(255) DEFAULT NULL,
  `PASSWD` varchar(50) DEFAULT NULL,
  `ACCESSLVL` int(11) DEFAULT NULL,
  `COMMENTS` text,
  `NEW_ACCESSLVL` varchar(255) DEFAULT NULL,
  `EMAIL` varchar(255) DEFAULT NULL,
  `USER_GROUP` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `operators` (`ID`, `FIRSTNAME`, `LASTNAME`, `PASSWD`, `ACCESSLVL`, `COMMENTS`, `NEW_ACCESSLVL`, `EMAIL`, `USER_GROUP`) VALUES
('admin', 'Jord', 'WEGGE', '21232f297a57a5a743894a0e4a801fc3', 1, 'Default administrator account', 'sadmin', 'jwegge@aquabio.be', '');

Where the hash is an md5 of 'admin'.

Does OCS 2.2 uberhaupt still uses mysql for its users?

Thanks in advance.

Using ubuntu 14.04.4 x64 and OCS from OCSNG_UNIX_SERVER-2.2.tar.gz

Regards,

Jord
answered by (180 points)
0 votes
i followed the video on :

https://www.youtube.com/watch?v=IjwURVRX_Y0&t=3364s

at 52:42, you'll see the code CHMOD 775 .

try these two codes.. instantly worked for me !:)
answered by (250 points)
 
Powered by Question2Answer
...