How to find if the LDAP server is not rechable

Adarsha S s.adarsha at
Tue Apr 21 07:17:16 CEST 2015

Thanks for the help Alan.
But the other_database I'm holding is just a simple C-language hash table
which is unknown to free radius process.

So I've a logic where based on the result obtained from free-radius I'll
have to proceed to query my local database which is a simple hashing table.
If I get same response from free-radius for not reachability and wrong
credentials , I wont be able to proceed to lookup local database because
only when ldap server is not reachable I should proceed for local data base.

So I need a logic where in free radius returns different error messages.
Please guide me in the same.


On Tue, Apr 14, 2015 at 5:33 PM, Alan DeKok <aland at>

> On Apr 14, 2015, at 7:10 AM, Adarsha S <s.adarsha at> wrote:
> > I've a setup with freeradius-server-2.2.3 and Windows AD 2008 [LDAP
> > server]for authentication.
> > I need to implement fall back feature where if Windows AD server is not
> > reachable , I need to authenticate using  local database.
>   That's simple enough.
> > The problem I'm facing is :
> > When LDAP server is reachable and giving wrong password result is
> > RLM_MODULE_REJECT. LDAP server not reachable the result is
>   Yes... see "man unlang".  You can check for different return codes from
> modules.  You can also put the modules into a "redundant" block, where the
> second one is called only when the first one fails.
>   e.g.
>         redundant {
>                 ldap
>                 other_database
>         }
>   See "man unlang".
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See

More information about the Freeradius-Users mailing list