Thanks for your reply
Tried your suggestions, but problem is still there
Any further insights on why the problem could be happening are appreciated
Please let me know if more information from my setup is required. Basically requirement is that user logging-in through SSH should be authenticated by my code/script