diff --git a/cas.install b/cas.install
index 6f8755e..e8324c7 100644
--- a/cas.install
+++ b/cas.install
@@ -370,3 +370,10 @@ function cas_update_7101() {
   }
   variable_del('cas_check_first');
 }
+
+/**
+ * Implements hook_enable().
+ */
+function cas_enable() {
+  drupal_set_message(t('CAS has been enabled. Please <a href="@url">configure</a> it.', array('@url' => url('admin/config/people/cas'))), 'warning');
+}
diff --git a/cas.module b/cas.module
index 1833673..7571041 100644
--- a/cas.module
+++ b/cas.module
@@ -79,7 +79,11 @@ function cas_login_check($force_authentication = TRUE) {
   _cas_single_sign_out_save_ticket();  // We use this later for CAS 3 logoutRequests
 
   // Initialize phpCAS.
-  cas_phpcas_init();
+  if (cas_phpcas_init() === FALSE) {
+    drupal_set_message(t('CAS needs to be configured.'), 'error');
+    return;
+  }
+
 
   // We're going to try phpCAS auth test
   if ($force_authentication) {
@@ -251,11 +255,14 @@ function cas_phpcas_init() {
 
   // Variable set
   $server_version    = (string)variable_get('cas_version', '2.0');
-  $server_cas_server = (string)variable_get('cas_server', 'sso-cas.univ-rennes1.fr');
+  $server_cas_server = (string)variable_get('cas_server', '');
   $server_port       = (int)variable_get('cas_port', '443');
   $server_uri        = (string)variable_get('cas_uri', '');
   $cas_cert          = (string)variable_get('cas_cert', '');
   $debug_file        = (string)variable_get('cas_debugfile', '');
+  if ($server_cas_server == '') {
+    return FALSE;
+  }
   if ($debug_file != '') {
     phpCAS::setDebug($debug_file);
   }
