Commit 48eb87f1 authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(ppolicy) Adapt code to config var change

Ppolicy plugin now stores the full dn of the default ppolicy instead of
 only the cn.

issue #6093
parent c118cd43
......@@ -419,10 +419,7 @@ class user extends simplePlugin
if (isset($attrs['pwdPolicySubentry'][0])) {
$ppolicydn = $attrs['pwdPolicySubentry'][0];
} else {
$ppolicydn = $config->get_cfg_value('ppolicyDefaultCn', '');
if (!empty($ppolicydn)) {
$ppolicydn = 'cn='.$ppolicydn.','.get_ou('ppolicyRDN').$config->current['BASE'];
}
$ppolicydn = $config->get_cfg_value('ppolicyDefaultDn', '');
}
$policy = NULL;
......
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