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 ? ldap #User Bill get punished here if ( reply = notfound){ update reply { Reply-Message = "User doesnot seem to be in the directory please talk to Bill gates" } reject } K
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
participants (2)
-
Alan DeKok -
Khapare Joshi