password plugin ldap driver: use full %login as %name/%n when no @ in username. (#5902)

pull/5899/merge
buborh 7 years ago committed by Aleksander Machniak
parent 04d9e8addc
commit 4f400ab7aa

@ -216,6 +216,9 @@ class rcube_ldap_password
$str = str_replace('%dc', $dc, $str);
$str = str_replace('%domain', $parts[1], $str);
$str = str_replace('%d', $parts[1], $str);
} else if ( count($parts) == 1) {
$str = str_replace('%name', $parts[0], $str);
$str = str_replace('%n', $parts[0], $str);
}
return $str;

Loading…
Cancel
Save