diff --git a/lib/SimpleSAML/Auth/LDAP.php b/lib/SimpleSAML/Auth/LDAP.php
index 933b2eac7cf101b14014707634dcad6cbf641d70..b28d060431970382b93001874df99abbd391bc98 100644
--- a/lib/SimpleSAML/Auth/LDAP.php
+++ b/lib/SimpleSAML/Auth/LDAP.php
@@ -80,7 +80,7 @@ class SimpleSAML_Auth_LDAP {
 		 */
 		$this->ldap = @ldap_connect($hostname, $port);
 		if ($this->ldap == FALSE)
-			throw new $this->makeException('Library - LDAP __construct(): Unable to connect to \'' . $hostname . '\'', ERR_INTERNAL);
+			throw $this->makeException('Library - LDAP __construct(): Unable to connect to \'' . $hostname . '\'', ERR_INTERNAL);
 
 		/* Enable LDAP protocol version 3. */
 		if (!@ldap_set_option($this->ldap, LDAP_OPT_PROTOCOL_VERSION, 3))