Index: /main/waeup.cas/trunk/setup.py
===================================================================
--- /main/waeup.cas/trunk/setup.py	(revision 10461)
+++ /main/waeup.cas/trunk/setup.py	(revision 10462)
@@ -68,4 +68,5 @@
     [waeup.cas.authenticators]
     dummy = waeup.cas.authenticators:DummyAuthenticator
+    kofa1 = waeup.cas.authenticators:KofaAuthenticator
     """,
 )
Index: /main/waeup.cas/trunk/waeup/cas/authenticators.py
===================================================================
--- /main/waeup.cas/trunk/waeup/cas/authenticators.py	(revision 10461)
+++ /main/waeup.cas/trunk/waeup/cas/authenticators.py	(revision 10462)
@@ -109,2 +109,17 @@
             reason = 'Invalid username or password.'
         return result, reason
+
+
+class KofaAuthenticator(Authenticator):
+    """Authenticate against a running Kofa instance.
+    """
+
+    name = 'kofa1'
+
+    def __init__(self, auth_services=None):
+        self.services = auth_services
+
+    def check_credentials(self, username='', password=''):
+        """Do the real check.
+        """
+        return False, 'Not implemented.'
Index: /main/waeup.cas/trunk/waeup/cas/tests/test_authenticators.py
===================================================================
--- /main/waeup.cas/trunk/waeup/cas/tests/test_authenticators.py	(revision 10461)
+++ /main/waeup.cas/trunk/waeup/cas/tests/test_authenticators.py	(revision 10462)
@@ -1,7 +1,10 @@
+import os
 import unittest
+from paste.deploy import loadapp
 from waeup.cas.authenticators import (
     get_all_authenticators, get_authenticator, filter_auth_opts,
-    Authenticator, DummyAuthenticator,
+    Authenticator, DummyAuthenticator, KofaAuthenticator
     )
+from waeup.cas.server import CASServer
 
 
@@ -54,2 +57,43 @@
         result2 = auth.check_credentials('foo', 'bar')
         assert result2 == (False, 'Invalid username or password.')
+
+
+SERVICES = dict(
+    inst1 = dict(auth_url = 'http://localhost:6666/app',
+                 service_url = 'http://example.com/foo/bar')
+    )
+
+
+class KofaAuthenticatorTests(unittest.TestCase):
+
+    def test_create(self):
+        # we can create KofaAuthenticator instances
+        auth = KofaAuthenticator()
+        assert isinstance(auth, KofaAuthenticator)
+
+    def test_options_defaults(self):
+        # all options have sensible defaults
+        auth = KofaAuthenticator()
+        assert auth.services is None
+
+    def test_options(self):
+        # we can pass options
+        auth = KofaAuthenticator(auth_services=SERVICES)
+        assert auth.services == SERVICES
+
+    def test_paste_deploy_options(self):
+        # we can set CAS server-related options via paste.deploy config
+        paste_conf = os.path.join(
+            os.path.dirname(__file__), 'sample3.ini')
+        app = loadapp('config:%s' % paste_conf)
+        assert isinstance(app, CASServer)
+        assert app.db_connection_string == 'sqlite:///:memory:'
+        assert isinstance(app.auth, KofaAuthenticator)
+
+    def DIStest_check_credentials(self):
+        # we get real responses when querying Kofa instances
+        auth = KofaAuthenticator()
+        result1 = auth.check_credentials('bird', 'bebop')
+        assert result1 == (True, '')
+        result2 = auth.check_credentials('foo', 'bar')
+        assert result2 == (False, 'Invalid username or password.')
