Commit Graph
24 Commits
Author SHA1 Message Date
mmdolze 8e291370c3 Include strings.h which is needed for strcasemp. Some systems declare them
in string.h, but it should be possible to include both.
2009-05-30 11:20:16 +00:00
marschap ca9964e03a rename structures key & section to ConfigKey & ConfigSection to avoid
generation wrong links in Doxygen
2008-12-21 17:40:42 +00:00
marschap b3a7841e2e fix typo in Doxygen comment 2008-11-29 16:13:11 +00:00
marschap 071faaedee add braces to silence a warning 2007-10-04 13:52:50 +00:00
marschap 1899ff755c make including config.h always depend on HAVE_CONFIG_H; replace printf() by debug() 2007-06-17 10:20:55 +00:00
marschap 3e84564e6a new function: config_get_tristate() 2007-05-12 16:08:40 +00:00
marschap a44091f6fe remove compile-time option to get configuration from LDAP 2007-04-14 07:54:27 +00:00
marschap 9cfa7c0a66 hide reading config from a string behind an #ifdef, avoid code for nested functions 2006-12-03 12:04:44 +00:00
marschap 40cde70e7f replace config file parser with a more tolerant one that allows spaces around tokens 2006-09-18 10:39:21 +00:00
marschap 086b56a60d doxygen-ize publich functions; make config_read_file() not ignore errors frm underlying parser 2006-09-18 10:37:51 +00:00
marschap 9344df67ef declare functions that are used only locally static 2006-09-18 09:48:39 +00:00
marschap 93404d5541 break long lines 2006-09-17 09:51:19 +00:00
marschap cc2c84a7b8 declare constant function parameters const (as well as constant function return values) 2006-09-12 16:23:24 +00:00
marschap aa7a671a25 allow on/off in boolean config fileds 2006-09-10 11:34:18 +00:00
marschap 4e3c2eef1d get rid of shared/fileio.*: it malloced/freed every byte read 2006-09-10 11:25:55 +00:00
marschap d4a3e7444d cleanup: remove unnecessary (=invisible) leading spaces 2006-04-27 15:10:59 +00:00
marschap 1aff9c4226 more/better error checks, harmonized coding style 2006-04-26 18:02:25 +00:00
marschap 61c80a199b distinguish between NUL chars and 0 integers 2006-04-24 17:37:53 +00:00
boercher 78a4e731db fixed memory-lead (sizeof(LCDd.conf)) 2005-08-19 23:14:57 +00:00
reenoo 4166da2f2b Fixed crashes due to use of nested functions.
I have therefore added shared/fileio.c/h to encapsule
buffered file operations, thus making it possible
to re-read the configuration file unlike with the
patch I committed to stable-0-4-4.

See also: http://lists.omnipotent.net/pipermail/lcdproc/2003-December/008413.html
2003-12-28 23:47:30 +00:00
reenoo e4e948523f LDAP support added
- This patch enables LCDd to retrieve its configuration
  options from an LDAP directory.
- The code was tested with OpenLDAP 2.1.x (21<=x<=22) only.
- LDAP support is disabled by default and has to be enabled
  with ./configure --enable-ldap.
  (See ./configure --help for other options. Not all options
  have any effect yet.)
- Currently only anonymous LDAP binds are supported.
- The DN of the main configuration object has to be passed to LCDd
  instead of the configuration file location:
  LCDd -c "ldap://yourhost.yourcompany.com/cn=config1,cn=lcdproc,dc=yourcompany dc=COM"
  The basic idea behind the LCDproc object classes is that they
  are more or less verbatim copies of the corresponding sections in a
  generic LCDd.conf
- Unfortunately schema files cannot be provided yet, because LCDproc does
  not have a registered OID namespace and OID hijacking is prohibited.
2003-12-25 15:02:34 +00:00
robijn 4a7ef8d847 - Fixed option processing of bool options in config file.
- Tried to make option order more consistent
2003-02-27 20:31:51 +00:00
robijn 7d39b49079 - Implemented config_clean.
- Now using strdup(str) i.o. malloc(strlen(str)+1).
2002-08-04 20:52:00 +00:00
robijn 91ffd9d109 Moved configfile.c and .h to shared/
Made reporting more general by making syslog appname settable.
2002-06-29 16:37:18 +00:00