Fixed code to properly add new user to user table if successfully authen...

...ticate 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.


Does not fill in first name / last name -- instead I set them to '' but enables an ldap user to login and get public permissions. Admin will need to later role and potentially fill out first and last name if they care. The thinking is with ldap, you want to use that and filter to set who can login, not have it set at the application. Therefore, automatically adding new users to the user table makes sense.