Blame ChangeLog

Packit 6bd9ab
2018-02-18  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [382b6ea] INSTALL, ar-lib, config.guess, config.sub, depcomp,
Packit 6bd9ab
	  py-compile: Update files from latest automake
Packit 6bd9ab
Packit 6bd9ab
2018-02-17  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [e8a4705] tests/test_pylint.sh: Fix running pylint on distcheck
Packit 6bd9ab
Packit 6bd9ab
	  This sets PYTHONPATH so that both the source and build directories
Packit 6bd9ab
	  are used to find constants.py.
Packit 6bd9ab
Packit 6bd9ab
2018-02-17  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [9a50971] common/expr.c, compat/attrs.h: Mark case blocks without
Packit 6bd9ab
	  break statement
Packit 6bd9ab
Packit 6bd9ab
	  This avoids a gcc warning in non-empty case blocks without a
Packit 6bd9ab
	  break statement by explicitly marking those blocks.
Packit 6bd9ab
Packit 6bd9ab
2018-02-16  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [c05e326] nslcd/cfg.c, nslcd/common.h: Increase size of hostname
Packit 6bd9ab
	  buffer
Packit 6bd9ab
Packit 6bd9ab
	  This increases the host name buffer to support host names (that
Packit 6bd9ab
	  include FQDNs) to 255 characters and removes the reliance on
Packit 6bd9ab
	  HOST_NAME_MAX and _POSIX_HOST_NAME_MAX which may be smaller in
Packit 6bd9ab
	  some situations.
Packit 6bd9ab
Packit 6bd9ab
	  Closes https://github.com/arthurdejong/nss-pam-ldapd/issues/22
Packit 6bd9ab
Packit 6bd9ab
2017-12-23  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [9760dce] nslcd/cfg.c: Increase size of config file token
Packit 6bd9ab
Packit 6bd9ab
	  This increases the maximum size of tokens that are read from
Packit 6bd9ab
	  the nslcd.conf configuration file to 256 characters. This was
Packit 6bd9ab
	  a problem for some very long uri values.
Packit 6bd9ab
Packit 6bd9ab
	  Closes https://github.com/arthurdejong/nss-pam-ldapd/issues/21
Packit 6bd9ab
Packit 6bd9ab
2017-10-13  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [8f76d24] nslcd/cfg.c, tests/test_cfg.c: Support spaces in
Packit 6bd9ab
	  attribute mapping expressions
Packit 6bd9ab
Packit 6bd9ab
2017-06-26  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [47fd03b] AUTHORS, ChangeLog, NEWS, configure.ac,
Packit 6bd9ab
	  man/chsh.ldap.1.xml, man/getent.ldap.1.xml, man/nslcd.8.xml,
Packit 6bd9ab
	  man/nslcd.conf.5.xml, man/pam_ldap.8.xml, man/pynslcd.8.xml,
Packit 6bd9ab
	  nslcd/nslcd.c, pynslcd/pynslcd.py, utils/cmdline.py: Get files
Packit 6bd9ab
	  ready for 0.9.8 release
Packit 6bd9ab
Packit 6bd9ab
2017-06-25  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [7920d85] tests/test_ldapcmds.sh, tests/test_nsscmds.sh: Ignore
Packit 6bd9ab
	  password hashes in consistent manner
Packit 6bd9ab
Packit 6bd9ab
	  This changes the getent and getent.ldap tests to ignore password
Packit 6bd9ab
	  hashes that may be present in shadow lookups in a consistent
Packit 6bd9ab
	  manner.
Packit 6bd9ab
Packit 6bd9ab
	  This also adds minor compatibility improvements.
Packit 6bd9ab
Packit 6bd9ab
2017-06-25  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [65695aa] pynslcd/cfg.py, pynslcd/mypidfile.py, pynslcd/pynslcd.py:
Packit 6bd9ab
	  Create pidfile directory in pynslcd
Packit 6bd9ab
Packit 6bd9ab
	  This ensures that /var/run/nslcd is created (when it does not
Packit 6bd9ab
	  exist) when starting pynslcd.
Packit 6bd9ab
Packit 6bd9ab
2017-06-25  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [419aab2] pynslcd/cfg.py, pynslcd/group.py, pynslcd/passwd.py:
Packit 6bd9ab
	  Add nss_uid_offset and nss_gid_offset to pynslcd
Packit 6bd9ab
Packit 6bd9ab
2017-03-20  Seth Wright <seth@crosse.org>
Packit 6bd9ab
Packit 6bd9ab
	* [5103173] man/nslcd.conf.5.xml, nslcd/cfg.c, nslcd/cfg.h,
Packit 6bd9ab
	  nslcd/group.c, nslcd/passwd.c: Add the ability to offset UID
Packit 6bd9ab
	  and GID numbers
Packit 6bd9ab
Packit 6bd9ab
2017-06-18  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [fee74d9] tests/Makefile.am, tests/test_ldapcmds.sh: Portability
Packit 6bd9ab
	  improvements to test_ldapcmds.sh
Packit 6bd9ab
Packit 6bd9ab
	  This fixes an issue with the export statement in POSIX shell
Packit 6bd9ab
	  scripts, ensures that the commands in the output match those
Packit 6bd9ab
	  in the script, strips password hashes for shadow lookups (for
Packit 6bd9ab
	  systems without PAM where these are exposed) and only runs the
Packit 6bd9ab
	  tests if we enabled the utils.
Packit 6bd9ab
Packit 6bd9ab
	  Fixes 246a1f3.
Packit 6bd9ab
Packit 6bd9ab
2017-06-17  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [5126b26] nslcd/ether.c: Use uint8_t instead of u_int8_t
Packit 6bd9ab
Packit 6bd9ab
	  The former seems to be available on more platforms than the latter.
Packit 6bd9ab
Packit 6bd9ab
	  Fixes be26510.
Packit 6bd9ab
Packit 6bd9ab
2017-06-17  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [fe3772f] compat/pam_compat.h: Fix HAVE_DECL_PAM_ERROR usage
Packit 6bd9ab
Packit 6bd9ab
	  The macro is supposed to be defined to 0 (instead of undefined)
Packit 6bd9ab
	  if pam_info() and pam_error() are not found.
Packit 6bd9ab
Packit 6bd9ab
	  Fixes 3d5ab89.
Packit 6bd9ab
Packit 6bd9ab
2017-06-17  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [ca62f59] nslcd/shadow.c: Also filter shadow entries by validnames
Packit 6bd9ab
Packit 6bd9ab
2017-06-17  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [e68b85a] nslcd/passwd.c, nslcd/shadow.c: Fix and clarify a
Packit 6bd9ab
	  few comments
Packit 6bd9ab
Packit 6bd9ab
2017-06-16  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [3d5ab89] compat/pam_compat.h, configure.ac: Fix pam_info()
Packit 6bd9ab
	  and pam_error() replacement
Packit 6bd9ab
Packit 6bd9ab
	  On FreeBSD these are functions while on Linux they are macros
Packit 6bd9ab
	  causing them to be incorrectly replaced on FreeBSD. This resulted
Packit 6bd9ab
	  in a crash of the PAM module when e.g. presenting messages about
Packit 6bd9ab
	  password expiry.
Packit 6bd9ab
Packit 6bd9ab
2017-06-16  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [b5d1dd2] tests/Makefile.am: Clean log from test_pamcmds.expect
Packit 6bd9ab
Packit 6bd9ab
	  This removes test_pamcmds.log that is generated by
Packit 6bd9ab
	  test_pamcmds.expect when running the test suite. This avoids an
Packit 6bd9ab
	  error in the distcheck target.
Packit 6bd9ab
Packit 6bd9ab
2017-06-16  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [246a1f3] tests/test_ldapcmds.sh: Fix running test_ldapcmds.sh
Packit 6bd9ab
	  during distcheck
Packit 6bd9ab
Packit 6bd9ab
	  This ensures that Python can find both getent.py (from source
Packit 6bd9ab
	  directory) and constants.py (from build directory) when running
Packit 6bd9ab
	  the tests from the distcheck target.
Packit 6bd9ab
Packit 6bd9ab
	  This also makes the script more similar to test_nsscmds.sh.
Packit 6bd9ab
Packit 6bd9ab
	  Fixes 9c803d7.
Packit 6bd9ab
Packit 6bd9ab
2017-06-15  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [43862ba] : Add pam_authc_search option
Packit 6bd9ab
Packit 6bd9ab
	  This option can be used to configure the search operation that
Packit 6bd9ab
	  should be performed after authentication.
Packit 6bd9ab
Packit 6bd9ab
2017-06-15  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [5141b09] man/nslcd.conf.5.xml, nslcd/pam.c: Allow skipping
Packit 6bd9ab
	  post-authentication search altogether
