diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-02-20 21:34:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-20 21:34:55 +0100 |
commit | a4266f59ae68062988487cc972ba00f71e692920 (patch) | |
tree | 85a7757b0738e22af29f45df57fe5fc9980408d0 /apps/user_ldap/lib/Migration/UUIDFixUser.php | |
parent | c20409373b95b04d449cc60aea15ac8113664825 (diff) | |
parent | ce97ab92c63bd639b870a68e18c8e2419a2e3c8f (diff) | |
download | nextcloud-server-a4266f59ae68062988487cc972ba00f71e692920.tar.gz nextcloud-server-a4266f59ae68062988487cc972ba00f71e692920.zip |
Merge pull request #3521 from nextcloud/ldap-fix-uuid-attr-detection
Fix Borken UUID Attribute Detection
Diffstat (limited to 'apps/user_ldap/lib/Migration/UUIDFixUser.php')
-rw-r--r-- | apps/user_ldap/lib/Migration/UUIDFixUser.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Migration/UUIDFixUser.php b/apps/user_ldap/lib/Migration/UUIDFixUser.php new file mode 100644 index 00000000000..ee1457dcccb --- /dev/null +++ b/apps/user_ldap/lib/Migration/UUIDFixUser.php @@ -0,0 +1,37 @@ +<?php +/** + * @copyright Copyright (c) 2017 Arthur Schiwon <blizzz@arthur-schiwon.de> + * + * @author Arthur Schiwon <blizzz@arthur-schiwon.de> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +namespace OCA\User_LDAP\Migration; + +use OCA\User_LDAP\Helper; +use OCA\User_LDAP\LDAP; +use OCA\User_LDAP\Mapping\UserMapping; +use OCA\User_LDAP\Group_Proxy; +use OCP\IConfig; + +class UUIDFixUser extends UUIDFix { + public function __construct(UserMapping $mapper, LDAP $ldap, IConfig $config, Helper $helper) { + $this->mapper = $mapper; + $this->proxy = new Group_Proxy($helper->getServerConfigurationPrefixes(true), $ldap, $config); + } +} |