Code which implements an NMAS password hook from NetIQ User Application