thanks you i tired that and it worked great. if you dont mind can you tell me please why we had to set "fail = 1"? the reason i ask is that in my policy i have a 'notfound' statement and it works just fine, but for fail i have to set it to 'fail = 1'. below is the policy i have in place<div>
<div>        ldap {</div><div>               fail = 1</div><div>        }</div><div>        if (fail){</div><div>                files</div><div>        }</div><div>        elsif (notfound) {</div><div>                update reply {</div>
<div>                                Reply-Message = "Cannot use this user account"</div><div>                             }</div><div>                reject</div><div>        }</div><div>Another question i have is that can i put in an unlang statement in the post-auth-type reject to put in an update reply when the ldap server failed and the user was not found in the fallback files. this way the user can be prompted to use the fall back username/password</div>
<div><br></div><div>thanks for all your help in this matter.</div><div><div><br><div class="gmail_quote">On Tue, Aug 17, 2010 at 7:23 AM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com">aland@deployingradius.com</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">Aqdas Muneer wrote:<br>
> thank you for the quick response. the reason i created the admin account<br>
> was for use during ldap outages and you are correct that this account<br>
> does not exist in ldap. what would be a better way to go about<br>
> accomplishing this. i want the admin account to be only available during<br>
> times when the ldap module returns 'fail'?<br>
<br>
</div>  Put this into the "authorize" section:<br>
<br>
authorize {<br>
        ...<br>
        ldap {<br>
                fail = 1<br>
        }<br>
        if (fail) {<br>
                do things<br>
        }<br>
        ...<br>
}<br>
<br>
  The "do things" text should be replaced by your actual policies.  i.e.<br>
check for "admin" account, update password, etc.  See "man unlang" for<br>
details.<br>
<div><div></div><div class="h5"><br>
  Alan DeKok.<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br></div></div></div>