summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Connection.php
diff options
context:
space:
mode:
authorXuanwo <xuanwo@yunify.com>2017-03-18 14:56:24 +0800
committerXuanwo <xuanwo@yunify.com>2017-04-25 10:06:47 +0800
commit8db21ad8c894332b85a37bef28818604a175db23 (patch)
tree7c0634b90346f92e0dcde7f276168db73d06f50b /apps/user_ldap/lib/Connection.php
parent9e1e7dac479f63f194b595e45c05d7bf833622dd (diff)
downloadnextcloud-server-8db21ad8c894332b85a37bef28818604a175db23.tar.gz
nextcloud-server-8db21ad8c894332b85a37bef28818604a175db23.zip
user_ldap: Add support for gidNumber
This patch is based on the work of @dleeuw (https://github.com/dleeuw) (See https://github.com/nextcloud/server/issues/2640#issuecomment-269615883 for more details). The difference is user & group data will be written into cache to have better performance, and functions splited from primaryGroupID series to make them more readable. Fixed https://github.com/nextcloud/server/issues/2640 Signed-off-by: Xuanwo <xuanwo@yunify.com>
Diffstat (limited to 'apps/user_ldap/lib/Connection.php')
-rw-r--r--apps/user_ldap/lib/Connection.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php
index 04f8c7401e2..10fbea7174b 100644
--- a/apps/user_ldap/lib/Connection.php
+++ b/apps/user_ldap/lib/Connection.php
@@ -12,6 +12,7 @@
* @author Robin Appelman <robin@icewind.nl>
* @author Robin McCorkell <robin@mccorkell.me.uk>
* @author Roger Szabo <roger.szabo@web.de>
+ * @author Xuanwo <xuanwo@yunify.com>
*
* @license AGPL-3.0
*
@@ -64,6 +65,11 @@ class Connection extends LDAPUtility {
*/
public $hasPrimaryGroups = true;
+ /**
+ * @var bool runtime flag that indicates whether supported POSIX gidNumber are available
+ */
+ public $hasGidNumber = true;
+
//cache handler
protected $cache;