Packit 6bd9ab
Packit 6bd9ab
2017-06-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [0cafb08] nslcd/myldap.c, nslcd/myldap.h, nslcd/pam.c,
Packit 6bd9ab
	  nslcd/usermod.c: Implement myldap_bind() function
Packit 6bd9ab
Packit 6bd9ab
	  This function integrates the myldap_set_credentials() and
Packit 6bd9ab
	  myldap_get_policy_response() and performs the bind operation
Packit 6bd9ab
	  witout actually performing a search.
Packit 6bd9ab
Packit 6bd9ab
	  The function performs a "fake" search that returns after performing
Packit 6bd9ab
	  the LDAP BIND operation.
Packit 6bd9ab
Packit 6bd9ab
	  This replaces a number of dummy search operations that were there
Packit 6bd9ab
	  to ensure that the connection was open. This allows us to skip
Packit 6bd9ab
	  the search operation after authentication.
Packit 6bd9ab
Packit 6bd9ab
2017-06-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [9564dd0] nslcd/pam.c: Implement handling of pam_authc_search
Packit 6bd9ab
	  option
Packit 6bd9ab
Packit 6bd9ab
	  This allows performing a different, configurable search from
Packit 6bd9ab
	  the default BASE search after the BIND operation.
Packit 6bd9ab
Packit 6bd9ab
2017-06-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [f72aaa2] man/nslcd.conf.5.xml: Document pam_authc_search option
Packit 6bd9ab
Packit 6bd9ab
2017-06-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [5d11cb8] nslcd/cfg.c, nslcd/cfg.h, nslcd/pam.c: Add
Packit 6bd9ab
	  pam_authc_search option parsing
Packit 6bd9ab
Packit 6bd9ab
2017-06-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [bcc3a08] nslcd/pam.c, pynslcd/pam.py: Reorganise PAM search
Packit 6bd9ab
	  var building functions
Packit 6bd9ab
Packit 6bd9ab
	  This moves the autzsearch_var_add(), autzsearch_vars_free(),
Packit 6bd9ab
	  autzsearch_var_get() and do_autzsearches() functions to the top of
Packit 6bd9ab
	  the file using more generic names and introduces search_vars_new()
Packit 6bd9ab
	  in prepartion of other similar searches.
Packit 6bd9ab
Packit 6bd9ab
	  This also renames the remaining authzsearch functions to
Packit 6bd9ab
	  authz_search to be consistent with the pam_authz_search option.
Packit 6bd9ab
Packit 6bd9ab
2017-06-13  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [ebc0f76] README, configure.ac, tests/test.ldif: Switch to
Packit 6bd9ab
	  HTTPS URLs
Packit 6bd9ab
Packit 6bd9ab
2017-06-13  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [be26510] compat/ether.c, compat/ether.h, configure.ac,
Packit 6bd9ab
	  nslcd/ether.c, pynslcd/ether.py: Query ethernet addresses in
Packit 6bd9ab
	  compact and long format
Packit 6bd9ab
Packit 6bd9ab
	  This ensures that when querying the address 0:18:8a:54:1a:8b
Packit 6bd9ab
	  both that format and 00:18:8a:54:1a:8b is searched for in LDAP.
Packit 6bd9ab
Packit 6bd9ab
	  This was triggerred by the fact that ether_ntoa() on FreeBSD
Packit 6bd9ab
	  returns the long format while glibc uses the compact format.
Packit 6bd9ab
Packit 6bd9ab
	  Since we are no longer using the libc version of ether_ntoa() we
Packit 6bd9ab
	  can also drop the compatibility implementation of ether_ntoa_r().
Packit 6bd9ab
Packit 6bd9ab
2017-06-07  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [becc883] nslcd/passwd.c: Log entries and lookups failing
Packit 6bd9ab
	  nss_min_uid
Packit 6bd9ab
Packit 6bd9ab
	  This logs (at debug level) any LDAP uidNumber attribute values
Packit 6bd9ab
	  (or translated objectSid attribute values) that are lower than
Packit 6bd9ab
	  nss_min_uid.	It also logs getpwuid() requests for such uids.
Packit 6bd9ab
Packit 6bd9ab
2017-06-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [5a84be2] utils/chsh.py, utils/cmdline.py, utils/getent.py,
Packit 6bd9ab
	  utils/nslcd.py, utils/shells.py, utils/users.py: Make nslcd-utils
Packit 6bd9ab
	  Python 3 compatible
Packit 6bd9ab
Packit 6bd9ab
	  This changes the getent.ldap and chsh.ldap commands to be
Packit 6bd9ab
	  compatible with Python 2 and Python 3 with the same code.
Packit 6bd9ab
Packit 6bd9ab
	  This does switch to raw I/O because Python 3 does not support
Packit 6bd9ab
	  bufferred I/O on sockets.
Packit 6bd9ab
Packit 6bd9ab
2017-06-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [9c803d7] tests/Makefile.am, tests/test_ldapcmds.sh,
Packit 6bd9ab
	  tests/test_nsscmds.sh, tests/testenv.sh: Add tests for getent.ldap
Packit 6bd9ab
	  command
Packit 6bd9ab
Packit 6bd9ab
	  This more or less duplicates the tests from test_nsscmds.sh to
Packit 6bd9ab
	  test_ldapcmds.sh with some modifications for the differences
Packit 6bd9ab
	  in output.
Packit 6bd9ab
Packit 6bd9ab
	  This also extends the test_nsscmds.sh tests to handle the case
Packit 6bd9ab
	  where shadow lookups do not go through LDAP.
Packit 6bd9ab
Packit 6bd9ab
2017-06-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [a357131] utils/getent.py: Fix output of getent.ldap networks
Packit 6bd9ab
Packit 6bd9ab
	  Contrary to the hosts output the network name is listed first.
Packit 6bd9ab
Packit 6bd9ab
2017-06-03  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [58c7a94] utils/getent.py: Fix IPv6 lookups in getent.ldap
Packit 6bd9ab
Packit 6bd9ab
2017-06-03  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [5173e55] man/getent.ldap.1.xml, utils/getent.py: Accept multiple
Packit 6bd9ab
	  key arguments to getent.ldap
Packit 6bd9ab
Packit 6bd9ab
	  This allows supplying multiple arguments to getent.ldap that
Packit 6bd9ab
	  will each act as a search key for lookups, similar to what normal
Packit 6bd9ab
	  getent allows.
Packit 6bd9ab
Packit 6bd9ab
2017-02-07  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [53f797b] nslcd/nslcd.c: Exit with 0 when stopping nslcd
Packit 6bd9ab
Packit 6bd9ab
	  When receiving a signal this will result in nslcd returning with
Packit 6bd9ab
	  a success exit code.
Packit 6bd9ab
Packit 6bd9ab
	  Thanks Stanislav Moravec for pointing this out.
Packit 6bd9ab
Packit 6bd9ab
2016-09-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [c12cd14] nslcd/nslcd.c: Remove duplicate break statement
Packit 6bd9ab
Packit 6bd9ab
2016-09-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [d8ad7b1] nslcd/myldap.c: Do not try all LDAP servers on failed
Packit 6bd9ab
	  authentication
Packit 6bd9ab
Packit 6bd9ab
	  See https://bugs.launchpad.net/bugs/1618190
Packit 6bd9ab
Packit 6bd9ab
2016-08-30  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [a3da150] utils/nslcd.py: Replace Python assertions with exceptions
Packit 6bd9ab
Packit 6bd9ab
	  The assertions can be optimised out when compiling the modules
Packit 6bd9ab
	  with -O which would break the protocol handling. This ensures
Packit 6bd9ab
	  that errors are properly handled even if optimisation is enabled.
Packit 6bd9ab
Packit 6bd9ab
	  Thanks Yu-Chun Huang for reporting this.
Packit 6bd9ab
	  https://github.com/arthurdejong/nss-pam-ldapd/issues/14
Packit 6bd9ab
Packit 6bd9ab
2016-08-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [c286bb5] AUTHORS, ChangeLog, NEWS, README, configure.ac,
Packit 6bd9ab
	  man/chsh.ldap.1.xml, man/getent.ldap.1.xml, man/nslcd.8.xml,
Packit 6bd9ab
	  man/nslcd.conf.5.xml, man/pam_ldap.8.xml, man/pynslcd.8.xml,
Packit 6bd9ab
	  nslcd/nslcd.c, pynslcd/pynslcd.py, utils/cmdline.py: Get files
Packit 6bd9ab
	  ready for 0.9.7 release
Packit 6bd9ab
Packit 6bd9ab
2016-08-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [db9494e] tests/Makefile.am: Only run doctests when building
Packit 6bd9ab
	  pynslcd
