~ubuntu-branches/ubuntu/precise/nss-pam-ldapd/precise-security

« back to all changes in this revision

Viewing changes to nslcd/log.h

  • Committer: Package Import Robot
  • Author(s): Arthur de Jong
  • Date: 2011-09-04 21:00:00 UTC
  • mfrom: (14.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20110904210000-pe3u91iga88vtr16
Tags: 0.8.4
* Upload to unstable
* switch to using the member attribute by default instead of
  uniqueMember (backwards incompatible change)
* only return "x" as a password hash when the object has the shadowAccount
  objectClass and nsswitch.conf is configured to do shadow lookups using
  LDAP (this avoids some problems with pam_unix)
* fix problem with partial attribute name matches in DN (thanks Timothy
  White)
* fix a problem with objectSid mappings with recent versions of OpenLDAP
  (patch by Wesley Mason)
* set the socket timeout in a connection callback to avoid timeout
  issues during the SSL handshake (patch by Stefan Völkel)
* check for unknown variables in pam_authz_search
* only check password expiration when authenticating, only check account
  expiration when doing authorisation
* make buffer sizes consistent and grow all buffers holding string
  representations of numbers to be able to hold 64-bit numbers
* update AX_PTHREAD from autoconf-archive
* support querying DNS SRV records from a different domain than the current
  one (based on a patch by James M. Leddy)
* fix a problem with uninitialised memory while parsing the tls_ciphers
  option (closes: #638872) (but doesn't work yet due to #640384)
* implement bounds checking of numeric values read from LDAP (patch by
  Jakub Hrozek)
* correctly support large uid and gid values from LDAP (patch by Jakub
  Hrozek)
* improvements to the configure script (patch by Jakub Hrozek)
* switch to dh for debian/rules and bump debhelper compatibility to 8
* build Debian packages with multiarch support
* ship shlibs (but still no symbol files) for libnss-ldapd since that was
  the easiest way to support multiarch
* fix output in init script when restarting nslcd (closes: #637132)
* correctly handle leading and trailing spaces in preseeded debconf uri
  option (patch by Andreas B. Mundt) (closes: #637863)
* support spaces around database names in /etc/nsswitch.conf while
  configuring package (closes: #640185)
* updated Russian debconf translation by Yuri Kozlov (closes: #637751)
* updated French debconf translation by Christian Perrier (closes: #637756)
* added Slovak debconf translation by Slavko (closes: #637759)
* updated Danish debconf translation by Joe Hansen (closes :#637763)
* updated Brazilian Portuguese debconf translation by Denis Doria
* updated Portuguese debconf translation by Américo Monteiro
* updated Japanese debconf translation by Kenshi Muto (closes: #638195)
* updated Czech debconf translation by Miroslav Kure (closes: #639026)
* updated German debconf translation by Chris Leick (closes: #639107)
* updated Spanish debconf translation by Francisco Javier Cuadrado
  (closes: #639236)
* updated Dutch debconf translation by Arthur de Jong with help from Paul
  Gevers and Jeroen Schot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
   log.h - definitions of logging funtions
3
3
 
4
 
   Copyright (C) 2002, 2003, 2007, 2008 Arthur de Jong
 
4
   Copyright (C) 2002, 2003, 2007, 2008, 2010, 2011 Arthur de Jong
5
5
 
6
6
   This library is free software; you can redistribute it and/or
7
7
   modify it under the terms of the GNU Lesser General Public
23
23
#ifndef NSLCD__LOG_H
24
24
#define NSLCD__LOG_H 1
25
25
 
26
 
 
27
26
#include <syslog.h>
28
27
#include "compat/attrs.h"
29
28
 
30
 
 
31
29
/* set loglevel when no logging is configured */
32
 
void log_setdefaultloglevel(int loglevel);
33
 
 
34
 
 
35
 
/* configure logging to a file */
36
 
void log_addlogging_file(const char *filename,int loglevel);
37
 
 
38
 
 
39
 
/* configure logging to syslog */
40
 
void log_addlogging_syslog(int loglevel);
41
 
 
42
 
 
43
 
/* configure a null logging mode (no logging) */
44
 
void log_addlogging_none(void);
45
 
 
 
30
void log_setdefaultloglevel(int pri);
46
31
 
47
32
/* start the logging with the configured logging methods
48
33
   if no method is configured yet, logging is done to syslog */
49
34
void log_startlogging(void);
50
35
 
51
 
 
52
36
/* indicate that a session id should be included in the output
53
37
   and set it to a new value */
54
38
void log_newsession(void);
55
39
 
 
40
/* indicate that we should clear any session identifiers set by
 
41
   log_newsession */
 
42
void log_clearsession(void);
 
43
 
 
44
/* indicate that a request identifier should be included in the output
 
45
   from this point on, until log_newsession() is called */
 
46
void log_setrequest(const char *format, ...)
 
47
  LIKE_PRINTF(1,2);
56
48
 
57
49
/* log the given message using the configured logging method */
58
50
void log_log(int pri,const char *format, ...)
59
51
  LIKE_PRINTF(2,3);
60
52
 
61
 
 
62
 
/* return the syslog loglevel represented by the string
63
 
   return -1 on unknown */
64
 
int log_getloglevel(const char *lvl)
65
 
  MUST_USE;
66
 
 
67
 
 
68
53
#endif /* not NSLCD__LOG_H */