Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(234)

Issue 126050: Avoid connection attempt via ldap with unconfigured ldap_authentification (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 1 month ago by yangoon1
Modified:
16 years, 1 month ago
Reviewers:
ced1
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M res.py View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5
ced1
In fact it is not this file the issue, it is search of ModelSingleton that ...
16 years, 1 month ago (2009-09-29 18:31:23 UTC) #1
yangoon1
On 2009/09/29 18:31:23, ced wrote: > In fact it is not this file the issue, ...
16 years, 1 month ago (2009-09-29 22:13:47 UTC) #2
ced1
On 2009/09/29 22:13:47, yangoon wrote: > On 2009/09/29 18:31:23, ced wrote: > > In fact ...
16 years, 1 month ago (2009-09-30 06:29:27 UTC) #3
yangoon1
On 2009/09/30 06:29:27, ced wrote: > On 2009/09/29 22:13:47, yangoon wrote: > > On 2009/09/29 ...
16 years, 1 month ago (2009-09-30 09:39:40 UTC) #4
ced1
16 years, 1 month ago (2009-09-30 09:41:18 UTC) #5
On 2009/09/30 09:39:40, yangoon wrote:
> On 2009/09/30 06:29:27, ced wrote:
> > On 2009/09/29 22:13:47, yangoon wrote:
> > > On 2009/09/29 18:31:23, ced wrote:
> > > > In fact it is not this file the issue, it is search of ModelSingleton
that
> > > > returns int if limit == 1 which is not the behavior of the search of
> > > > ModelStorage.
> > > 
> > > Background of this patch:
> > > Fallback to normal login has to be guaranteed in any case of failure of
LDAP
> > > login. So for me it is advisable to put the whole LDAP login block into
the
> > try:
> > > statement, independent form other fixes to be made additionally.
> > 
> > No, it is bad to put too much stuff in try/except because it will be harder
to
> > debug, we will miss some bug.
> > The try/except statement here is too catch exception due to tier party like
> the
> > LDAP connection.
> 
> Ok, so do you want it to be fixed in res.py to check for the return value or
do
> you want to change return value of ModelSingleton to suit ModelStorage?

It is clear that it is ModelSingleton that must be fixed.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b