[CalendarServer-changes] [254] CalendarServer/trunk/twistedcaldav/repository.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 5 12:48:34 PDT 2006


Revision: 254
          http://trac.macosforge.org/projects/calendarserver/changeset/254
Author:   cdaboo at apple.com
Date:     2006-10-05 12:48:33 -0700 (Thu, 05 Oct 2006)

Log Message:
-----------
Print out some descriptions of configured authentication setup.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/repository.py

Modified: CalendarServer/trunk/twistedcaldav/repository.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/repository.py	2006-10-05 18:38:48 UTC (rev 253)
+++ CalendarServer/trunk/twistedcaldav/repository.py	2006-10-05 19:48:33 UTC (rev 254)
@@ -186,23 +186,29 @@
     portal = Portal(auth.DavRealm())
     if authenticator.credentials == ATTRIBUTE_VALUE_PROPERTY:
         portal.registerChecker(auth.TwistedPropertyChecker())
+        print "Using property-based password checker."
     elif authenticator.credentials == ATTRIBUTE_VALUE_DIRECTORY:
         portal.registerChecker(directory.DirectoryCredentialsChecker())
+        print "Using directory-based password checker."
     elif authenticator.credentials == ATTRIBUTE_VALUE_KERBEROS:
         if authenticator.type == "basic":
             portal.registerChecker(authkerb.BasicKerberosCredentialsChecker())
         elif authenticator.type == "kerberos":
             portal.registerChecker(authkerb.NegotiateCredentialsChecker())
+        print "Using Kerberos-based password checker."
     
     if authenticator.type == "basic":
         if authenticator.credentials == ATTRIBUTE_VALUE_KERBEROS:
             credentialFactories = (authkerb.BasicKerberosCredentialFactory(authenticator.service, authenticator.realm),)
         else:
             credentialFactories = (basic.BasicCredentialFactory(authenticator.realm),)
+        print "Using HTTP BASIC authentication."
     elif authenticator.type == "digest":
         credentialFactories = (digest.DigestCredentialFactory("md5", authenticator.realm),)
+        print "Using HTTP DIGEST authentication."
     elif authenticator.type == "kerberos":
         credentialFactories = (authkerb.NegotiateCredentialFactory(authenticator.service),)
+        print "Using HTTP NEGOTIATE authentication."
     
     loginInterfaces = (auth.IPrincipal,)
     

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061005/49a39192/attachment.html


More information about the calendarserver-changes mailing list