diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php
index 74224c151475dd1df9b391be577ba170bca1bc33..0d3c875d09d8172d6ec16811bdd8e9fe670aab84 100644
--- a/lib/Net/LDAP3.php
+++ b/lib/Net/LDAP3.php
@@ -2372,7 +2372,7 @@ class Net_LDAP3
         if (is_array($attributes['rename']) && !empty($attributes['rename'])) {
             $olddn      = $attributes['rename']['dn'];
             $newrdn     = $attributes['rename']['new_rdn'];
-            $new_parent = $attributes['rename']['new_parent'];
+            $new_parent = isset($attributes['rename']['new_parent']) ? $attributes['rename']['new_parent'] : null;
 
             $this->_debug("C: Rename $olddn to $newrdn,$new_parent");