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, Jan 31, 1:49 PM
Unknown Object (File)
Wed, Jan 29, 2:17 PM
Unknown Object (File)
Wed, Jan 29, 6:23 AM
Unknown Object (File)
Wed, Jan 29, 1:08 AM
Unknown Object (File)
Mon, Jan 27, 5:52 AM
Unknown Object (File)
Mon, Jan 27, 1:41 AM
Unknown Object (File)
Dec 17 2024, 3:16 AM
Unknown Object (File)
Dec 12 2024, 7:51 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.