Commit 6b48f55e authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Fixes: #981 Improve the FusionDirectory API

Showing with 35 additions and 1 deletion
+35 -1
......@@ -19,11 +19,27 @@
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*!
* \file class_password-methods-sasl.inc
* Source code for class passwordMethodsasl
*/
/*!
* \brief This class contains all the functions for sasl password methods
* \see passwordMethod
*/
class passwordMethodsasl extends passwordMethod {
var $uid = ""; // uid, or exop specified field value
var $realm = "";
var $exop = "";
/*!
* \brief passwordMethodsasl Constructor
*
* \param string $config
*
* \param string $dn The DN
*/
function __construct($config, $dn="")
{
if ($dn == "" || $dn == "new") {
......@@ -49,11 +65,21 @@ class passwordMethodsasl extends passwordMethod {
}
}
/*!
* \brief Is available
*
* \return TRUE if is avaibable
*/
function is_available()
{
return TRUE;
}
/*!
* \brief Generate template hash
*
* \param string $pwd Password
*/
function generate_hash($pwd)
{
if (empty($this->exop)) {
......@@ -62,12 +88,20 @@ class passwordMethodsasl extends passwordMethod {
return "{SASL}".$this->uid; // may not be the uid, see saslExop option
}
}
/*!
* \brief Get the hash name
*/
function get_hash_name()
{
return "sasl";
}
/*!
* \brief Password needed
*
* \return boolean FALSE
*/
function need_password()
{
return FALSE;
......
  • bmortier @bmortier

    mentioned in issue #370 (closed)

    By sabaku on 2017-09-02T14:45:21 (imported from GitLab)

    ·

    mentioned in issue #370 (closed)

    By sabaku on 2017-09-02T14:45:21 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment