inserted login_domain option in calls to ldap functions, wp_user does not user login_domain.