summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-07-10 20:43:00 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-07-10 21:26:31 +0200
commitebee3543ce30a88ccb631796826b075676680cb9 (patch)
treeac1849c363535b3ea74ac24e41b759b534a6cf74 /apps
parente391108ebc721524b62b0a6b2d770549876985f6 (diff)
downloadnextcloud-server-ebee3543ce30a88ccb631796826b075676680cb9.tar.gz
nextcloud-server-ebee3543ce30a88ccb631796826b075676680cb9.zip
warn and continue gracefully if bcmath is not installed
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/access.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index e3b6566bcf0..1ffe4d236f3 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -1298,6 +1298,12 @@ class Access extends LDAPUtility implements user\IUserTools {
*/
public function convertSID2Str($sid) {
try {
+ if(!function_exists('bcadd')) {
+ \OCP\Util::writeLog('user_ldap',
+ 'You need to install bcmath module for PHP to have support ' .
+ 'for AD primary groups', \OCP\Util::WARN);
+ throw new \Excpetion('missing bcmath module');
+ }
$srl = ord($sid[0]);
$numberSubID = ord($sid[1]);
$x = substr($sid, 2, 6);