Commit 4b7e4eb4 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3397 Added a config option to specify the dn of default policy

parent 7578ae13
......@@ -172,7 +172,7 @@ class ppolicy extends simplePlugin
);
if (objects::count('ppolicy') == 0) {
$this->attributesAccess['cn']->setDefaultValue('default');
$this->attributesAccess['cn']->setDefaultValue($this->config->get_cfg_value('ppolicyDefaultCn', 'default'));
$this->attributesAccess['cn']->resetToDefault();
}
}
......
......@@ -46,6 +46,11 @@ class ppolicyConfig extends simplePlugin
'fdPpolicyRDN', TRUE,
'ou=ppolicies'
),
new StringAttribute (
_('Default ppolicy cn'), _('What you put as default ppolicy in the overlay config'),
'fdPpolicyDefaultCn', FALSE,
'default'
),
)
),
);
......
......@@ -10,9 +10,16 @@ attributetype ( 1.3.6.1.4.1.38414.45.1.1 NAME 'fdPpolicyRDN'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.45.1.2 NAME 'fdPpolicyDefaultCn'
DESC 'FusionDirectory - cn of the default ppolicy'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
# Object Class
objectclass ( 1.3.6.1.4.1.38414.45.2.1 NAME 'fdPpolicyPluginConf'
DESC 'FusionDirectory ppolicy plugin configuration'
SUP top AUXILIARY
MUST ( cn )
MAY ( fdPpolicyRDN ) )
MAY ( fdPpolicyRDN $ fdPpolicyDefaultCn) )
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