Commit Graph
9 Commits
Author SHA1 Message Date
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