IGroupLDAP.php 567 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\User_LDAP;
  7. interface IGroupLDAP {
  8. //Used by LDAPProvider
  9. /**
  10. * Return access for LDAP interaction.
  11. * @param string $gid
  12. * @return Access instance of Access for LDAP interaction
  13. */
  14. public function getLDAPAccess($gid);
  15. /**
  16. * Return a new LDAP connection for the specified group.
  17. * @param string $gid
  18. * @return \LDAP\Connection The LDAP connection
  19. */
  20. public function getNewLDAPConnection($gid);
  21. }