reject users when not found in directory

Alan DeKok aland at deployingradius.com
Tue Apr 29 17:47:48 CEST 2014


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



More information about the Freeradius-Users mailing list