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

:ambulance: 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
Showing with 1 addition and 4 deletions
+1 -4
......@@ -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;
......
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