meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

User Log in with Outlook/Office 365 #1847

Open jberanek opened 7 years ago

jberanek commented 7 years ago

Hi all,

I just set up mrbs and its working fine so far! The only issue I have is that I'm using the default db authentication, and I can't figure out how to let people create a new user account without an admin creating the account for them. Ideally, the system will be made open to several hundred users so manually creating user accounts is not an option.

I was wondering if it were possible to log in using an external acount, such as with an Office 365 account since everyone who will be using the system has an Office 365 account. I tried changing the config.inc file adding the lines below, but it didn't work and went to a blank screen every time I tried to log in.

$auth["type"] = "imap_php";
$auth["imap_php"]["hostname"] = "outlook.office365.com";
$auth["imap_php"]["port"] = 993;
$auth["imap_php"]["ssl"] = TRUE;

I'd apprecite any help I can get! If login with an external account is not possible, then a solution to allow users to create their own accounts would help too!

Thanks!

Reported by: *anonymous

Original Ticket: mrbs/support-requests/1126

jberanek commented 7 years ago

The 'imap_php' authentication scheme requires that your web server has the 'imap' PHP extension installed and enabled. The blank screen is probably showing when an error occurs trying to use this module. The web server errror log should show this error.

If you're able, you should install/enable the imap extension. I'd suggest the simpler 'imap' authentication scheme. but this doesn't support SSL as is required for Office 365, so won't help you.

Original comment by: jberanek

jberanek commented 7 years ago

Hi John,

Thanks for the help and information! After some trial and error I have discovered that I am unfortunately not able to install/enable the imap extension as the server is being hosted by a free hosting service who have disabled it. In addition, I suspect port 993 may be closed as well, though I have not tested this very thoroughly yet.

Do you have any suggestions or alternatives on how to proceed? Allowing users to create their own account would be sufficient, but I haven't seen any way to do this.

Thank you!

Original comment by: *anonymous