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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user