[Pkg-owncloud-commits] [owncloud] 02/21: add method to count groups on LDAP

David Prévot taffit at moszumanska.debian.org
Sat Jun 28 18:44:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch 6.0
in repository owncloud.

commit 53e036e5c0adb5c3105d78faf62f73b96c8204a8
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Wed Jun 11 14:33:11 2014 +0200

    add method to count groups on LDAP
---
 apps/user_ldap/lib/access.php | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 0fd1063..fef222f 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -724,6 +724,18 @@ class Access extends LDAPUtility {
 	}
 
 	/**
+	 * returns the number of available groups
+	 * @param string $filter the LDAP search filter
+	 * @param string[] $attr optional
+	 * @param int|null $limit
+	 * @param int|null $offset
+	 * @return int|bool
+	 */
+	public function countGroups($filter, $attr = array('dn'), $limit = null, $offset = null) {
+		return $this->count($filter, $this->connection->ldapBaseGroups, $attr, $limit, $offset);
+	}
+
+	/**
 	 * @brief prepares and executes an LDAP search operation
 	 * @param $filter the LDAP filter for the search
 	 * @param $base an array containing the LDAP subtree(s) that shall be searched

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list