=== modified file 'Makefile' --- Makefile 2008-08-18 05:24:20 +0000 +++ Makefile 2008-08-18 23:55:28 +0000 @@ -56,7 +56,7 @@ doc: $(DOCS) %.5: %.xml - cd $(dir $^); $(DOCBOOKTOMAN) $(notdir $^) $(MANPOST) $(notdir $@) + cd $(dir $^); $(DOCBOOKTOMAN) $(notdir $^); $(MANPOST) $(notdir $@) %.8: %.xml cd $(dir $^); $(DOCBOOKTOMAN) $(notdir $^); $(MANPOST) $(notdir $@) === modified file 'mandos' --- mandos 2008-08-14 21:03:26 +0000 +++ mandos 2008-08-18 23:55:28 +0000 @@ -700,12 +700,11 @@ server_config = ConfigParser.SafeConfigParser(server_defaults) del server_defaults server_config.read(os.path.join(options.configdir, "mandos.conf")) - server_section = "server" # Convert the SafeConfigParser object to a dict - server_settings = dict(server_config.items(server_section)) + server_settings = server_config.defaults() # Use getboolean on the boolean config option server_settings["debug"] = server_config.getboolean\ - (server_section, "debug") + ("DEFAULT", "debug") del server_config # Override the settings from the config file with command line === modified file 'mandos.conf' --- mandos.conf 2008-08-09 01:39:09 +0000 +++ mandos.conf 2008-08-18 23:55:28 +0000 @@ -1,5 +1,5 @@ -# This file must have exactly one section named "server". -[server] +# This file must have exactly one section named "DEFAULT". +[DEFAULT] # These are the default values for the server, uncomment and change # them if needed. === modified file 'mandos.conf.xml' --- mandos.conf.xml 2008-08-08 01:31:58 +0000 +++ mandos.conf.xml 2008-08-18 23:55:28 +0000 @@ -1,17 +1,16 @@ - /etc/mandos/mandos.conf"> + ]> &CONFNAME; - + &CONFNAME; &VERSION; @@ -32,7 +31,8 @@ 2008 - Teddy Hogeborn & Björn Påhlsson + Teddy Hogeborn + Björn Påhlsson @@ -67,7 +67,7 @@ &CONFNAME; - Configuration file for Mandos + Configuration file for the Mandos server @@ -80,19 +80,28 @@ DESCRIPTION - The file &CONFPATH; is a simple configuration file for mandos - and is looked on at startup of the service. The configuration - file must start with [server]. The format for - the rest is a simple VAR = VALUE pair. Values may not be empty. + The file &CONFPATH; is a simple configuration file for + mandos + 8, and is read by it at + startup. The configuration file starts with + [DEFAULT] on a line by itself, + followed by any number of + option=value + entries, with continuations in the style of RFC 822. + option: + value is also accepted. Note + that leading whitespace is removed from values. Lines beginning + with # or ; are ignored and may be + used to provide comments. - The paramters are: + The options are: - interface + interface This option allows you to override the default network @@ -104,7 +113,7 @@ - address + address This option allows you to override the default network @@ -116,7 +125,7 @@ - port + port This option allows you to override the default port to @@ -128,7 +137,7 @@ - debug + debug This option allows you to modify debug mode with a true/false @@ -138,7 +147,7 @@ - priority + priority This option allows you to override the default gnutls @@ -151,7 +160,7 @@ - servicename + servicename This option allows you to override the default Zeroconf