Packit 6bd9ab
Packit 6bd9ab
2016-08-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [cb16e4c] nss/bsdnss.c: Avoid some warnings on FreeBSD
Packit 6bd9ab
Packit 6bd9ab
	  This adds casts to and from void * for the function pointers
Packit 6bd9ab
	  that are passed around.
Packit 6bd9ab
Packit 6bd9ab
2016-07-27  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [b7a0b23] ChangeLog, ChangeLog-2013, Makefile.am: Archive 2013
Packit 6bd9ab
	  ChangeLog entries
Packit 6bd9ab
Packit 6bd9ab
2016-07-27  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [e4df12c] config.guess, config.sub, install-sh: Update files
Packit 6bd9ab
	  from latest automake
Packit 6bd9ab
Packit 6bd9ab
2016-07-27  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [db8034a] man/Makefile.am, utils/Makefile.am, utils/getent.py:
Packit 6bd9ab
	  Also use module-name in utilities and man pages
Packit 6bd9ab
Packit 6bd9ab
	  This ensures that getent.ldap, chsh.ldap and manual pages with
Packit 6bd9ab
	  ldap in the name will be installed with the name as specified
Packit 6bd9ab
	  with --with-module-name.
Packit 6bd9ab
Packit 6bd9ab
	  Note that the manual page content still describes the working
Packit 6bd9ab
	  within nss-pam-ldapd and still mention the ldap name.
Packit 6bd9ab
Packit 6bd9ab
2016-06-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [281b0ec] tests/test_doctest.sh: Ensure doctest also run in
Packit 6bd9ab
	  distcheck
Packit 6bd9ab
Packit 6bd9ab
	  This fixes test_doctest.sh to also work when the build directory
Packit 6bd9ab
	  is different from the source directory. This is needed because
Packit 6bd9ab
	  constants.py is only available in the build directory.
Packit 6bd9ab
Packit 6bd9ab
2016-06-03  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [a89eda7] nslcd/pam.c: Also honor ignorecase in PAM
Packit 6bd9ab
Packit 6bd9ab
	  This avoids changing the cannonical username to the value as
Packit 6bd9ab
	  specified in LDAP when ignorecase is used.
Packit 6bd9ab
Packit 6bd9ab
	  See https://github.com/arthurdejong/nss-pam-ldapd/issues/12
Packit 6bd9ab
Packit 6bd9ab
2016-06-03  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [7eb1d69] pynslcd/expr.py: Support ${var:offset:length} in pynslcd
Packit 6bd9ab
Packit 6bd9ab
2016-06-02  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [c90a537] pynslcd/attmap.py: Fix pynslcd expression representation
Packit 6bd9ab
Packit 6bd9ab
	  The problem was that the ExpressionMapping string value did not
Packit 6bd9ab
	  include the quotes which will cause problems when printing the
Packit 6bd9ab
	  expression (e.g.  when logging or dumping config, etc.).
Packit 6bd9ab
Packit 6bd9ab
2016-06-02  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [fd61bb6] tests/Makefile.am, tests/test_doctest.sh: Add test
Packit 6bd9ab
	  for running doctests
Packit 6bd9ab
Packit 6bd9ab
2016-05-30  Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
Packit 6bd9ab
Packit 6bd9ab
	* [2ba9560] common/expr.c, man/nslcd.conf.5.xml, tests/test_expr.c:
Packit 6bd9ab
	  Support substituting expresions of type ${var:offset:length}
Packit 6bd9ab
Packit 6bd9ab
2016-05-30  Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
Packit 6bd9ab
Packit 6bd9ab
	* [3a4860c] man/nslcd.conf.5.xml: Fix small typo
Packit 6bd9ab
Packit 6bd9ab
2016-05-24  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [917ded7] common/expr.c: Refactor out expression parsing to
Packit 6bd9ab
	  functions
Packit 6bd9ab
Packit 6bd9ab
	  This moves the parsing of the various ${var...} expressions to
Packit 6bd9ab
	  separate functions so they can be extended more easily.
Packit 6bd9ab
Packit 6bd9ab
2016-02-22  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [4be9c59] pam/pam.c: Fix logic error
Packit 6bd9ab
Packit 6bd9ab
	  This could result in a free(NULL) call. This code path can
Packit 6bd9ab
	  only be triggered if pam_ldap changes the logged-in username
Packit 6bd9ab
	  (introduced in 6a74d8d).
Packit 6bd9ab
Packit 6bd9ab
	  Thanks 依云, see
Packit 6bd9ab
	  https://github.com/arthurdejong/nss-pam-ldapd/issues/11
Packit 6bd9ab
Packit 6bd9ab
2016-01-30  Mathieu Baeumler <mathieu.baeumler@gmail.com>
Packit 6bd9ab
Packit 6bd9ab
	* [985aec3] nslcd/myldap.c: Display human readable expiry message
Packit 6bd9ab
Packit 6bd9ab
	  Display a human readable message (days+hours, or hours+minutes,
Packit 6bd9ab
	  or seconds) when the password expiring warning is issued.
Packit 6bd9ab
Packit 6bd9ab
2016-02-13  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [b795f6c] nslcd/cfg.c: Fix nss_disable_enumeration configuration
Packit 6bd9ab
Packit 6bd9ab
	  This fixes a copy-paste bug where nss_disable_enumeration was
Packit 6bd9ab
	  incorrectly handled. Fixes c0366d8.
Packit 6bd9ab
Packit 6bd9ab
	  Thanks Andrew W Elble for pointing this out.
Packit 6bd9ab
Packit 6bd9ab
2016-01-18  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [525c996] tests/test.ldif, tests/test_nsscmds.sh: Add a few
Packit 6bd9ab
	  IPv6 tests
Packit 6bd9ab
Packit 6bd9ab
	  This adds a few test hosts that have IPv6 addresses. This
Packit 6bd9ab
	  ensures that we have an IPv6-only host and hosts which have
Packit 6bd9ab
	  address values in different order in the ipHostNumber attribute
Packit 6bd9ab
	  (although attribute order is probably not guaranteed).
Packit 6bd9ab
Packit 6bd9ab
2015-10-18  Mathieu Baeumler <mathieu.baeumler@gmail.com>
Packit 6bd9ab
Packit 6bd9ab
	* [31cd2cf] man/nslcd.conf.5.xml, nslcd/cfg.c, nslcd/cfg.h,
Packit 6bd9ab
	  nslcd/myldap.c: Add pam_authc_ppolicy option
Packit 6bd9ab
Packit 6bd9ab
	  This option allows completely disabling ppolicy handling.
Packit 6bd9ab
Packit 6bd9ab
2016-01-06  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [117c9cb] nslcd/pam.c: Fix error handling on credential change
Packit 6bd9ab
Packit 6bd9ab
	  This fixes setting the correct LDAP error code and also fixes
Packit 6bd9ab
	  formatting in 027df03.
Packit 6bd9ab
Packit 6bd9ab
2015-12-23  Vasilis Tsiligiannis <vasilis.tsiligiannis@nokia.com>
Packit 6bd9ab
Packit 6bd9ab
	* [027df03] nslcd/pam.c: Fix updating of 'shadowLastChange'
Packit 6bd9ab
	  attribute when chasing referrals
Packit 6bd9ab
Packit 6bd9ab
	  This fixes a bug where 'shadowLastChange' attribute cannot be
Packit 6bd9ab
	  updated when chasing a referral. After a password is succesfully
Packit 6bd9ab
	  changed, the credentials for binding should also be updated with
Packit 6bd9ab
	  the new password for the session.
Packit 6bd9ab
Packit 6bd9ab
	  Signed-off-by: Vasilis Tsiligiannis
Packit 6bd9ab
	  <vasilis.tsiligiannis@nokia.com>
Packit 6bd9ab
Packit 6bd9ab
2015-11-13  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [fcea92d] nslcd/cfg.c: Correct file readability check
Packit 6bd9ab
Packit 6bd9ab
	  This uses access() instead of stat() to see if the file is
Packit 6bd9ab
	  readable by the current process. This fixes f089e01.
Packit 6bd9ab
Packit 6bd9ab
2015-09-20  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [c879485] nslcd/myldap.c: Fail-over and retry on more errors
Packit 6bd9ab
Packit 6bd9ab
	  Also try to fail over to another LDAP server on a larger number
Packit 6bd9ab
	  of errors. Specifically errors that point to problems connecting
Packit 6bd9ab
	  to the LDAP server.
Packit 6bd9ab
Packit 6bd9ab
2015-08-29  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [3d09e28] nslcd/myldap.c: Open connection before do_try_search()
Packit 6bd9ab
Packit 6bd9ab
	  This is in preparation for splitting the BIND from the search
Packit 6bd9ab
	  phase for authentication.
Packit 6bd9ab
Packit 6bd9ab
2015-08-27  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [f089e01] nslcd/cfg.c: Loosen up file existence check
Packit 6bd9ab
Packit 6bd9ab
	  This changes the check (for configuration options that specify
Packit 6bd9ab
	  file names) to just check that the specified path is readable
