Page MenuHomePhabricator

Raise an exception if LDAP search fails
ClosedPublic

Authored by epriestley on Dec 2 2013, 4:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jun 5 2025, 11:13 AM
Unknown Object (File)
May 9 2025, 5:27 PM
Unknown Object (File)
May 9 2025, 2:37 PM
Unknown Object (File)
Apr 30 2025, 4:45 PM
Unknown Object (File)
Apr 18 2025, 1:28 AM
Unknown Object (File)
Mar 25 2025, 4:48 AM
Unknown Object (File)
Mar 22 2025, 4:42 PM
Unknown Object (File)
Mar 21 2025, 2:37 PM
Subscribers

Details

Summary

Currently, we assume search will always succeed if bind succeeds, but this isn't true in the wild. We don't have a root cause yet, but blunt this error into something vaguely useful rather than passing null to an array typehint and failing later and less usefully.

Test Plan

Used bin/auth ldap.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

src/auth/PhutilAuthAdapterLDAP.php
401

(This parameter is unused.)

epriestley updated this revision to Unknown Object (????).Dec 2 2013, 5:50 PM
  • We tracked the root cause down to anonymous users being able to search, while credentialed users can not.
  • This is weird, but seems OK to accommodate.
  • After failing a search, try to rebind as anonymous again and redo the search.
epriestley updated this revision to Unknown Object (????).Dec 2 2013, 5:54 PM
  • Minor comment spelling / word choice.