How to enable bcmath for ntlm authentication with Exchange 2010 server?

Steps to reproduce

  1. Attempted to setup email server configuration.
  2. Select Authentication Metod NT Lan Manager
  3. Send test email.

Expected behaviour

Test email should be sent to admin account.

Actual behaviour

We get "The BCMath functions must be enabled to use the NTLM authenticator" message.

Server configuration

Linux ucs-4289 4.9.0-ucs104-amd64 #1 SMP Debian 4.9.30-2A~

Web server: Apache 2


PHP version:5.6.30-0+deb8u1

ownCloud version: 10.0.1

Updated from an older ownCloud or fresh install: fresh

Where did you install ownCloud from: VMware Image from

Signing status (ownCloud 9.0 and above):

No errors were found

The content of config/config.php:

**List of activated apps:**

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

**Are you using external storage, if yes which one:** no

**Are you using encryption:** no

**Are you using an external user-backend, if yes which one:** ActiveDirectory

### Client configuration
**Browser:** MS Edge 41.16299.15.0

**Operating system: Windows 10

### Logs

#### Web server error log

Insert your webserver log here

#### ownCloud log (data/owncloud.log)

Insert your ownCloud log here

#### Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

We have OwnCloud 10.0.1 installed with UMC. I am stuck with email connection with our MS Exchange 2010 server. Our server supports AUTH GSSAPI NTLM and we are getting "The BCMath functions must be enabled to use the NTLM authenticator" message with auth metod NT Lan Manager enabled.
Is there any way or we need to find other solution?

Im experiencing the exact same problem. From what I can see the BC Math functions are installed. Any suggestions wrt to how to “enable” them.

First make sure it really is installed:

root@ubuntu1804:~# dpkg -l | grep bcmath
ii  php7.1-bcmath                                   amd64        Bcmath module for PHP

Create a phpinfo page and search for “bcmath” in it. If you can find it, it should look something like this:

This means it is already installed correctly.

Otherwise you will have to run (on a Debian/Ubuntu system) phpenmod bcmath, or look up how to do the equivalent on your distribution. Don’t forget to restart apache afterwards.

I just found out that the phpenmod command doesn’t work if you have multiple versions of PHP installed.
So then you would have to create a symlink from /etc/php/<your PHP version>/apache2/conf.d/20-bcmath.ini to /etc/php/<your PHP version>/mods-available/bcmath.ini manually

1 Like