Packit 6bd9ab
	  instead of ensisting that it points to a file.
Packit 6bd9ab
Packit 6bd9ab
	  This allows tls_randfile to point to /dev/urandom (a character
Packit 6bd9ab
	  device) or a pipe. This fixes 6779a51.
Packit 6bd9ab
Packit 6bd9ab
	  This also applies the same check to the krb5_ccname option.
Packit 6bd9ab
Packit 6bd9ab
	  Thanks to Patrick McLean for pointing this out.
Packit 6bd9ab
Packit 6bd9ab
2015-08-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [309f127] pam/pam.c: Have PAM module log messages to syslog
Packit 6bd9ab
Packit 6bd9ab
	  This logs informational messages that are presented to the user
Packit 6bd9ab
	  tot syslog. This normally includes password expiry and grace
Packit 6bd9ab
	  login information which may be useful to log.
Packit 6bd9ab
Packit 6bd9ab
2015-08-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [263a443] nslcd/myldap.c: Simplify password policy message handling
Packit 6bd9ab
Packit 6bd9ab
	  This simplifies the check for overwriging pending password
Packit 6bd9ab
	  expiry and grace logins warnigns and updates handling of the
Packit 6bd9ab
	  LDAP_CONTROL_PWEXPIRING control to be consistent with that of
Packit 6bd9ab
	  the expire value of LDAP_CONTROL_PASSWORDPOLICYRESPONSE.
Packit 6bd9ab
Packit 6bd9ab
	  This also corrects the function name, also logs empty password
Packit 6bd9ab
	  policy responses in debug mode and documents the meaning of the
Packit 6bd9ab
	  various password policy values.
Packit 6bd9ab
Packit 6bd9ab
2015-07-09  Mathieu Baeumler <mathieu.baeumler@gmail.com>
Packit 6bd9ab
Packit 6bd9ab
	* [4302901] nslcd/myldap.c: Fix password policy expiration warnings
Packit 6bd9ab
Packit 6bd9ab
	  If a password expiration warning (pwdExpireWarning) is set in
Packit 6bd9ab
	  slapd, and the password is about to expire, slapd sends the
Packit 6bd9ab
	  timeBeforeExpiration value as part of the passwordPolicyResponse.
Packit 6bd9ab
Packit 6bd9ab
	  nslcd would incorrectly instruct the PAM module to require
Packit 6bd9ab
	  immediate password change. This has been fixed for both
Packit 6bd9ab
	  timeBeforeExpiration and graceLoginsRemaining.
Packit 6bd9ab
Packit 6bd9ab
2015-07-19  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [89b471b] ar-lib, autogen.sh, compile, configure.ac, depcomp,
Packit 6bd9ab
	  install-sh, missing, py-compile, test-driver: Update files from
Packit 6bd9ab
	  automake 1.15
Packit 6bd9ab
Packit 6bd9ab
	  This also includes the m4 directory when invoking aclocal because
Packit 6bd9ab
	  not all versions seem to handle AC_CONFIG_MACRO_DIR.
Packit 6bd9ab
Packit 6bd9ab
2015-07-19  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [86a4618] m4/ax_tls.m4: Disable quoting in AX_TLS notfound case
Packit 6bd9ab
Packit 6bd9ab
	  This ensures that AS_IF does not generate an empty else clause
Packit 6bd9ab
	  which will result in an invalid configure script.
Packit 6bd9ab
Packit 6bd9ab
2015-07-19  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [6779a51] nslcd/cfg.c: Check file existence for configuration
Packit 6bd9ab
	  options
Packit 6bd9ab
Packit 6bd9ab
	  This adds addition checks to the tls_cacertdir, tls_cacertfile,
Packit 6bd9ab
	  tls_randfile, tls_cert and tls_key options to ensure that they
Packit 6bd9ab
	  point to an existing file when parsing nslcd.conf.
Packit 6bd9ab
Packit 6bd9ab
2015-07-19  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [a6c7c63] pynslcd/pynslcd.py: Work around bug in python-daemon
Packit 6bd9ab
Packit 6bd9ab
	  See https://bugs.debian.org/792871
Packit 6bd9ab
Packit 6bd9ab
2015-07-08  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [c32e8c0] m4/ax_pthread.m4, m4/ax_tls.m4: Update macros from
Packit 6bd9ab
	  autoconf-archive
Packit 6bd9ab
Packit 6bd9ab
2015-06-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [d949bd4] AUTHORS, ChangeLog, NEWS, configure.ac,
Packit 6bd9ab
	  man/chsh.ldap.1.xml, man/getent.ldap.1.xml, man/nslcd.8.xml,
Packit 6bd9ab
	  man/nslcd.conf.5.xml, man/pam_ldap.8.xml, man/pynslcd.8.xml:
Packit 6bd9ab
	  Get files ready for 0.9.6 release
Packit 6bd9ab
Packit 6bd9ab
2015-06-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [4236dd6] Makefile.am: Correctly insert emtpy lines in ChangeLog
Packit 6bd9ab
Packit 6bd9ab
2015-06-13  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [e916a2b] man/nslcd.conf.5.xml: Manual page improvements
Packit 6bd9ab
Packit 6bd9ab
2015-06-13  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [9a7921f] nslcd/common.c, nslcd/common.h: Also fix signed integer
Packit 6bd9ab
	  bug in binsid2id()
Packit 6bd9ab
Packit 6bd9ab
	  This should have been part of d217632.
Packit 6bd9ab
Packit 6bd9ab
2015-06-11  Geoffrey McRae <gnif@xbmc.org>
Packit 6bd9ab
Packit 6bd9ab
	* [d217632] nslcd/common.c: Fixed signed 32bit overflow bug on
Packit 6bd9ab
	  32bit systems
Packit 6bd9ab
Packit 6bd9ab
2015-05-23  Jed Liu <jed-nss-pam-ldapd-users@uma.litech.org>
Packit 6bd9ab
Packit 6bd9ab
	* [3add5f0] nslcd/cfg.c: Allow configuration values longer than
Packit 6bd9ab
	  63 characters
Packit 6bd9ab
Packit 6bd9ab
2015-03-06  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [d58fba9] nss/netgroup.c: Provide innetgr function on Solaris
Packit 6bd9ab
Packit 6bd9ab
	  This implements a function in the Solaris version of the NSS module
Packit 6bd9ab
	  to check if a specifc netgroup triplet is part of a netgroup.
Packit 6bd9ab
Packit 6bd9ab
	  This also avoids a compiler warning and includes improvements
Packit 6bd9ab
	  and testing by Mark R Bannister.
Packit 6bd9ab
Packit 6bd9ab
2015-05-01  Andrew Elble <aweits@rit.edu>
Packit 6bd9ab
Packit 6bd9ab
	* [c0366d8] man/nslcd.conf.5.xml, nslcd/cfg.c, nslcd/cfg.h,
Packit 6bd9ab
	  nslcd/nslcd.c, pynslcd/cfg.py, pynslcd/group.py, pynslcd/passwd.py,
Packit 6bd9ab
	  pynslcd/shadow.py: Implement disable_enumeration
Packit 6bd9ab
Packit 6bd9ab
	  If this option is present, functions which cause all user/group
Packit 6bd9ab
	  entries to be loaded (getpwent(), getgrent()) from the directory
Packit 6bd9ab
	  will not succeed in doing so. This can dramatically reduce
Packit 6bd9ab
	  ldap server load in situations where there are a great number
Packit 6bd9ab
	  of users and/or groups.  Applications that depend on being able
Packit 6bd9ab
	  to sequentially read all users and/or groups may fail to operate
Packit 6bd9ab
	  correctly. This option is not recommended for most configurations.
Packit 6bd9ab
Packit 6bd9ab
2015-04-17  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [96045d2] man/nslcd.conf.5.xml, nslcd/cfg.c, nslcd/cfg.h,
Packit 6bd9ab
	  nslcd/group.c, pynslcd/cfg.py, pynslcd/group.py: Implement
Packit 6bd9ab
	  nss_getgrent_skipmembers
Packit 6bd9ab
Packit 6bd9ab
	  This option allows skipping group member list retrieval to
Packit 6bd9ab
	  improve performance with very large groups. This option results
Packit 6bd9ab
	  in inconsistent group membership information being presented
Packit 6bd9ab
	  that may confuse some applications.
Packit 6bd9ab
Packit 6bd9ab
2015-04-15  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [530cc24] nslcd/daemonize.c, nslcd/nslcd.c: Avoid signal race
Packit 6bd9ab
	  condition on start-up
Packit 6bd9ab
Packit 6bd9ab
	  This only restores the signal mask after signal handlers are in
