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)
Fri, Jun 12, 6:54 AM
Unknown Object (File)
Mon, Jun 8, 5:47 AM
Unknown Object (File)
Mar 21 2026, 11:15 AM
Unknown Object (File)
Mar 2 2026, 1:29 AM
Unknown Object (File)
Feb 15 2026, 9:23 PM
Unknown Object (File)
Feb 7 2026, 10:30 PM
Unknown Object (File)
Jan 29 2026, 7:05 AM
Unknown Object (File)
Jan 19 2026, 1:14 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.