@@ -61,14 +61,15 @@ function ldap_add($link_identifier, string $dn, array $entry, array $serverctrls
61
61
* @param resource $link_identifier
62
62
* @param string $bind_rdn
63
63
* @param string $bind_password
64
+ * @param array $serverctrls
64
65
* @return resource Returns an LDAP result identifier.
65
66
* @throws LdapException
66
67
*
67
68
*/
68
- function ldap_bind_ext ($ link_identifier , ?string $ bind_rdn = null , ?string $ bind_password = null )
69
+ function ldap_bind_ext ($ link_identifier , ?string $ bind_rdn = null , ?string $ bind_password = null , array $ serverctrls = null )
69
70
{
70
71
error_clear_last ();
71
- $ result = \ldap_bind_ext ($ link_identifier , $ bind_rdn , $ bind_password );
72
+ $ result = \ldap_bind_ext ($ link_identifier , $ bind_rdn , $ bind_password, $ serverctrls );
72
73
if ($ result === false ) {
73
74
throw LdapException::createFromPhpError ();
74
75
}
@@ -82,13 +83,14 @@ function ldap_bind_ext($link_identifier, ?string $bind_rdn = null, ?string $bind
82
83
* @param resource $link_identifier An LDAP link identifier, returned by ldap_connect.
83
84
* @param string $bind_rdn
84
85
* @param string $bind_password
86
+ * @param array $serverctrls Array of LDAP Controls to send with the request.
85
87
* @throws LdapException
86
88
*
87
89
*/
88
- function ldap_bind ($ link_identifier , ?string $ bind_rdn = null , ?string $ bind_password = null ): void
90
+ function ldap_bind ($ link_identifier , ?string $ bind_rdn = null , ?string $ bind_password = null , array $ serverctrls = null ): void
89
91
{
90
92
error_clear_last ();
91
- $ result = \ldap_bind ($ link_identifier , $ bind_rdn , $ bind_password );
93
+ $ result = \ldap_bind ($ link_identifier , $ bind_rdn , $ bind_password, $ serverctrls );
92
94
if ($ result === false ) {
93
95
throw LdapException::createFromPhpError ();
94
96
}
0 commit comments