You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-05-11 15:48:08

Eduard
Member
Registered: 2022-05-11
Posts: 2

Oauth IMAP. Can't create new an authorization

Hi all! I have a problem. I try to connect azure with glpi to authorize users from AD. I installed Oauth IMAP plugin. Added all information frome azure: Client ID, Tenant ID, Client secret. After that i will create new an authorization.
When i clicked on button, i saw nothing. Blank (empty) page with address ../marketplace/oauthimap/front/application.form.php
If F5, then i saw message "Action not available".
Do you know, what is going on?
Thanks!

Offline

#2 2022-05-11 16:53:37

Eduard
Member
Registered: 2022-05-11
Posts: 2

Re: Oauth IMAP. Can't create new an authorization

Solved. I confused tenant ID..

Offline

#3 2022-07-21 08:53:42

montymg
Member
Registered: 2022-07-21
Posts: 5

Re: Oauth IMAP. Can't create new an authorization

hello dear, i am facing the same issue, i checked tenantID Client ID, and Secret, everything is set properly but still getting blank page on
.......httpsmydomain.com//plugins/oauthimap/front/application.form.php

can anyone please advise what can be the issue.

i can see that others are using plugin link as marketplace, but i have installed the plugin manually.

Last edited by montymg (2022-07-21 08:55:30)

Offline

#4 2022-10-21 20:42:36

lotsMateSISMonsI
Member
Registered: 2022-03-31
Posts: 1

Re: Oauth IMAP. Can't create new an authorization

I also ran into this problem while setting up Office 365 Oauth IMAP on a windows server with IIS and php v8.1.(GLPI version 10.0.2) 

When I reviewed the php-errors.log file in files\_log I found the following error :

glpiphplog.CRITICAL *** Uncaught Exception GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https : //curl.haxx.se/libcurl/c/libcurl-errors.html) for https : //login.microsoftonline.com/<tenantid>/v2.0/.well-known/open-id-configuration?appid=<clientid> in <glpi install>\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php at line 211

The solution was to download the cacert.pem file from : curl.haxx.se/ca/cacert.pem to the server and update the php.ini file to point at this file, then restart IIS.
[curl]
curl.cainfo = <path to PHP install>\extras\ssl\cacert.pem

I found two sources to help with this :

github.com/guzzle/guzzle/issues/1935
and
martinsblog.dk/windows-iis-with-php-curl-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate/

Hopefully this helps someone else along the way.

Offline

#5 2023-01-23 22:49:27

Fox350
Member
Registered: 2023-01-23
Posts: 1

Re: Oauth IMAP. Can't create new an authorization

Oh boy!  Thanks verry much for posting, we were totally lost on this one.
Just make a note, many people do post the path without quotes but for sure, if you have space in the path, quotes are neeeded. 
Withour quotes, glpi just stopped working. 
So use this format to the file :
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo = "C:\Program Files (x86)\PHP\v8.1.5\extras\ssl\cacert.pem"
Thanks again guys!

Last edited by Fox350 (2023-01-23 22:50:20)

Offline

Board footer

Powered by FluxBB