flyve-mdm / web-mdm-dashboard

New generation of the Flyve MDM Dashboard
http://flyve.org/web-mdm-dashboard/
GNU General Public License v3.0
84 stars 50 forks source link

Can't login to web-mdm-dashboard with GLPI Credentials #1243

Open swood opened 5 years ago

swood commented 5 years ago

Describe the bug I have a clear installation of GLPI, flyve-mdm and web-mdm-dashboard. I can't login to dashboard with default GLPI login "glpi/glpi".

As I found, the dashboards sends next request to the GLPI:

GET /apirest.php/initSession HTTP/1.1 Accept: / Content-Type: application/json Origin: http://my_server:3000 Referer: http://my_server:3000/ Accept-Language: en-us Host: 192.168.1.5:8070 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15 Authorization: Basic dGVjaDp0ZWNo Accept-Encoding: gzip, deflate Connection: keep-alive

But. From the documentation of GLPI (version 9.2.2) that request should be:

$ curl -X GET \ -H 'Content-Type: application/json' \ -H "Authorization: Basic Z2xwaTpnbHBp" \ -H "App-Token: f7g3csp8mgatg5ebc5elnazakw20i9fyev1qopya7" \ 'http://path/to/glpi/apirest.php/initSession'

Why it happened and what I forgot in my dashboard configuration. All required plugins I installed: Flyve MDM Demo Flyve Mobile Device Management FusionInventory

Guilhermehdo commented 3 years ago

I need help please, I have the same problem. Laragon Server, PHP 7.30 GLPI 9.3.3