Page MenuHomePhabricator

Raise an exception if LDAP search fails
ClosedPublic

Authored by epriestley on Dec 2 2013, 4:17 PM.
Tags
None
Referenced Files
F13815164: D7679.id17339.diff
Thu, Sep 19, 8:49 AM
F13814103: D7679.id17343.diff
Thu, Sep 19, 3:22 AM
F13814096: D7679.id17339.diff
Thu, Sep 19, 3:19 AM
F13814086: D7679.id17338.diff
Thu, Sep 19, 3:16 AM
F13814084: D7679.id17337.diff
Thu, Sep 19, 3:15 AM
Unknown Object (File)
Tue, Sep 17, 2:01 AM
Unknown Object (File)
Tue, Sep 3, 3:29 PM
Unknown Object (File)
Mon, Sep 2, 3:16 AM
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

Branch
ldaperr
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

src/auth/PhutilAuthAdapterLDAP.php
374

(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.