summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-06-12 13:32:58 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-06-27 18:49:11 +0200
commitef7ab856f6d9a1f1c522eb36cb1ffcfa7c9730c7 (patch)
tree2b079380eb449c3fdd7b66a3d4fa52796c9f3b0f /apps/user_ldap/lib
parentdf7678f01ee82cd5fd0d0e985ace5b6dca0d046f (diff)
downloadnextcloud-server-ef7ab856f6d9a1f1c522eb36cb1ffcfa7c9730c7.tar.gz
nextcloud-server-ef7ab856f6d9a1f1c522eb36cb1ffcfa7c9730c7.zip
fix instantiation of Access class
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r--apps/user_ldap/lib/jobs.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/jobs.php b/apps/user_ldap/lib/jobs.php
index 19c041e4db4..47e536f8f64 100644
--- a/apps/user_ldap/lib/jobs.php
+++ b/apps/user_ldap/lib/jobs.php
@@ -160,8 +160,14 @@ class Jobs extends \OC\BackgroundJob\TimedJob {
$ldapWrapper = new LDAP();
if(count($configPrefixes) === 1) {
//avoid the proxy when there is only one LDAP server configured
+ $userManager = new user\Manager(
+ \OC::$server->getConfig(),
+ new FilesystemHelper(),
+ new LogWrapper(),
+ \OC::$server->getAvatarManager(),
+ new \OCP\Image());
$connector = new Connection($ldapWrapper, $configPrefixes[0]);
- $ldapAccess = new Access($connector, $ldapWrapper);
+ $ldapAccess = new Access($connector, $ldapWrapper, $userManager);
self::$groupBE = new \OCA\user_ldap\GROUP_LDAP($ldapAccess);
} else {
self::$groupBE = new \OCA\user_ldap\Group_Proxy($configPrefixes, $ldapWrapper);