Packit 6bd9ab
	  place and the daemon has completely daemonised to avoid a race
Packit 6bd9ab
	  condition in the start-up phase of nslcd where a signal could
Packit 6bd9ab
	  be sent to nslcd causing it to quit or fail to write information
Packit 6bd9ab
	  to the parent process.
Packit 6bd9ab
Packit 6bd9ab
2015-03-29  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [16fd8c6] AUTHORS, ChangeLog, NEWS, README, configure.ac,
Packit 6bd9ab
	  man/chsh.ldap.1.xml, man/getent.ldap.1.xml, man/nslcd.8.xml,
Packit 6bd9ab
	  man/pam_ldap.8.xml, man/pynslcd.8.xml: Get files ready for
Packit 6bd9ab
	  0.9.5 release
Packit 6bd9ab
Packit 6bd9ab
2015-03-11  Tim Rice <tim@multitalents.net>
Packit 6bd9ab
Packit 6bd9ab
	* [ae08830] common/Makefile.am, compat/Makefile.am, configure.ac,
Packit 6bd9ab
	  nss/Makefile.am, pam/Makefile.am: Use correct PIC arg for
Packit 6bd9ab
	  non-GCC compilers
Packit 6bd9ab
Packit 6bd9ab
2015-03-22  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [fdbca17] config.sub: Update files from latest automake
Packit 6bd9ab
Packit 6bd9ab
2015-03-22  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [9f9a5c5] nss/networks.c: Fix for networks lookup under Solaris
Packit 6bd9ab
Packit 6bd9ab
	  This fixes a byte order issue when nscd is running.
Packit 6bd9ab
Packit 6bd9ab
2015-03-22  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [52ea3f5] configure.ac: Add checks to configure
Packit 6bd9ab
Packit 6bd9ab
	  This adds tests for a function and type used in the code.
Packit 6bd9ab
Packit 6bd9ab
2015-03-22  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [4ec1c08] nslcd/daemonize.c: ENODATA is missing on FreeBSD
Packit 6bd9ab
Packit 6bd9ab
	  FreeBSD doesn't have ENODATA so we use ENOATTR instead.
Packit 6bd9ab
Packit 6bd9ab
2015-03-22  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [b2563b0] compat/nss_compat.h, configure.ac: Remove use of
Packit 6bd9ab
	  irs-nss.h
Packit 6bd9ab
Packit 6bd9ab
	  This was a compatibility leftover from the nss_ldap days.
Packit 6bd9ab
Packit 6bd9ab
2015-03-21  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [4c5a3c9] tests/test_clock.c: Prevent numer overflow in test_clock
Packit 6bd9ab
Packit 6bd9ab
2015-03-21  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [0420232] nslcd/nslcd.c, nslcd/nsswitch.c, nss/Makefile.am,
Packit 6bd9ab
	  tests/testenv.sh: Various small fixes when using --with-module-name
Packit 6bd9ab
Packit 6bd9ab
	  This updates the test framework to support --with-module-name,
Packit 6bd9ab
	  ensures that exports.map is rebuilt when configure is re-ran,
Packit 6bd9ab
	  fixes parsing of nsswitch.conf (to determine what to return for
Packit 6bd9ab
	  passwd lookups) and fixes the check for _nss_ldap_version.
Packit 6bd9ab
Packit 6bd9ab
2015-03-21  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [788475f] nss/common.h: Also support platforms without TLS
Packit 6bd9ab
Packit 6bd9ab
	  This disables the use of thread-local storage in the NSS module
Packit 6bd9ab
	  when it is not available in libc. This results in the get*ent()
Packit 6bd9ab
	  functions not being thread-safe. However, on most platforms they
Packit 6bd9ab
	  are not expected to be thread-safe anyway.
Packit 6bd9ab
Packit 6bd9ab
2015-03-20  Dalibor Pospíšil <dapospis@redhat.com>
Packit 6bd9ab
Packit 6bd9ab
	* [95d621e] man/nslcd.conf.5.xml: Document that multiple URIs can
Packit 6bd9ab
	  be specified
Packit 6bd9ab
Packit 6bd9ab
	  Update nslcd.conf man page that multiple URIs can be set by
Packit 6bd9ab
	  using more uri lines or more URIs defined on one uri line.
Packit 6bd9ab
Packit 6bd9ab
	  https://bugzilla.redhat.com/show_bug.cgi?id=1204195
Packit 6bd9ab
Packit 6bd9ab
2015-03-11  Patrick McLean <chutzpah@gentoo.org>
Packit 6bd9ab
Packit 6bd9ab
	* [fa6affc] common/tio.c, nslcd/attmap.c, nslcd/cfg.c,
Packit 6bd9ab
	  nslcd/myldap.c: Fix formatting of size_t values
Packit 6bd9ab
Packit 6bd9ab
	  In several places the code used a %d format to print a size_t
Packit 6bd9ab
	  variable.  On amd64 at least size_t is an unsigned long, so use
Packit 6bd9ab
	  %lu instead.
Packit 6bd9ab
Packit 6bd9ab
	  An alternative would be to use %ud for size_t and %zd fo ssize_t
Packit 6bd9ab
	  but not all platforms seem to support that formatter.
Packit 6bd9ab
Packit 6bd9ab
2015-03-11  Patrick McLean <chutzpah@gentoo.org>
Packit 6bd9ab
Packit 6bd9ab
	* [246aba5] nslcd/myldap.c, pam/pam.c: Avoid comparison of static
Packit 6bd9ab
	  array to null pointer
Packit 6bd9ab
Packit 6bd9ab
	  There are several places where a static length array in a struct
Packit 6bd9ab
	  is compared to a null pointer. These comparisons will always
Packit 6bd9ab
	  be false, since an array in a struct is not actually a pointer,
Packit 6bd9ab
	  so they can be removed.
Packit 6bd9ab
Packit 6bd9ab
2015-03-10  Patrick McLean <chutzpah@gentoo.org>
Packit 6bd9ab
Packit 6bd9ab
	* [d0f896a] AUTHORS, nslcd/nslcd.c: Don't let the oom killer
Packit 6bd9ab
	  kill nslcd
Packit 6bd9ab
Packit 6bd9ab
	  Adjust the Linux OOM (Out-Of-Memory) killer score by -1000 for
Packit 6bd9ab
	  nslcd so that it should not be killed.
Packit 6bd9ab
Packit 6bd9ab
2015-01-19  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [ee82d2f] .gitignore, configure.ac, nslcd/nslcd.c,
Packit 6bd9ab
	  nss/Makefile.am, nss/aliases.c, nss/bsdnss.c, nss/common.c,
Packit 6bd9ab
	  nss/common.h, nss/ethers.c, nss/group.c, nss/hosts.c,
Packit 6bd9ab
	  nss/netgroup.c, nss/networks.c, nss/passwd.c, nss/protocols.c,
Packit 6bd9ab
	  nss/prototypes.h, nss/rpc.c, nss/services.c, nss/shadow.c,
Packit 6bd9ab
	  pam/pam.c, pynslcd/constants.py.in, pynslcd/pynslcd.py: Allow
Packit 6bd9ab
	  configuration of NSS and PAM names
Packit 6bd9ab
Packit 6bd9ab
	  This introduces the --with-module-name configure option to
Packit 6bd9ab
	  allow building of NSS and PAM modules with different namespaces
Packit 6bd9ab
	  than ldap.
Packit 6bd9ab
Packit 6bd9ab
2015-01-12  Mark R Bannister <dbis@proseconsulting.co.uk>
Packit 6bd9ab
Packit 6bd9ab
	* [ed8b312] nss/hosts.c: Fix uninitialised variable
Packit 6bd9ab
Packit 6bd9ab
	  This fixes a bug in the NSS library when encountering IPv6
Packit 6bd9ab
	  addresses in the hosts map.
Packit 6bd9ab
Packit 6bd9ab
2014-12-12  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [8b33057] nslcd/myldap.c: Avoid accessing searches outside array
Packit 6bd9ab
Packit 6bd9ab
	  Thanks David Binderma for pointing this out.
Packit 6bd9ab
Packit 6bd9ab
	  Note that in practical situations this should not result in any
Packit 6bd9ab
	  errors due to the position of searches within the ldap_session
Packit 6bd9ab
	  struct.
Packit 6bd9ab
Packit 6bd9ab
2014-11-02  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [9ee854e] man/nslcd.conf.5.xml: Document that rootpwmoddn needs
Packit 6bd9ab
	  to exist
Packit 6bd9ab
Packit 6bd9ab
	  See
Packit 6bd9ab
	  http://lists.arthurdejong.org/nss-pam-ldapd-users/2014/msg00166.html
Packit 6bd9ab
Packit 6bd9ab
2014-10-10  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [4262122] nslcd/nslcd.c: Fix format string
Packit 6bd9ab
Packit 6bd9ab
	  Thanks Jianhai Luan.
