dockx thibault (51908c6a) at 28 Mar 20:55
[Tasks] - Make the generic tasks even more generic, allowing the object type string to be custom in case of added plugins
Currently, the creation of subTasks is handled by :
public function createSlaveTasks (array $listOfDN, string $attributeType, array $attrs = NULL): void
example :
// Call the method from parent tasks object (first tab) to create sub-tasks.
$this->parent->getBaseObject()->createSlaveTasks($listOfDN, $attributeType);
The variable attributeType was previously set for life cycle and mail tasks. (fdTasksGranularDN, fdTasksGranularMail). To differentiate the usage of DN (CN/UID or MAIL). We can still use that logic that could become beneficial for harder tasks in the future, set in the CORE.
Currently, a new argument should be passed to define fdTasksGranularType.
Modification should occur here :
case 'fdTasksGranularDN' :
$prepData['tasksGranular'] = [
"fdTasksGranularDN" => $dn,
"fdTasksGranularType" => 'Life Cycle',
];
break;
}
Life Cycle was hard-coded on purpose but could definitely receive a string variable now. As more plugins will be developed, such as notifications, which also base itself on the concept of "pure" DN such as life cycle.
Added Note LastExec is currently using date format based on time() which is unix UTC format. Somehow using Date changes the local dateTime to local time. We have to have UTC globally. gmDate instead of Date could resolve the issue easily. As generalizeTime in FD use Z which is UTC already.
dockx thibault (51908c6a) at 25 Mar 16:25
Merge branch '6320-tasks-mail-class-can-have-one-method-static-to-b...
... and 2 more commits
dockx thibault (667bacc9) at 25 Mar 16:21
dockx thibault (57116975) at 25 Mar 16:17
dockx thibault (4c7b3411) at 25 Mar 15:53
[Tasks] - Mail class can have one method static to be reused outside object call by others
// send the objectype and attrs name to the below method
$this->setEmailsFromSelectedDN($mailObject, $mailAttr);
The above method can be statically called and shared outside group instance.
Two ways to see this.
Add a check / warning when adding ssha512 password method that overlay pw-sha2 must be used
Hello @tdockx
dn: cn=default,ou=ppolicies,dc=example,dc=com
objectClass: device
objectClass: pwdPolicy
objectClass: pwdPolicyChecker
pwdAttribute: userPassword
cn: default
pwdAllowUserChange: TRUE
pwdSafeModify: FALSE
pwdCheckQuality: 0
pwdLockout: TRUE
pwdInHistory: 2
pwdMustChange: FALSE
Cheers
Hello @tdockx
We need to support SSHA512 password type when pw-sha2 is installed. FusionDirectory must be able to accept SSHA512 type of password and also to generate them.
Cheers
bmortier (5709df25) at 22 Mar 18:05
bmortier (4c7b3411) at 22 Mar 18:05
Merge branch '6309-support-ssha512-password-if-overlay-pw-sha2-is-i...
... and 2 more commits
Jonathan Swaelens (5709df25) at 22 Mar 17:51
:amubulance: fix(phpstan): Convert random_int as string
Jonathan Swaelens (0b31a709) at 22 Mar 17:43