Fix missing encoding SambaPasswordAttributes
This commit is contained in:
parent
48faaba955
commit
cf4f339b5c
@ -236,7 +236,9 @@ class PageRender extends Visitor {
|
||||
$enc = $_REQUEST[$matchall[1][0]][$passwordattr][$i];
|
||||
|
||||
} else
|
||||
$enc = strtolower($args[0]);
|
||||
$enc = $args[0];
|
||||
|
||||
$enc = strtolower($enc);
|
||||
|
||||
switch ($enc) {
|
||||
case 'lm':
|
||||
|
@ -14,6 +14,6 @@
|
||||
* @package phpLDAPadmin
|
||||
* @subpackage Templates
|
||||
*/
|
||||
class SambaPasswordAttribute extends Attribute {
|
||||
class SambaPasswordAttribute extends PasswordAttribute {
|
||||
}
|
||||
?>
|
||||
|
@ -2401,6 +2401,25 @@ function deleteAttribute(attrName,friendlyName,i)
|
||||
echo '</select>';
|
||||
}
|
||||
|
||||
protected function drawDefaultHelperSambaPasswordAttribute($attribute,$i) {
|
||||
$id = 'enc';
|
||||
|
||||
if (! $attribute->getPostValue())
|
||||
printf('<input type="hidden" name="post_value[%s][]" value="%s"/>',$attribute->getName(),$i);
|
||||
|
||||
switch ($attribute->getName()) {
|
||||
case 'sambalmpassword' : $enc = 'lm'; break;
|
||||
case 'sambantpassword' : $enc = 'nt'; break;
|
||||
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
||||
printf('<input type="hidden" name="%s[%s][%s]" id="%s_%s_%s" value="%s">',
|
||||
$id,htmlspecialchars($attribute->getName()),$i,
|
||||
$id,htmlspecialchars($attribute->getName()),$i,$enc);
|
||||
}
|
||||
|
||||
/** SELECTION ATTRIBUTE RENDERING **/
|
||||
|
||||
protected function drawIconSelectionAttribute($attribute,$val) {
|
||||
|
Loading…
Reference in New Issue
Block a user