SF Bug #3004012 - password sync for sambaSamAccount template broken.
This commit is contained in:
@@ -189,7 +189,10 @@ class PageRender extends Visitor {
|
||||
$blank++;
|
||||
}
|
||||
|
||||
} elseif (count($attribute2->getValues()) !=1) {
|
||||
} elseif (count($attribute2->getValues()) == 0) {
|
||||
return;
|
||||
|
||||
} elseif (count($attribute2->getValues()) != 1) {
|
||||
array_push($values,'');
|
||||
$blank++;
|
||||
|
||||
@@ -231,6 +234,9 @@ class PageRender extends Visitor {
|
||||
return;
|
||||
}
|
||||
|
||||
if (! $attribute->hasBeenModified())
|
||||
return;
|
||||
|
||||
# Get the attribute.
|
||||
if (preg_match_all('/%(\w+)(\|.+)?(\/[lU])?%/U',strtolower($args[1]),$matchall)) {
|
||||
if (count($matchall[1]) != 1)
|
||||
@@ -272,7 +278,7 @@ class PageRender extends Visitor {
|
||||
|
||||
case 'nt':
|
||||
$sambapassword = new smbHash;
|
||||
$vals[$i] = $sambapassword->nthash($passwordvalue); break;
|
||||
$vals[$i] = $sambapassword->nthash($passwordvalue);
|
||||
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user