HOR-1978 "[Mantis - 21075 - 20786 - 21397]Running ldapcron.php removes..." SOLVED

Issue:
    [Mantis - 21075 - 20786 - 21397]Running ldapcron.php removes Vacation status
Cause:
    El estado "VACATION" no existe en ActiveDirectory (Esto hasta donde se pudo investigar/revisar)
Solution:
    El estado "VACATION" se mantiene en ProcessMaker (Cuando el estado es "ACTIVO" en ActiveDirectory), el resto de los
    estados son sincronizados segun el requerimiento descrito en el card
This commit is contained in:
Victor Saisa Lopez
2016-10-07 08:00:44 -04:00
parent aac460328e
commit e3597b5f32

View File

@@ -2817,7 +2817,7 @@ class ldapAdvanced
switch ($fieldName) {
case 'USR_STATUS':
if ($attributeName == 'useraccountcontrol') {
$ldapAttributeValue = (in_array($ldapAttributeValue, array('512', '544', '66048', '66080')))? 'ACTIVE' : 'INACTIVE';
$ldapAttributeValue = (preg_match('/^(?:' . '512|544|66048|66080' . ')$/', $ldapAttributeValue))? (($arrayUser[$username][$fieldName] == 'VACATION')? 'VACATION' : 'ACTIVE') : 'INACTIVE';
}
break;
case 'USR_DUE_DATE':
@@ -3053,4 +3053,3 @@ class ldapAdvanced
}
}
}