Commit 12c07575 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '6119-add-core-features-for-archive-plugin' into '1.4-dev'

Resolve "Add core features for Archive plugin"

See merge request fusiondirectory/fd!854
Showing with 7 additions and 0 deletions
+7 -0
......@@ -246,6 +246,13 @@ class templateHandling
$ldap->cd($config->current['BASE']);
/* Return the first found unique value */
foreach ($generator as $value) {
if (class_available('archivedObject')) {
$filter = archivedObject::buildUniqueSearchFilter($unique, $value);
$ldap->search($filter, ['dn']);
if ($ldap->count() > 0) {
continue;
}
}
$filter = '('.ldap_escape_f($unique).'='.ldap_escape_f($value).')';
$ldap->search($filter, ['dn']);
if ($ldap->count() == 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment