diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php
index 6643428afe4082429ad92fc0b1d22eb10cae07f6..20784570e93925c47184faa51681bfd56c31fc68 100644
--- a/apps/user_ldap/lib/connection.php
+++ b/apps/user_ldap/lib/connection.php
@@ -212,7 +212,6 @@ class Connection {
 	 */
 	private function readConfiguration($force = false) {
 		if((!$this->configured || $force) && !is_null($this->configID)) {
-			$defaults = $this->getDefaults();
 			$v = 'getValue';
 			$this->config['ldapHost']       = $this->$v('ldap_host');
 			$this->config['ldapBackupHost'] = $this->$v('ldap_backup_host');