Commit Graph
79 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 db5e45b534 add two new functions: LL_GoTo(), LL_ForALL() 2008-11-30 22:01:19 +00:00
marschap 34cdf356e5 remove unused functions 2008-11-30 21:35:53 +00:00
marschap dcc643ec18 extend deletion functions in LL.c, use them to make "bye" client command work 2008-11-30 15:30:28 +00:00
marschap f50630c566 better Doxygen comments, a bit of cleanup 2008-11-30 14:01:28 +00:00
marschap b3a7841e2e fix typo in Doxygen comment 2008-11-29 16:13:11 +00:00
marschap a3db7b4cb2 cleanup debug comments, add more Doxygen comments 2008-11-28 18:02:32 +00:00
marschap 925be143ac add Doxygen documentation (partially) 2008-11-28 10:48:39 +00:00
marschap 071faaedee add braces to silence a warning 2007-10-04 13:52:50 +00:00
marschap 77209a6f3f harmonize report & debug() messages: no '\n' or '.' at end 2007-06-17 10:39:49 +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 ced4dddf07 update private snprintf to a GPL'ed version 2007-04-27 16:50:45 +00:00
marschap 86c4149642 a little bit of Doxygen here and there 2007-04-14 08:23:48 +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 9a5915a214 remove unused files 2006-09-30 20:35:13 +00:00
marschap f10895d04d FSF address change 2006-09-30 18:18:22 +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 5fc4dfc562 fix sock_connect() to return -1 on all errors (Frederick Nacino) 2006-05-07 10:08:31 +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
marschap 08574b8baa silence 2 more warningsi; fix a potential NULL assignment on the way 2006-04-14 09:59:54 +00:00
marschap 09cb8d86b5 remove debugging cruft 2006-04-13 07:21:00 +00:00
marschap d2bafd9cdc make sure error messages to the client are always '\0'-terminated 2006-04-12 16:49:15 +00:00
marschap e0bc105759 add GNU getopti & check for it; prepare for use with getopt_long() 2006-01-16 19:53:28 +00:00
marschap aeffd250a1 require automake 1.7 in condifure.in; update all Makefile.am: add comments,
replace obsoleted INCLUDES by AM_CPPFLAGS
2006-01-16 19:36:58 +00:00
boercher 7674db0eb5 avoid Doxygen warnings 2005-10-25 22:38:19 +00:00
boercher bba4631370 eliminated compiler warnings 2005-10-25 22:34:07 +00:00
boercher 78a4e731db fixed memory-lead (sizeof(LCDd.conf)) 2005-08-19 23:14:57 +00:00
boercher 8c3f36f890 fixed valgrind-warnings:
- added missing initialization of buffile->buf
- corrected malloc-call
2005-08-19 23:13:05 +00:00
boercher 93f162ff48 - new socket function sock_send_error() and
sock_printf_error(): factored out the 'huh?-stuff, added error report
 log)
- use sock_printf() and sock_printf_error() if necessary (no need to
  use sprintf())
2005-07-17 16:14:07 +00:00
marschap 3771a8273e added .cvsignore files, thanks to Volker Boerchers for his contribution 2005-05-22 07:16:48 +00:00
marschap 9ead481dbb remove duplicate code: make sock_send_string() depend on sock_send();
use defined constants and character constants instead of simple ascii values;
new function sock_printf(): format data using vsnprintf and send it
2005-05-21 14:55:46 +00:00
marschap 06f6590c9c eliminate compiler warnings (VB) 2005-04-05 07:28:18 +00:00
marschap b0a9e45704 reorganized report_* variables in main.c and report.c so that they can be static
to their file; also static-alized other variables an functions in main.c
2005-04-01 17:17:05 +00:00
robijn 80aa4d3d1e Fixed tiny bug in sock_recv_string that caused some clients to hang. 2004-02-06 16:33:55 +00:00
reenoo e516bea574 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.
2004-01-05 00:39:14 +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
blt 67cae9e447 Add support for Winsock library and logging to the windows event log 2003-08-06 12:11:54 +00:00
gfk d3223644a2 Portability: patch by Christian Grigis <christian.grigis@smartdata.ch> to allow building the software from a directory different 2003-08-02 00:37:10 +00:00