Packit 6bd9ab
Packit 6bd9ab
2014-10-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [1d3b19b] nslcd/nslcd.c: Block signals sooner to avoid race
Packit 6bd9ab
	  conditions
Packit 6bd9ab
Packit 6bd9ab
2014-08-27  Jason Luan <jianhai.luan@oracle.com>
Packit 6bd9ab
Packit 6bd9ab
	* [78627c9] nslcd/cfg.c, nslcd/group.c, nslcd/nslcd.c,
Packit 6bd9ab
	  nslcd/passwd.c: uid_t/gid_t should be formatted as unsigned long
Packit 6bd9ab
Packit 6bd9ab
	  mmkfilter_passwd_byuid()/mkfilter_group_bygid() get wrong filter
Packit 6bd9ab
	  string because "%d" will return negative when uid/gid larger
Packit 6bd9ab
	  than 2^31, and result to "Authentiction failure".
Packit 6bd9ab
Packit 6bd9ab
	  This also changes the other places where uid_t or gid_t values
Packit 6bd9ab
	  are formatted.
Packit 6bd9ab
Packit 6bd9ab
2014-09-21  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [a726d29] nslcd/daemonize.c: Fix issues with daemonising
Packit 6bd9ab
Packit 6bd9ab
	  This fixes a problem with a buffer that could end up padded
Packit 6bd9ab
	  with garbage.
Packit 6bd9ab
Packit 6bd9ab
	  This also clarifies the code a bit and adds extra logging for
Packit 6bd9ab
	  errors that could occur during daemonising.
Packit 6bd9ab
Packit 6bd9ab
2014-06-30  Tim Harder <radhermit@gmail.com>
Packit 6bd9ab
Packit 6bd9ab
	* [82e4423] nslcd/myldap.c: Minor comment spelling fix
Packit 6bd9ab
Packit 6bd9ab
2014-06-30  Tim Harder <radhermit@gmail.com>
Packit 6bd9ab
Packit 6bd9ab
	* [2950797] AUTHORS, nslcd/myldap.c: Check a socket's connectivity
Packit 6bd9ab
	  before trying to use it
Packit 6bd9ab
Packit 6bd9ab
	  This alleviates some cases where multi-second lag occurs before a
Packit 6bd9ab
	  query returns due to some or all connections having been closed
Packit 6bd9ab
	  by the peer, e.g. a load balancer timing out old connections,
Packit 6bd9ab
	  but they are all tried before opening new connections.
Packit 6bd9ab
Packit 6bd9ab
	  Tested and working on Linux.
Packit 6bd9ab
Packit 6bd9ab
2014-06-20  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [1765e34] nslcd/common.h: Fix copy-pasto
Packit 6bd9ab
Packit 6bd9ab
2014-06-12  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [9516479] tests/test.ldif, tests/test_nsscmds.sh: Use other IP
Packit 6bd9ab
	  range for tests
Packit 6bd9ab
Packit 6bd9ab
	  This uses IP addresses from the RFC 5737 TEST-NET-1 range that is
Packit 6bd9ab
	  meant for use in documentation. This avoids issues with running
Packit 6bd9ab
	  the tests environments that also use the 10.0.0.0/8 range.
Packit 6bd9ab
Packit 6bd9ab
2014-06-06  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [b3cf0aa] AUTHORS, ChangeLog, NEWS, configure.ac,
Packit 6bd9ab
	  man/chsh.ldap.1.xml, man/getent.ldap.1.xml, man/nslcd.8.xml,
Packit 6bd9ab
	  man/nslcd.conf.5.xml, man/pam_ldap.8.xml, man/pynslcd.8.xml:
Packit 6bd9ab
	  Get files ready for 0.9.4 release
Packit 6bd9ab
Packit 6bd9ab
2014-06-06  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [abb2452] nss/services.c: Return correct port number on Solaris
Packit 6bd9ab
Packit 6bd9ab
	  This is a small fix for when using nscd (which still does not
Packit 6bd9ab
	  seem to work completely). The port is stored in network byte
Packit 6bd9ab
	  order but should be printed in host byte order.
Packit 6bd9ab
Packit 6bd9ab
2014-06-06  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [b977d3f] tests/lookup_groupbyuser.c: Add missing include
Packit 6bd9ab
	  for FreeBSD
Packit 6bd9ab
Packit 6bd9ab
2014-06-06  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [258d671] nslcd/pam.c: Fix password modification by root
Packit 6bd9ab
Packit 6bd9ab
	  This fixes 15fc13c.
Packit 6bd9ab
Packit 6bd9ab
2014-06-06  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [8eeb1cc] common/tio.c: Clear proper buffer length
Packit 6bd9ab
Packit 6bd9ab
	  This fixes 3d29861.
Packit 6bd9ab
Packit 6bd9ab
2014-06-06  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [3d65b84] nslcd/common.h: Fix code indentation
Packit 6bd9ab
Packit 6bd9ab
	  This fixes 2274b41.
Packit 6bd9ab
Packit 6bd9ab
2014-06-06  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [e867727] config.guess, config.sub: Update files from latest
Packit 6bd9ab
	  automake
Packit 6bd9ab
Packit 6bd9ab
2014-06-05  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [f5ee208] pynslcd/cache.py: Fix comment
Packit 6bd9ab
Packit 6bd9ab
2014-06-05  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [13483f9] .gitignore, configure.ac, tests/Makefile.am,
Packit 6bd9ab
	  tests/lookup_groupbyuser.c: Introduce lookup_groupbyuser test
Packit 6bd9ab
	  command
Packit 6bd9ab
Packit 6bd9ab
	  This command can be used to perform a lookup using getgrouplist()
Packit 6bd9ab
	  to present a list of returned numeric group ids. This can be
Packit 6bd9ab
	  used to avoid the additional lookups that are done with the id
Packit 6bd9ab
	  and groups commands.
Packit 6bd9ab
Packit 6bd9ab
2014-05-14  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [3d29861] common/tio.c, nslcd/myldap.c, nslcd/pam.c: Clear
Packit 6bd9ab
	  buffers before free-ing
Packit 6bd9ab
Packit 6bd9ab
	  This clears most buffers that may hold credentials at one point
Packit 6bd9ab
	  before free()ing the memory.
Packit 6bd9ab
Packit 6bd9ab
2014-05-08  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [aa1d810] HACKING: Clarify code contribution
Packit 6bd9ab
Packit 6bd9ab
2014-05-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [94eacb5] nslcd/pam.c: Improve error logging of user login failures
Packit 6bd9ab
Packit 6bd9ab
2014-05-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [ca36a50] nslcd/myldap.c: Also extract policy controls on
Packit 6bd9ab
	  BIND failure
Packit 6bd9ab
Packit 6bd9ab
	  This ensures that controls returned by an LDAP server as part of
Packit 6bd9ab
	  a failed BIND operation are also returned. This makes it possible
Packit 6bd9ab
	  to distinguish between a wrong password and an expired password.
Packit 6bd9ab
Packit 6bd9ab
	  This also only logs the BIND operation result on DEBUG level
Packit 6bd9ab
	  (the error is logged later on).
Packit 6bd9ab
Packit 6bd9ab
2014-05-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [d6163e2] configure.ac: Use FreeBSD lib directory and SONAME
Packit 6bd9ab
	  on Dragonfly
Packit 6bd9ab
Packit 6bd9ab
2014-05-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [f6f3730] README, man/nslcd.conf.5.xml: Small documentation
Packit 6bd9ab
	  improvements
Packit 6bd9ab
Packit 6bd9ab
	  This includes a number of minor changes to the documentation. This
Packit 6bd9ab
	  also documents the children search scope (related to 2caeef4).
Packit 6bd9ab
Packit 6bd9ab
2014-05-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [ed79110] nslcd/daemonize.c, nslcd/nslcd.c: Log daemonising
Packit 6bd9ab
	  failures
Packit 6bd9ab
Packit 6bd9ab
	  This also clears errno in the main function to ensure that no
Packit 6bd9ab
	  incorrect errno value is logged on errors.
Packit 6bd9ab
Packit 6bd9ab
2014-05-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [18d05b0] .gitignore, tests/Makefile.am, tests/test_attmap.c:
Packit 6bd9ab
	  Add a test for setting member attribute mapping
Packit 6bd9ab
Packit 6bd9ab
2014-05-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [fbea2a5] nslcd/attmap.c: Fix mapping group member attribute to
Packit 6bd9ab
	  empty string
Packit 6bd9ab
Packit 6bd9ab
	  This fixes be94912.
