From 6d64d7ec3fb64d6b2f196d4008f59b64e5a50446 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 27 Mar 2014 18:01:14 +0100 Subject: LDAP: put out fetching of user meta data into a fully tested class of its own and update them (mail, quota, etc.) directly after mapping. Fixes #7785 properly on master --- apps/user_ldap/appinfo/app.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/user_ldap/appinfo/app.php') diff --git a/apps/user_ldap/appinfo/app.php b/apps/user_ldap/appinfo/app.php index c2cd295523e..b62f205a627 100644 --- a/apps/user_ldap/appinfo/app.php +++ b/apps/user_ldap/appinfo/app.php @@ -26,8 +26,14 @@ OCP\App::registerAdmin('user_ldap', 'settings'); $configPrefixes = OCA\user_ldap\lib\Helper::getServerConfigurationPrefixes(true); $ldapWrapper = new OCA\user_ldap\lib\LDAP(); if(count($configPrefixes) === 1) { + $ocConfig = \OC::$server->getConfig(); + $userManager = new OCA\user_ldap\lib\user\Manager($ocConfig, + new OCA\user_ldap\lib\FilesystemHelper(), + new OCA\user_ldap\lib\LogWrapper(), + new \OCP\Image(), + \OC::$server->getAvatarManager()); $connector = new OCA\user_ldap\lib\Connection($ldapWrapper, $configPrefixes[0]); - $ldapAccess = new OCA\user_ldap\lib\Access($connector, $ldapWrapper); + $ldapAccess = new OCA\user_ldap\lib\Access($connector, $ldapWrapper, $userManager); $userBackend = new OCA\user_ldap\USER_LDAP($ldapAccess); $groupBackend = new OCA\user_ldap\GROUP_LDAP($ldapAccess); } else if(count($configPrefixes) > 1) { -- cgit v1.2.3