# HG changeset patch # User Chris Cannam # Date 1320418268 0 # Node ID 8653bddf26a6587843ed7359d57671e0b3a0795a # Parent 1d1b8170c2f785407cb8b4493fcff30abeba2fde Drop out of loop as soon as the first LDAP auth succeeds for a suitable role (fixing #316) diff -r 1d1b8170c2f7 -r 8653bddf26a6 extra/soundsoftware/SoundSoftware.pm --- a/extra/soundsoftware/SoundSoftware.pm Fri Nov 04 14:41:21 2011 +0000 +++ b/extra/soundsoftware/SoundSoftware.pm Fri Nov 04 14:51:08 2011 +0000 @@ -456,6 +456,7 @@ } $sthldap->finish(); undef $sthldap; + last if ($ret); } } else { print STDERR "SoundSoftware.pm:$$: User $redmine_user lacks required role for this project\n";