Packit 6bd9ab
Packit 6bd9ab
2014-05-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [2274b41] nslcd/alias.c, nslcd/attmap.c, nslcd/cfg.c,
Packit 6bd9ab
	  nslcd/common.h, nslcd/ether.c, nslcd/group.c, nslcd/host.c,
Packit 6bd9ab
	  nslcd/invalidator.c, nslcd/myldap.c, nslcd/netgroup.c,
Packit 6bd9ab
	  nslcd/network.c, nslcd/pam.c, nslcd/passwd.c, nslcd/protocol.c,
Packit 6bd9ab
	  nslcd/rpc.c, nslcd/service.c, nslcd/shadow.c: Make buffer size
Packit 6bd9ab
	  error logging consistent
Packit 6bd9ab
Packit 6bd9ab
	  This adds logging of most cases where a defined buffer is not
Packit 6bd9ab
	  large enough to hold provided data on error log level.
Packit 6bd9ab
Packit 6bd9ab
2014-05-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [15fc13c] nslcd/myldap.c, nslcd/myldap.h, nslcd/pam.c,
Packit 6bd9ab
	  nslcd/usermod.c: Warn when binddn buffer is too small
Packit 6bd9ab
Packit 6bd9ab
2014-05-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [f987891] nslcd/common.h: Grow DN buffer size
Packit 6bd9ab
Packit 6bd9ab
	  The buffer size seems to be a problem in environments with long
Packit 6bd9ab
	  names or environments with non-ASCII characters.
Packit 6bd9ab
Packit 6bd9ab
2014-05-02  ushi <ushi@honkgong.info>
Packit 6bd9ab
Packit 6bd9ab
	* [119cebf] nslcd/common.h: Use larger nslcd password buffer
Packit 6bd9ab
Packit 6bd9ab
	  I had some edge cases where 64 bytes were not enough. People
Packit 6bd9ab
	  are using password managers with long generated passwords. I
Packit 6bd9ab
	  increased the buffer size to 128.
Packit 6bd9ab
Packit 6bd9ab
2014-03-12  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [8f12c15] AUTHORS, ChangeLog, NEWS, configure.ac,
Packit 6bd9ab
	  man/chsh.ldap.1.xml, man/getent.ldap.1.xml, man/nslcd.8.xml,
Packit 6bd9ab
	  man/nslcd.conf.5.xml, man/pam_ldap.8.xml, man/pynslcd.8.xml,
Packit 6bd9ab
	  pynslcd/pynslcd.py: Get files ready for 0.9.3 release
Packit 6bd9ab
Packit 6bd9ab
2014-03-12  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [1ec7739] INSTALL, missing, test-driver: Update files from
Packit 6bd9ab
	  recent automake
Packit 6bd9ab
Packit 6bd9ab
2014-03-10  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [44764f0] tests/Makefile.am, tests/test_myldap.sh,
Packit 6bd9ab
	  tests/test_nsscmds.sh: Run the correct executables for the tests
Packit 6bd9ab
Packit 6bd9ab
	  This fixes issues with running the tests when using a separate
Packit 6bd9ab
	  build directory (fixes ef0eddaa).
Packit 6bd9ab
Packit 6bd9ab
2014-03-10  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [77444ac] tests/test_myldap.sh: Fix nslcd-test.conf permissions
Packit 6bd9ab
	  for test
Packit 6bd9ab
Packit 6bd9ab
	  This ensures that configuration file is not world readable when
Packit 6bd9ab
	  the tests are run. This avoids test failure for the use of the
Packit 6bd9ab
	  rootpwmodpw option.
Packit 6bd9ab
Packit 6bd9ab
2014-03-10  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [96e4171] common/nslcd-prot.h: Interpret transferred integers
Packit 6bd9ab
	  as signed again
Packit 6bd9ab
Packit 6bd9ab
	  This fixes an issue with unsigned values ending up in signed
Packit 6bd9ab
	  fields and missing sign extension.
Packit 6bd9ab
Packit 6bd9ab
	  See: https://bugs.debian.org/739330
Packit 6bd9ab
Packit 6bd9ab
2014-01-27  Nalin Dahyabhai <nalin@redhat.com>
Packit 6bd9ab
Packit 6bd9ab
	* [2d35feb] nss/hosts.c, nss/networks.c: Use right h_errnop for
Packit 6bd9ab
	  retrying with larger buffer
Packit 6bd9ab
Packit 6bd9ab
	  The libc nsswitch code expects h_errno to be set to NETDB_INTERNAL
Packit 6bd9ab
	  when it needs to try again with a larger buffer.
Packit 6bd9ab
Packit 6bd9ab
	  Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Packit 6bd9ab
Packit 6bd9ab
2014-01-27  Lukas Slebodnik <lslebodn@redhat.com>
Packit 6bd9ab
Packit 6bd9ab
	* [8532f40] nss/hosts.c, nss/networks.c: Fix crash when retrieving
Packit 6bd9ab
	  large networks entries
Packit 6bd9ab
Packit 6bd9ab
	  If NSS_STATUS_TRYAGAIN is returned from read_one_hostent or
Packit 6bd9ab
	  read_one_netent then fp will be closed and function tio_skipall
Packit 6bd9ab
	  will be called with NULL pointer.  It could happend in functions:
Packit 6bd9ab
	      _nss_ldap_getnetbyname_r _nss_ldap_getnetbyaddr_r
Packit 6bd9ab
	      _nss_ldap_gethostbyname2_r _nss_ldap_gethostbyaddr_r
Packit 6bd9ab
Packit 6bd9ab
	  Fixes r548 (aka afd5d9b).
Packit 6bd9ab
Packit 6bd9ab
2014-01-30  Davy Defaud <davy.defaud@free.fr>
Packit 6bd9ab
Packit 6bd9ab
	* [4211961] nslcd/group.c: Support builtin Windows groups
Packit 6bd9ab
Packit 6bd9ab
	  This maps the gid (gidNumber) to an AD SID for builtin
Packit 6bd9ab
	  groups when searching a group by gid (RID) between 544 and
Packit 6bd9ab
	  552. In that case the SID prefix is not the domain's prefix
Packit 6bd9ab
	  (S-1-5-21-dddddd-dddddd-dddddd) but the BUILTIN SID prefix
Packit 6bd9ab
	  (1-5-32).
Packit 6bd9ab
Packit 6bd9ab
	  For example, if you add a user to the Administrators builtin
Packit 6bd9ab
	  group (S-1-5-32-544), now you should be able to get this group
Packit 6bd9ab
	  through nslcd, instead of receiving an error message.
Packit 6bd9ab
Packit 6bd9ab
2014-01-25  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [f6a0675] configure.ac: Add test for krb5 thread safety
Packit 6bd9ab
Packit 6bd9ab
	  This adds a test that checks the return value of
Packit 6bd9ab
	  krb5_is_thread_safe() to see if krb5 is thread safe (during build)
Packit 6bd9ab
	  and issues a warning if it is not.
Packit 6bd9ab
Packit 6bd9ab
	  nslcd does not directly link to krb5 but the library may be
Packit 6bd9ab
	  loaded (by GSSAPI) if Kerberos is used to authenticate nslcd to
Packit 6bd9ab
	  the LDAP server.
Packit 6bd9ab
Packit 6bd9ab
2014-01-25  Francois Tigeot <ftigeot@wolfpond.org>
Packit 6bd9ab
Packit 6bd9ab
	* [043838c] configure.ac: Also detect DragonFly as BSD
Packit 6bd9ab
Packit 6bd9ab
	  This fixes the detection of DragonFly as requiring the freebsd
Packit 6bd9ab
	  NSS interface flavour.
Packit 6bd9ab
Packit 6bd9ab
2014-01-24  joshuashire <joshuashire@hotmail.com>
Packit 6bd9ab
Packit 6bd9ab
	* [2181cca] nslcd/shadow.c: Update shadow.c to resolve pwdLastSet
Packit 6bd9ab
	  issue
Packit 6bd9ab
Packit 6bd9ab
	  We read the date into the buffer to the specified length to get it
Packit 6bd9ab
	  to the Unix time (i.e. seconds) from its AD value of nanoseconds,
Packit 6bd9ab
	  then convert it to days for shadow. If we use date rather than
Packit 6bd9ab
	  buffer we end up trying to convert the original nanosecond value.
Packit 6bd9ab
Packit 6bd9ab
2014-01-05  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [c6c317e] : Implement deref control handling
Packit 6bd9ab
Packit 6bd9ab
	  This uses the LDAP_CONTROL_X_DEREF control as described in
Packit 6bd9ab
	  draft-masarati-ldap-deref-00 to request the LDAP server to
Packit 6bd9ab
	  dereference group member attribute values to uid attribute values.
Packit 6bd9ab
Packit 6bd9ab
	  This should reduce the number of searches that are required for
Packit 6bd9ab
	  expanding group members that use the member attribute.
Packit 6bd9ab
Packit 6bd9ab
	  This mechanism could also be used to extract information on
Packit 6bd9ab
	  nested groups but the gains are less clear there.
Packit 6bd9ab
Packit 6bd9ab
	  Not all LDAP servers support this control. In OpenLDAP, load the
Packit 6bd9ab
	  (currently undocumented) deref overlay and enable it for the
Packit 6bd9ab
	  database to take advantage of this improvement.
Packit 6bd9ab
Packit 6bd9ab
	  There is a functional difference when using this control. Any
Packit 6bd9ab
	  returned deferred uid value returned by the LDAP server is accepted
Packit 6bd9ab
	  as a member.	No checks are performed to see if the user matches
Packit 6bd9ab
	  the search base and search filters set for passwd entries.
Packit 6bd9ab
Packit 6bd9ab
2014-01-05  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [309b4bb] README: Update documentation
Packit 6bd9ab
Packit 6bd9ab
	  This documents the way the deref controls are used.
Packit 6bd9ab
Packit 6bd9ab
2014-01-05  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [cecc024] nslcd/group.c: Use myldap_get_deref_values() to get
Packit 6bd9ab
	  member uids
Packit 6bd9ab
Packit 6bd9ab
	  This uses information from the deref control (if available)
Packit 6bd9ab
	  to get the username for each of the members of the group. Any
Packit 6bd9ab
	  missing deref member attribute values will be seen as nested
Packit 6bd9ab
	  groups and will be traversed if nested group support is enabled.
Packit 6bd9ab
Packit 6bd9ab
2014-01-05  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [c973834] configure.ac, nslcd/myldap.c, nslcd/myldap.h: Provide
Packit 6bd9ab
	  a myldap_get_deref_values() function
Packit 6bd9ab
Packit 6bd9ab
	  This function looks for deref response controls
Packit 6bd9ab
	  (LDAP_CONTROL_X_DEREF) in the entry and returns the information
Packit 6bd9ab
	  from the dereferenced attribute in two lists: dereferenced values
Packit 6bd9ab
	  and attribute values that could not be dereferenced.
Packit 6bd9ab
Packit 6bd9ab
2014-01-05  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [3992e15] nslcd/group.c: Skip member attributes in bymember search
Packit 6bd9ab
Packit 6bd9ab
	  This changes the group by member searches to not request the
Packit 6bd9ab
	  member attributes. This will speed up result parsing by a fraction
Packit 6bd9ab
	  because less data is transferred but will also cause the deref
Packit 6bd9ab
	  control not to be added to these searches.
Packit 6bd9ab
Packit 6bd9ab
2013-12-28  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [15ee2fc] compat/Makefile.am, compat/derefctrl.c,
Packit 6bd9ab
	  compat/ldap_compat.h, configure.ac: Provide replacement
Packit 6bd9ab
	  ldap_create_deref_control()
Packit 6bd9ab
Packit 6bd9ab
	  This adds a test for a bug in OpenLDAP that allocated a
Packit 6bd9ab
	  LDAP_CONTROL_PAGEDRESULTS control instead of a LDAP_CONTROL_X_DEREF
Packit 6bd9ab
	  control.
Packit 6bd9ab
Packit 6bd9ab
2014-01-05  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [547e479] configure.ac, nslcd/myldap.c: Request attribute deref
Packit 6bd9ab
	  via search control
Packit 6bd9ab
Packit 6bd9ab
	  This uses the LDAP_CONTROL_X_DEREF control as descibed in
Packit 6bd9ab
	  draft-masarati-ldap-deref-00 to request the LDAP server to
Packit 6bd9ab
	  dereference member attribute values to uid attribute values in
Packit 6bd9ab
	  order to avoid doing extra searches.
Packit 6bd9ab
Packit 6bd9ab
	  This control is currently only added for group search by looking
Packit 6bd9ab
	  for the member attribute in the search.
Packit 6bd9ab
Packit 6bd9ab
2014-01-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [c22eb08] nslcd/myldap.c: Rename entry property to indicate
Packit 6bd9ab
	  storage type
Packit 6bd9ab
Packit 6bd9ab
	  This changes entrye->rangedattributevalues to entry->buffers
Packit 6bd9ab
	  because the propery is not only used for ranged attribute values
Packit 6bd9ab
	  but for anything that can be freed with free().
Packit 6bd9ab
Packit 6bd9ab
2014-01-03  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [f009c96] nslcd/myldap.c: Ignore missing page controls
Packit 6bd9ab
Packit 6bd9ab
	  Since we could get arbitrray controls and are only interested
Packit 6bd9ab
	  in page controls we ignore failures to find page controls.
Packit 6bd9ab
Packit 6bd9ab
2014-01-03  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [4f6dfdd] nslcd/myldap.c: Use do_try_search() also for paged
Packit 6bd9ab
	  searches
Packit 6bd9ab
Packit 6bd9ab
	  This also changes do_try_search() to support building continued
Packit 6bd9ab
	  paged controls and lays the groundwork for adding more search
Packit 6bd9ab
	  controls.
Packit 6bd9ab
Packit 6bd9ab
2014-01-05  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [be94912] nslcd/attmap.c, nslcd/group.c, pynslcd/group.py:
Packit 6bd9ab
	  Support blanking the member attribute
Packit 6bd9ab
Packit 6bd9ab
	  This allows remapping the member attribute to an empty string
Packit 6bd9ab
	  which removes support for that attribute. This can reduce the
Packit 6bd9ab
	  number of search operations if the attribute is not used.
Packit 6bd9ab
Packit 6bd9ab
2014-01-05  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [0d3fa5d] nslcd/group.c: Fix typo
Packit 6bd9ab
Packit 6bd9ab
2014-01-05  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [8e74848] nslcd/group.c, nss/netgroup.c, tests/test_set.c:
Packit 6bd9ab
	  Fix memory leaks related to set_pop()
Packit 6bd9ab
Packit 6bd9ab
	  Some pieces of code did not properly free() the value returned
Packit 6bd9ab
	  by set_pop().
Packit 6bd9ab
Packit 6bd9ab
	  The leak in group code was related to the introduction of nested
Packit 6bd9ab
	  group functionality in 41ba574 (merged in 3daa68d) so should
Packit 6bd9ab
	  only be present in releases 0.9.0 forward.
Packit 6bd9ab
Packit 6bd9ab
	  The leak in the netgroup code only ended up in the Solaris
Packit 6bd9ab
	  version of the NSS module and was introduced in 4ea9ad1 (merged in
Packit 6bd9ab
	  5c8779d). This leak is present in all releases from 0.8.0 forward.
Packit 6bd9ab
Packit 6bd9ab
2014-01-04  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [3288942] tests/test_myldap.c: Fix compiler warnings in the
Packit 6bd9ab
	  myldap test
Packit 6bd9ab
Packit 6bd9ab
2014-01-02  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [2b8fbc2] : Only exit nslcd when daemon is ready
Packit 6bd9ab
Packit 6bd9ab
	  This removes a race condition between the exit of the initial
Packit 6bd9ab
	  nslcd process (as started by the init script) and nslcd services
Packit 6bd9ab
	  being ready.
Packit 6bd9ab
Packit 6bd9ab
2014-01-02  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [3afedc4] compat/Makefile.am, compat/daemon.c, compat/daemon.h,
Packit 6bd9ab
	  configure.ac: Remove daemon() replacement function
Packit 6bd9ab
Packit 6bd9ab
2014-01-02  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [907d49d] configure.ac, nslcd/daemonize.c: Close daemon pipe
Packit 6bd9ab
	  file descriptor on fork or exec
Packit 6bd9ab
Packit 6bd9ab
	  This tries to avoid child processes ending up with a copy of
Packit 6bd9ab
	  the pipe file descriptor that is used to signal readiness of
Packit 6bd9ab
	  the daemon.
Packit 6bd9ab
Packit 6bd9ab
2014-01-02  Arthur de Jong <arthur@arthurdejong.org>
Packit 6bd9ab
Packit 6bd9ab
	* [42a1a3d] nslcd/Makefile.am, nslcd/daemonize.c, nslcd/daemonize.h,
Packit 6bd9ab
	  nslcd/nslcd.c: Properly daemonise nslcd and only exit when ready
Packit 6bd9ab
Packit 6bd9ab
	  This introduces a new daemonize module that provides functions for
Packit 6bd9ab
	  closing all file descriptors, redirecting stdin/stdout/stderr to
Packit 6bd9ab
	  /dev/null and a function for backgrounding an application while
Packit 6bd9ab
	  only exiting the original process after the daemon process has
Packit 6bd9ab
	  indicated readiness.
Packit 6bd9ab
Packit 6bd9ab
	  This is used to exit the original process only after the listening
Packit 6bd9ab
	  socket has been set up and the worker threads have been started.