confirm("\n****************************************************\nThis will disable LDAP support. You will not be able \nto login with an account that does not exist \nlocally in the Snipe-IT local database. \n****************************************************\n\nDo you wish to continue? [y|N]")) { $setting = Setting::getSettings(); $setting->ldap_enabled = 0; if ($setting->save()) { $this->info('LDAP has been set to disabled.'); } else { $this->info('Unable to disable LDAP.'); } } else { $this->info('Canceled. No actions taken.'); } } }