diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-01-06 17:50:06 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-01-06 17:50:06 +0100 |
commit | e724b78694cb17c7a3ff4427ae103b01baa4688c (patch) | |
tree | 21ad2d4a24d1e4e3a8da5e5d0ee6f1dd8ff40cf1 /apps/user_ldap/lib/jobs.php | |
parent | 61ed363f820a3b25b68289ed2c03ff5e5edfed91 (diff) | |
download | nextcloud-server-e724b78694cb17c7a3ff4427ae103b01baa4688c.tar.gz nextcloud-server-e724b78694cb17c7a3ff4427ae103b01baa4688c.zip |
smaller fixes: coding style, PHPdoc, typos and few for DI
Diffstat (limited to 'apps/user_ldap/lib/jobs.php')
-rw-r--r-- | apps/user_ldap/lib/jobs.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/jobs.php b/apps/user_ldap/lib/jobs.php index 391a10d31f8..e8e6df0b9d0 100644 --- a/apps/user_ldap/lib/jobs.php +++ b/apps/user_ldap/lib/jobs.php @@ -24,6 +24,7 @@ namespace OCA\user_ldap\lib; use OCA\User_LDAP\Mapping\GroupMapping; +use OCA\User_LDAP\Mapping\UserMapping; class Jobs extends \OC\BackgroundJob\TimedJob { static private $groupsFromDB; @@ -172,6 +173,9 @@ class Jobs extends \OC\BackgroundJob\TimedJob { $connector = new Connection($ldapWrapper, $configPrefixes[0]); $ldapAccess = new Access($connector, $ldapWrapper, $userManager); $groupMapper = new GroupMapping(\OC::$server->getDatabaseConnection()); + $userMapper = new UserMapping(\OC::$server->getDatabaseConnection()); + $ldapAccess->setGroupMapper($groupMapper); + $ldapAccess->setUserMapper($userMapper); self::$groupBE = new \OCA\user_ldap\GROUP_LDAP($ldapAccess); } else { self::$groupBE = new \OCA\user_ldap\Group_Proxy($configPrefixes, $ldapWrapper); |