You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\Log::debug("Fast bind failed; falling through to legacy bind");
231
+
}
232
+
150
233
if (! $ldapbind = @ldap_bind($connection, $userDn, $password)) {
151
234
Log::debug("Status of binding user: $userDn to directory: (directly!) ".($ldapbind ? "success" : "FAILURE"));
152
235
if (! $ldapbind = self::bindAdminToLdap($connection)) {
153
236
/*
154
237
* TODO PLEASE:
155
238
*
156
239
* this isn't very clear, so it's important to note: the $ldapbind value is never correctly returned - we never 'return true' from self::bindAdminToLdap() (the function
157
-
* just "falls off the end" without ever explictly returning 'true')
240
+
* just "falls off the end" without ever explicitly returning 'true')
158
241
*
159
242
* but it *does* have an interesting side-effect of checking for the LDAP password being incorrectly encrypted with the wrong APP_KEY, so I'm leaving it in for now.
160
243
*
161
-
* If it *did* correctly return 'true' on a succesful bind, it would _probably_ allow users to log in with an incorrect password. Which would be horrible!
244
+
* If it *did* correctly return 'true' on a successful bind, it would _probably_ allow users to log in with an incorrect password. Which would be horrible!
162
245
*
163
246
* Let's definitely fix this at the next refactor!!!!
0 commit comments