TASK-289 Show attributes and filter in searh AD LDAP

This commit is contained in:
Brayan Pereyra
2025-10-02 11:16:08 -04:00
parent fb8bdba1f9
commit 7c022b12d9
3 changed files with 21 additions and 5 deletions

View File

@@ -336,7 +336,14 @@ class AuthSources
$arrayData[] = $listUsersData;
}
return ['success' => true, 'status' => 'OK', 'resultTotal' => $result['numRecTotal'], 'resultRoot' => $arrayData];
$response = [
'success' => true,
'status' => 'OK',
'resultTotal' => $result['numRecTotal'],
'resultRoot' => $arrayData,
'context' => $result['context']
];
return $response;
} catch (Exception $exception) {
return ['success' => false, 'message' => $exception->getMessage()];
}