I am sorry for posting the code in such a way.
FYI, i was able to authenticate using AD. but now i have a new concern which i have raised yesterday, but haven't received any reply from ELK team. Here is the link to my concern
Please look into this and help me.
Regards,
Pankaj N