diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 1bdab1bab3..d6574f17c8 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -942,7 +942,7 @@ class SettingsController extends Controller $setting->ldap_lname_field = $request->input('ldap_lname_field'); $setting->ldap_fname_field = $request->input('ldap_fname_field'); $setting->ldap_auth_filter_query = $request->input('ldap_auth_filter_query'); - $setting->ldap_version = $request->input('ldap_version'); + $setting->ldap_version = $request->input('ldap_version', 3); $setting->ldap_active_flag = $request->input('ldap_active_flag'); $setting->ldap_emp_num = $request->input('ldap_emp_num'); $setting->ldap_email = $request->input('ldap_email'); diff --git a/app/Models/Ldap.php b/app/Models/Ldap.php index 14be2fd56b..935270a563 100644 --- a/app/Models/Ldap.php +++ b/app/Models/Ldap.php @@ -37,7 +37,7 @@ class Ldap extends Model public static function connectToLdap() { $ldap_host = Setting::getSettings()->ldap_server; - $ldap_version = Setting::getSettings()->ldap_version; + $ldap_version = Setting::getSettings()->ldap_version ?: 3; $ldap_server_cert_ignore = Setting::getSettings()->ldap_server_cert_ignore; $ldap_use_tls = Setting::getSettings()->ldap_tls; diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 9a63ca58bd..a712cea863 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -318,7 +318,7 @@ item_icon = 'fas fa-user'; } else if (value.type == 'location') { item_destination = 'locations' - item_icon = 'far fa-map-marker-alt'; + item_icon = 'fas fa-map-marker-alt'; } return ' ' + value.name + '';