Skip to content

Commit 68c293c

Browse files
author
David Coutadeur
committed
fix Argument #2 could not be passed by reference (#93)
1 parent 97d7105 commit 68c293c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Ltb/Directory/ActiveDirectory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,10 @@ public function changePasswordData($ldapInstance, $dn, $userdata, $password, $ol
379379
public function getAccountStatus($ldap, $errno, $extended_error = null) : array
380380
{
381381
$accountStatus = array();
382+
$option = 0x0032;
382383

383384
if ( ($errno == 49) ) {
384-
if ( \Ltb\PhpLdap::ldap_get_option($ldap, 0x0032, $extended_error) ) {
385+
if ( \Ltb\PhpLdap::ldap_get_option($ldap, $option, $extended_error) ) {
385386

386387
$accountStatus['EXTENDED_ERROR'] = $extended_error;
387388
$accountStatus['LDAP_ERROR'] = \Ltb\PhpLdap::ldap_error($ldap);

0 commit comments

Comments
 (0)