Commit ce5c1312 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4225 the reset password system should look for supannMailPerso if the...

Fixes #4225 the reset password system should look for supannMailPerso if the supann plugin is installed
parent fc8163fb
......@@ -20,18 +20,17 @@
class supannConfig extends simplePlugin
{
var $objectclasses = array("fdSupannPluginConf");
var $objectclasses = array('fdSupannPluginConf');
static function plInfo()
{
return array(
"plShortName" => _("SUPANN configuration"),
"plDescription" => _("FusionDirectory SUPANN plugin configuration"),
"plSelfModify" => FALSE,
"plCategory" => array("configuration"),
"plObjectType" => array("smallConfig"),
'plShortName' => _('SUPANN configuration'),
'plDescription' => _('FusionDirectory SUPANN plugin configuration'),
'plCategory' => array('configuration'),
'plObjectType' => array('smallConfig'),
"plProvidedAcls" => parent::generatePlProvidedAcls(self::getAttributesInfo())
'plProvidedAcls' => parent::generatePlProvidedAcls(self::getAttributesInfo())
);
}
......@@ -46,6 +45,11 @@ class supannConfig extends simplePlugin
'fdSupannStructuresRDN', TRUE,
'ou=structures'
),
new BooleanAttribute (
_('SUPANN mail for recovery'), _('Allow the use of mail addresses from the personal mail address field from SUPANN account for password recovery'),
'fdSupannPasswordRecovery', FALSE,
TRUE
),
)
),
);
......
......@@ -4,15 +4,21 @@
# Attributes
attributetype ( 1.3.6.1.4.1.38414.17.1.1 NAME 'fdSupannStructuresRDN'
DESC 'FusionDirectory - SUPANN structres RDN'
DESC 'FusionDirectory - SUPANN structures RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.17.1.2 NAME 'fdSupannPasswordRecovery'
DESC 'FusionDirectory - SUPANN allow supann mail in password recovery'
EQUALITY booleanMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
SINGLE-VALUE )
# Object Class
objectclass ( 1.3.6.1.4.1.38414.17.2.1 NAME 'fdSupannPluginConf'
DESC 'FusionDirectory supann plugin configuration'
SUP top AUXILIARY
MUST ( cn )
MAY ( fdSupannStructuresRDN ) )
MAY ( fdSupannStructuresRDN $ fdSupannPasswordRecovery ) )
Markdown is supported
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