diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 8d622dcb794c5534409eee0a4b2521a06818584d..d047149fc7365339c0a65cc64b73caa5737a2605 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -434,12 +434,18 @@ class Access extends LDAPUtility {
 			$ocname = $this->dn2ocname($ldapObject['dn'], $nameByLDAP, $isUsers);
 			if($ocname) {
 				$ownCloudNames[] = $ocname;
+				$this->cacheDisplayName($ocname, $nameByLDAP);
 			}
 			continue;
 		}
 		return $ownCloudNames;
 	}
 
+	public function cacheDisplayName($uid, $displayName) {
+		$cacheKeyTrunk = 'getDisplayName';
+		$this->connection->writeToCache($cacheKeyTrunk.$uid,$displayName);
+	}
+
 	/**
 	 * @brief creates a unique name for internal ownCloud use for users. Don't call it directly.
 	 * @param $name the display name of the object