Configuration for VerboseSecurity
Hi I need some clarification on switching on VerboseSecurity and am following the instructions on this page http://hathawaymix.org/Software/VerboseSecurity This states this " To enable verbose security in Zope 2.8.1+, just set the following options in zope.conf: security-policy-implementation python verbose-security on " However on Zope 2.8.7, adding these two lines produces a start up error in Zope. The flag 'verbose-security' doesn't exist in zope.conf in the first place. Any ideas appreciated. -- michael
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 michael nt milne wrote:
Hi
I need some clarification on switching on VerboseSecurity and am following the instructions on this page
http://hathawaymix.org/Software/VerboseSecurity
This states this
" To enable verbose security in Zope 2.8.1+, just set the following options in zope.conf:
security-policy-implementation python verbose-security on
"
However on Zope 2.8.7, adding these two lines produces a start up error in Zope. The flag 'verbose-security' doesn't exist in zope.conf in the first place.
Any ideas appreciated.
$ cd ~/projects/Zope-CVS/Zope-2.8-branch $ bin/mkzopeinstance.py -u /tmp/milne -u admin:123 $ cd /tmp/milne $ vi etc/zope.conf # edit out comments, enable verbose-security $ bin/zopectl fg ... 2006-08-29 16:39:52 INFO Zope Ready to handle requests ^C I'm attaching the working zope.conf file. Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE9KbV+gerLs4ltQ4RAoAjAKDC+TNjsdTkJgGrQRkUirJJXb6eBQCcDmT/ 3UKFE1ZdYbPS8SfKmIP8ujE= =hXvw -----END PGP SIGNATURE----- %define INSTANCE /tmp/milne %define ZOPE /home/tseaver/projects/Zope-CVS/Zope-2.8-branch instancehome $INSTANCE # debug-mode on security-policy-implementation python verbose-security on <eventlog> level info <logfile> path $INSTANCE/log/event.log level info </logfile> </eventlog> <logger access> level WARN <logfile> path $INSTANCE/log/Z2.log format %(message)s </logfile> </logger> <http-server> # valid keys are "address" and "force-connection-close" address 8080 # force-connection-close on </http-server> <zodb_db main> # Main FileStorage database <filestorage> path $INSTANCE/var/Data.fs </filestorage> mount-point / </zodb_db> <zodb_db temporary> # Temporary storage database (for sessions) <temporarystorage> name temporary storage for sessioning </temporarystorage> mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer </zodb_db>
thanks but adding these two lines: security-policy-implementation python verbose-security on produces this error \Program Files\Plone 2.1.3\Data\etc\zope.conf" Error: value did not match regular expression: 'ver######################## ##################################################
$ cd ~/projects/Zope-CVS/Zope-2.8-branch $ bin/mkzopeinstance.py -u /tmp/milne -u admin:123 $ cd /tmp/milne $ vi etc/zope.conf # edit out comments, enable verbose-security $ bin/zopectl fg ... 2006-08-29 16:39:52 INFO Zope Ready to handle requests ^C
I'm attaching the working zope.conf file.
Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE9KbV+gerLs4ltQ4RAoAjAKDC+TNjsdTkJgGrQRkUirJJXb6eBQCcDmT/ 3UKFE1ZdYbPS8SfKmIP8ujE= =hXvw -----END PGP SIGNATURE-----
%define INSTANCE /tmp/milne %define ZOPE /home/tseaver/projects/Zope-CVS/Zope-2.8-branch
instancehome $INSTANCE # debug-mode on security-policy-implementation python verbose-security on
<eventlog> level info <logfile> path $INSTANCE/log/event.log level info </logfile> </eventlog>
<logger access> level WARN <logfile> path $INSTANCE/log/Z2.log format %(message)s </logfile> </logger>
<http-server> # valid keys are "address" and "force-connection-close" address 8080 # force-connection-close on </http-server>
<zodb_db main> # Main FileStorage database <filestorage> path $INSTANCE/var/Data.fs </filestorage> mount-point / </zodb_db>
<zodb_db temporary> # Temporary storage database (for sessions) <temporarystorage> name temporary storage for sessioning </temporarystorage> mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer </zodb_db>
-- michael
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 michael nt milne wrote:
thanks but
adding these two lines:
security-policy-implementation python verbose-security on
produces this error
\Program Files\Plone 2.1.3\Data\etc\zope.conf" Error: value did not match regular expression: 'ver######################## ##################################################
The file I attached *already* enables verbose security (see the third and fourth lines). That file *starts Zope* for me, without errors, on the head of the 2.8 branch::
instancehome $INSTANCE # debug-mode on security-policy-implementation python verbose-security on
<eventlog> level info <logfile> path $INSTANCE/log/event.log level info </logfile> </eventlog>
<logger access> level WARN <logfile> path $INSTANCE/log/Z2.log format %(message)s </logfile> </logger>
<http-server> # valid keys are "address" and "force-connection-close" address 8080 # force-connection-close on </http-server>
<zodb_db main> # Main FileStorage database <filestorage> path $INSTANCE/var/Data.fs </filestorage> mount-point / </zodb_db>
<zodb_db temporary> # Temporary storage database (for sessions) <temporarystorage> name temporary storage for sessioning </temporarystorage> mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer </zodb_db>
Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE9LfE+gerLs4ltQ4RAnV6AJ9g/N6+xexLWJ5pBZ/nkU6qufFA0QCgo+U1 lMEyjOS8+3OU+0tUQQ8luVg= =y8JY -----END PGP SIGNATURE-----
participants (2)
-
michael nt milne -
Tres Seaver