@@ -79,7 +79,7 @@ public function addAttributeValues(Entry $entry, string $attribute, array $value
79
79
$ con = $ this ->getConnectionResource ();
80
80
81
81
if (!@ldap_mod_add ($ con , $ entry ->getDn (), [$ attribute => $ values ])) {
82
- throw new LdapException (sprintf ('Could not add values to entry "%s", attribute %s: %s. ' , $ entry ->getDn (), $ attribute, ldap_error ( $ con ) ));
82
+ throw new LdapException (sprintf ('Could not add values to entry "%s", attribute %s: ' . ldap_error ( $ con ) , $ entry ->getDn (), $ attribute ));
83
83
}
84
84
}
85
85
@@ -94,7 +94,7 @@ public function removeAttributeValues(Entry $entry, string $attribute, array $va
94
94
$ con = $ this ->getConnectionResource ();
95
95
96
96
if (!@ldap_mod_del ($ con , $ entry ->getDn (), [$ attribute => $ values ])) {
97
- throw new LdapException (sprintf ('Could not remove values from entry "%s", attribute %s: %s. ' , $ entry ->getDn (), $ attribute, ldap_error ( $ con ) ));
97
+ throw new LdapException (sprintf ('Could not remove values from entry "%s", attribute %s: ' . ldap_error ( $ con ) , $ entry ->getDn (), $ attribute ));
98
98
}
99
99
}
100
100
@@ -122,7 +122,7 @@ public function move(Entry $entry, string $newParent)
122
122
$ rdn = $ this ->parseRdnFromEntry ($ entry );
123
123
// deleteOldRdn does not matter here, since the Rdn will not be changing in the move.
124
124
if (!@ldap_rename ($ con , $ entry ->getDn (), $ rdn , $ newParent , true )) {
125
- throw new LdapException (sprintf ('Could not move entry "%s" to "%s": %s. ' , $ entry ->getDn (), $ newParent, ldap_error ( $ con ) ));
125
+ throw new LdapException (sprintf ('Could not move entry "%s" to "%s": ' . ldap_error ( $ con ) , $ entry ->getDn (), $ newParent ));
126
126
}
127
127
}
128
128
0 commit comments