Thanks!  Works great.

I found that you can generate the encrypted password with 

I wish there was a better solution than having the cleartext password in the 
zope.conf file

-----Original Message-----
[mailto:[EMAIL PROTECTED] Behalf Of Sascha
Sent: Monday, October 03, 2005 11:40 AM
Subject: Re: [Zope] ZEO client authentication

Am Montag, 3. Oktober 2005 14:44 schrieb Mika, David P (Research):
> I see that ZEO supports a simple digest authenitcation of clients and that
> this is set in the zeo's config file with the keys:
> authentication-protocol, authentication-database and authentication-realm.
> Further, I can see that a client can connect using e.g. ZEO.ClientStorage
> with arguments for a userid & password (set in the ZEO authentication
> database).  However, how does one configure Zope (as a client to the ZEO
> server) to use this authentication?  I see nothing in the Zope config file.
>  Somehow Zope must be able to pass a valid userid and password in the
> authentication database to ZEO.
> Dave

Hi Dave,

this might help, although it's not written by me so I'm not 100% sure that 
I've picked up everything:

small patch to lib/python/ZODB:

---    (revision 37730)
+++    (working copy)
@@ -150,7 +150,10 @@
-            read_only_fallback=self.config.read_only_fallback)
+            read_only_fallback=self.config.read_only_fallback,
+            username=self.config.username,
+            password=self.config.password,
+            realm=self.config.realm)

 class BDBStorage(BaseConfig):

Index: component.xml
--- component.xml        (revision 37730)
+++ component.xml        (working copy)
@@ -132,6 +132,16 @@
         read_only_fallback should be true.
+    <key name="username" required="no">
+      <description>
+        The authentication username of the server.
+      </description>
+    </key>
+    <key name="password" required="no">
+      <description>
+        The authentication password of the server.
+      </description>
+    </key>
     <key name="realm" required="no">
         The authentication realm of the server.  Some authentication

something like this in your zeo.conf <zeo> section:

          authentication-protocol digest
          authentication-database $INSTANCE/etc/auth.db
          authentication-realm your_realm

obviously, a username/password in $INSTANCE/etc/auth.db (ZEO instance, that 

        $ cat /mnt/zope/ZEOHome/etc/auth.db
        realm your_realm
        your_username: your_crypted_password

and something like this in your zope.conf:

        <zodb_db main>
          mount-point /
          cache-size 10000
            server localhost:1234
            username your_username
            password your_cleartext_password
        </zodb_db main>

now, I'm not sure how to create the encrypted password, I guess 
will help.

Good luck,


Gallileus - the power of knowledge

Gallileus GmbH         

Pintschstra├če 16                  fon +49-(0)30-41 93 43 43
10249 Berlin                      fax +49-(0)30-41 93 43 45
Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )
Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to