nextcloud/apps/user_ldap/lib/IUserLDAP.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
752 B
PHP
Raw Normal View History

2016-07-22 04:46:29 -04:00
<?php
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
2016-07-22 04:46:29 -04:00
*/
namespace OCA\User_LDAP;
interface IUserLDAP {
//Functions used by LDAPProvider
/**
* Return access for LDAP interaction.
* @param string $uid
* @return Access instance of Access for LDAP interaction
*/
public function getLDAPAccess($uid);
/**
* Return a new LDAP connection for the specified user.
* @param string $uid
* @return \LDAP\Connection of the LDAP connection
2016-07-22 04:46:29 -04:00
*/
public function getNewLDAPConnection($uid);
/**
* Return the username for the given LDAP DN, if available.
* @param string $dn
2016-07-27 03:10:35 -04:00
* @return string|false with the username
2016-07-22 04:46:29 -04:00
*/
public function dn2UserName($dn);
}