Fixed code to properly add new user to user table if successfully authenticate via ldap. Only works on indirect binds. Added new field LDAP_AUTH_EMAIL_FIELD to be used to query email address for setting email address in user table.