Added authentication using existing uid and pwd attributes.