Even with ldap_secondary I get same error<br> redundant {<br>                        ldap_primary<br>                        ldap_secondary<br>                        fail = 1<br>                }<br><br><br><div class="gmail_quote">

On Mon, Mar 25, 2013 at 5:57 PM, Olivier Beytrison <span dir="ltr"><<a href="mailto:olivier@heliosnet.org" target="_blank">olivier@heliosnet.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On 25.03.2013 13:00, Chitrang Srivastava wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I am trying to do similar but radius is giving error<br>
  group {<br>
                 redundant {<br>
                         ldap_primary<br></div>
                         fail = return  <-----*Entry with no value is<br>
invalid*<div class="im"><br>
                 }<br>
         if(fail){<br>
                 files_local<br>
         }<br>
         else {<br>
                 files<br>
         }<br>
         }<br>
<br>
Why this could be ?<br>
</div></blockquote>
<br>
you have only one ldap instance. you don't need the redundant block<br>
<br>
authorize {<br>
<br>
        #usual authorize stuff, preprocess, suffix, ect<br>
<br>
        ldap_primary {<div class="im"><br>
                fail = return<br>
        }<br>
        if(fail){<br>
                files_local<br>
        }<br>
        else {<br>
                files<br>
        }<br>
}<br>
<br></div>
this *should* work.<div class="HOEnZb"><div class="h5"><br>
<br>
Olivier<br>
-- <br>
 Olivier Beytrison<br>
 Network & Security Engineer, HES-SO Fribourg<br>
 Mail: <a href="mailto:olivier@heliosnet.org" target="_blank">olivier@heliosnet.org</a><br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/<u></u>list/users.html</a><br>
</div></div></blockquote></div><br>