<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1488862547750_5102">Hi,</div><div><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1488862547750_5103">   I have to validate that a specific user authentication should get processed only if it originates from a particular IP. To achieve this I want to write a PreAuthHook which will compare NAS-IP-Address coming in request packet with the Device IP mentioned in the LDAP user profile.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1488862547750_5130"><br></div><div dir="ltr">Can someone please provide me sample shell script of PreAuthHook ?</div><div dir="ltr"><br></div><div dir="ltr">Thanks,</div><div dir="ltr">-Manish<br></div><div><br></div></div></body></html>