1
0

IUserLDAP.php 752 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\User_LDAP;
  7. interface IUserLDAP {
  8. //Functions used by LDAPProvider
  9. /**
  10. * Return access for LDAP interaction.
  11. * @param string $uid
  12. * @return Access instance of Access for LDAP interaction
  13. */
  14. public function getLDAPAccess($uid);
  15. /**
  16. * Return a new LDAP connection for the specified user.
  17. * @param string $uid
  18. * @return \LDAP\Connection of the LDAP connection
  19. */
  20. public function getNewLDAPConnection($uid);
  21. /**
  22. * Return the username for the given LDAP DN, if available.
  23. * @param string $dn
  24. * @return string|false with the username
  25. */
  26. public function dn2UserName($dn);
  27. }