How to catch Ldap-Group fail state
Hi! Could you help me please: is there a way to catch Ldap-Group failed state? I have the following construct for ldap group check in the post-auth section: if Ldap-Group == "test-group" { update reply { cisco-avpair :="shell:priv-lvl=15" } } else { reject } Problem is when ldap server becomes unreachable from radius server, radius client receive reject and I would like not to send reply in such case. Is there a way to implement something like this: if Ldap-Group == "test-group" { update reply { cisco-avpair :="shell:priv-lvl=15" } } elsif (fail) { do_not_respond } else { reject } where (fail) is the state of Ldap-Group check. Thank you. -- Best Regards. Sergey
On Jun 8, 2021, at 2:50 AM, Sergey Nikitin <oldnick.ru@gmail.com> wrote: Could you help me please: is there a way to catch Ldap-Group failed state?
Unfortunately, no.
Problem is when ldap server becomes unreachable from radius server, radius client receive reject and I would like not to send reply in such case.
The better solution is to make sure that the LDAP server is always up. If the LDAP server is needed in order for RADIUS to work, then there's no reason for the LDAP server to be down, or unreachable. That is a catastrophic problem which should be fixed immediately. Alan DeKok.
participants (2)
-
Alan DeKok -
Sergey Nikitin