Skip to content

Commit 095057c

Browse files
author
robin.kluth
committed
* Fix $ldaprcfile ist not declared
1 parent 5be55f7 commit 095057c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LdapAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ public function login($username, $password, $domainKey, $fetchUserDN = false)
158158
} else {
159159
Yii::debug('.ldaprc file exists!', __METHOD__);
160160
}
161+
putenv('LDAPCONF=' . $ldaprcfile);
161162
} else {
162163
Yii::debug("Not a windows environment!", __METHOD__);
163164
}
164165

165-
putenv('LDAPCONF=' . $ldaprcfile);
166166
putenv('LDAPTLS_REQCERT=allow');
167167
putenv('TLS_REQCERT=allow');
168168
}

0 commit comments

Comments
 (0)