[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: reject users when not found in directory
From:       Alan DeKok <aland () deployingradius ! com>
Date:       2014-04-29 15:47:48
Message-ID: 535FC9A4.8070905 () deployingradius ! com
[Download RAW message or body]

Khapare Joshi wrote:
> I tried adding following in sites-enabled/default authorize section to
> reject the users if notfound in ldap. What is the exact name I should
> put in the if statement ?

  You should read "man unlang".  This is documented.

>  ldap
>         #User Bill get punished here
>          if ( reply = notfound){

  That is wrong.  Just do:

	if (notfound) {

>                         update reply {
>                         Reply-Message = "User doesnot seem to be in  the
> directory please talk to Bill gates"
>                         }
>                 reject
>         }
> 
> K
> 
> 
> ------------------------------------------------------------------------
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic