meeting-room-booking-system / mrbs-code

MRBS application code
Other
127 stars 63 forks source link

ldap setting with mrbs #2964

Open jberanek opened 3 years ago

jberanek commented 3 years ago

I found article which about ldap setting with mrbs, but follow the guidance , it can not work. I add ldap set in systemdefaults.inc.php, is there suggestion for ldap setting trouble shooting? Thanks a lot.

Reported by: ektrontek

Original Ticket: mrbs/support-requests/2273

jberanek commented 3 years ago

Try setting $ldap_debug = true;in your config file to get some debug information which will appear in your PHP error log.

Original comment by: campbell-m

jberanek commented 3 years ago

I can not login by ldap account ,it does not have error message.Thanks a lot.

Original comment by: ektrontek

jberanek commented 3 years ago

Have you got $auth['type'] = 'ldap'; set in your config file? If so you should see debug output in your PHP error log.

Original comment by: campbell-m

jberanek commented 3 years ago

It show message below: (php7.0 , ubuntu 16.04) ERROR: PHP's 'ldap' extension is not installed/enabled. Please check your MRBS and web server configurations.

Original comment by: ektrontek

jberanek commented 3 years ago

Yes, what the error message is saying is that PHP on your server does not have the 'ldap' extension installed or enabled. See https://www.php.net/manual/en/book.ldap.php.

Original comment by: campbell-m

jberanek commented 3 years ago

I have try to enable ldap setting at /etc/php/7.0/apache2/php.ini, but it still not work. extension = php_ldap.dll extension=php_mbstring.dll

Original comment by: ektrontek

jberanek commented 3 years ago

Those settings only apply to Windows servers. For Ubuntu you might want to look at this post.

Original comment by: campbell-m

jberanek commented 3 years ago

Thanks a lot.It work normally.

On Mon, 11 Jan 2021 at 23:22, Campbell Morrison < cimorrison@users.sourceforge.net> wrote:

Those settings only apply to Windows servers. For Ubuntu you might want to look at this post https://stackoverflow.com/questions/39786114/how-to-enable-ldap-with-php-7-0-in-ubuntu-server .

Status: open Group: Created: Sat Jan 09, 2021 02:50 PM UTC by Hsu Yao Chang Last Updated: Mon Jan 11, 2021 02:10 PM UTC Owner: nobody

I found article which about ldap setting with mrbs, but follow the guidance , it can not work. I add ldap set in systemdefaults.inc.php, is there suggestion for ldap setting trouble shooting? Thanks a lot.

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mrbs/support-requests/2273/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

Original comment by: ektrontek

Attachments: https://sourceforge.net/p/mrbs/support-requests/_discuss/thread/720aaa3bf9/0187/3fbb/attachment/alternate