diff --git a/html/includes/authentication/ldap-authorization.inc.php b/html/includes/authentication/ldap-authorization.inc.php
index 89717557a..5b68fdf82 100644
--- a/html/includes/authentication/ldap-authorization.inc.php
+++ b/html/includes/authentication/ldap-authorization.inc.php
@@ -242,7 +242,9 @@ function can_update_users () {
function get_user ($user_id) {
- // Not supported
+ foreach (get_userlist() as $users) {
+ if ($users['user_id'] === $user_id) return $users['username'];
+ }
return 0;
}