| 1 |
2013-12-28 Arthur de Jong <[email protected]> |
| 2 |
|
| 3 |
* [e3f0453] configure.ac: Re-organise ldap function tests |
| 4 |
|
| 5 |
2013-12-21 Arthur de Jong <[email protected]> |
| 6 |
|
| 7 |
* [3ce5ef9] : Make dn2uid cache tuneable |
| 8 |
|
| 9 |
This introduces a new cache configuration option that allows |
| 10 |
setting positive and negative cache lifetimes for the dn2uid cache. |
| 11 |
|
| 12 |
* [19f3cc3] tests/test_cfg.c: Add a test for new configuration option |
| 13 |
|
| 14 |
* [09969cf] man/nslcd.conf.5.xml: Document cache option in |
| 15 |
manual page |
| 16 |
|
| 17 |
* [a0c90d2] nslcd/passwd.c: Use dn2uid cache options |
| 18 |
|
| 19 |
The configuration values are used in the cache to determine |
| 20 |
positive and negative hit TTLs. This also allows completely |
| 21 |
disabling the cache. |
| 22 |
|
| 23 |
* [99ad1b4] nslcd/cfg.c, nslcd/cfg.h: Implement a cache configuration |
| 24 |
option |
| 25 |
|
| 26 |
This adds the cache nslcd.conf configuration option to configure |
| 27 |
the dn2uid cache in nslcd with a positive and negative cache |
| 28 |
lifetime. |
| 29 |
|
| 30 |
2013-12-19 Arthur de Jong <[email protected]> |
| 31 |
|
| 32 |
* [82bac61] nslcd/passwd.c: Have positive and negative cache timeouts |
| 33 |
|
| 34 |
The positive value determines the time a found entry is valid, |
| 35 |
the negative timeout determines the lifetime of not found entries. |
| 36 |
|
| 37 |
* [b9ec6df] nslcd/cfg.c: Support printing children search scope |
| 38 |
|
| 39 |
This fixes 2caeef4. |
| 40 |
|
| 41 |
2013-12-18 Arthur de Jong <[email protected]> |
| 42 |
|
| 43 |
* [9f02853] nslcd/alias.c, nslcd/common.c, nslcd/common.h, |
| 44 |
nslcd/ether.c, nslcd/group.c, nslcd/host.c, nslcd/myldap.c, |
| 45 |
nslcd/netgroup.c, nslcd/network.c, nslcd/pam.c, nslcd/passwd.c, |
| 46 |
nslcd/protocol.c, nslcd/rpc.c, nslcd/service.c, nslcd/shadow.c, |
| 47 |
nslcd/usermod.c: Centralise buffer sizes |
| 48 |
|
| 49 |
Common buffer sizes are now stored centrally so it can be easily |
| 50 |
and consistently updated if required. Some buffers remain with |
| 51 |
locally defined sizes that do not match a global buffer size. |
| 52 |
|
| 53 |
2013-11-25 Arthur de Jong <[email protected]> |
| 54 |
|
| 55 |
* [23a41ce] compat/pam_get_authtok.c, compat/pam_prompt.c, |
| 56 |
configure.ac, pam/pam.c: Add a test for pam_get_item() argument |
| 57 |
type |
| 58 |
|
| 59 |
This checks whether pam_get_item() takes a const void ** or void |
| 60 |
** item value argument and defines a PAM_ITEM_CONST macro that |
| 61 |
is const when it should. This avoids some compiler warnings. |
| 62 |
|
| 63 |
2013-10-30 Arthur de Jong <[email protected]> |
| 64 |
|
| 65 |
* [81bfb8b] ChangeLog, NEWS, configure.ac, man/chsh.ldap.1.xml, |
| 66 |
man/getent.ldap.1.xml, man/nslcd.8.xml, man/nslcd.conf.5.xml, |
| 67 |
man/pam_ldap.8.xml, man/pynslcd.8.xml: Get files ready for |
| 68 |
0.9.2 release |
| 69 |
|
| 70 |
2013-10-29 Arthur de Jong <[email protected]> |
| 71 |
|
| 72 |
* [ef0edda] tests/test_myldap.sh, tests/test_nsscmds.sh, |
| 73 |
tests/test_pamcmds.expect: Portability fixes to environment tests |
| 74 |
|
| 75 |
This mostly tries to reduce the influences of the test environment |
| 76 |
(local users and groups) on the tests. This uses another username |
| 77 |
(vsefcovic) in the PAM tests instead of the user arthur to avoid |
| 78 |
clashes with existing users. |
| 79 |
|
| 80 |
The PAM tests are skipped if passwd claims that it cannot modify |
| 81 |
LDAP passwords (for FreeBSD). |
| 82 |
|
| 83 |
* [f8af48f] compat/ldap_parse_passwordpolicy_control.c, |
| 84 |
nslcd/common.c, nslcd/config.c, nslcd/group.c, nslcd/nslcd.c, |
| 85 |
nslcd/pam.c, nslcd/protocol.c, nslcd/rpc.c, nslcd/service.c, |
| 86 |
nss/bsdnss.c, nss/ethers.c, nss/group.c, nss/netgroup.c, |
| 87 |
nss/networks.c, nss/passwd.c, nss/protocols.c, nss/rpc.c, |
| 88 |
nss/services.c, pam/pam.c: Fix a number of compiler warnings |
| 89 |
|
| 90 |
This includes a number of small fixes for issues that were |
| 91 |
formerly masked by the incorrect AC_LANG_PROGRAM check. |
| 92 |
|
| 93 |
* [88801f9] configure.ac: Add -Werror=implicit if compiler |
| 94 |
supports it |
| 95 |
|
| 96 |
* [933bf8e] configure.ac: Fix usage of AC_LANG_PROGRAM |
| 97 |
|
| 98 |
Apparently the macro got changed a long time ago to provide a |
| 99 |
main() definition. This bug caused the extra warning flags to |
| 100 |
not be added. |
| 101 |
|
| 102 |
* [6028226] compat/Makefile.am, compat/shell.h, configure.ac, |
| 103 |
nslcd/usermod.c: Compatibility definitions for |
| 104 |
{set,get,end}usershell() |
| 105 |
|
| 106 |
This provides compatibility definitions for systems that don't |
| 107 |
have these functions (some Solaris flavours). |
| 108 |
|
| 109 |
2013-10-28 Arthur de Jong <[email protected]> |
| 110 |
|
| 111 |
* [ed4cf47] nslcd/nslcd.c: Start invalidator after locking pidfile |
| 112 |
|
| 113 |
This causes the pidfile to be written as the first thing after |
| 114 |
daemonising nslcd to minimise the race between service script |
| 115 |
completion and pidfile being locked. |
| 116 |
|
| 117 |
2013-10-27 Arthur de Jong <[email protected]> |
| 118 |
|
| 119 |
* [503644b] HACKING, README: Update documentation |
| 120 |
|
| 121 |
* [6be316e] autogen.sh, configure.ac: Specify m4 directory in |
| 122 |
configure script |
| 123 |
|
| 124 |
2013-10-25 Arthur de Jong <[email protected]> |
| 125 |
|
| 126 |
* [1d8db24] nslcd/myldap.c, pynslcd/search.py: Also run invalidators |
| 127 |
on initial connect |
| 128 |
|
| 129 |
This also invalidates the caches configured with |
| 130 |
reconnect_invalidate on the first successful search. This should |
| 131 |
handle the case more gracefully where caches were filled with |
| 132 |
negative hits before nslcd was running. |
| 133 |
|
| 134 |
* [ee8737f] tests/Makefile.am: Distribute setup_slapd.sh and |
| 135 |
associated files |
| 136 |
|
| 137 |
2013-10-22 Arthur de Jong <[email protected]> |
| 138 |
|
| 139 |
* [e28e937] tests/test_myldap.sh, tests/testenv.sh: Improve |
| 140 |
portability of ldap test |
| 141 |
|
| 142 |
This supports old ldapsearch commands that don't support the -x |
| 143 |
and -H options and ldapsearch commands that don't exit with a |
| 144 |
failure code if nothing is found. |
| 145 |
|
| 146 |
This also switches the test_myldap test to use the testenv check |
| 147 |
for the LDAP server. |
| 148 |
|
| 149 |
2013-10-20 Arthur de Jong <[email protected]> |
| 150 |
|
| 151 |
* [8cc354a] tests/test_pamcmds.expect: Handle other responses |
| 152 |
in test_pamcmds |
| 153 |
|
| 154 |
This extends test_pamcmds to handle other pam/su/passwd errors |
| 155 |
and responses (as seen on CentOS 5). Also switch to stronger |
| 156 |
password when changing the test user's password to avoid problems |
| 157 |
with password strength checks. |
| 158 |
|
| 159 |
* [0a95557] tests/Makefile.am, tests/in_testenv.sh, |
| 160 |
tests/test_nsscmds.sh, tests/test_pamcmds.expect, |
| 161 |
tests/test_pamcmds.sh, tests/testenv.sh: Make script to check |
| 162 |
test environment |
| 163 |
|
| 164 |
This changes the in_testenv.sh script into testenv.sh which has |
| 165 |
more checks and a few functions to configure the test environment. |
| 166 |
|
| 167 |
* [1899e9a] tests/test.ldif: Remove unnecessary attributes from |
| 168 |
test.ldif |
| 169 |
|
| 170 |
* [cebc2a1] tests/README: Update tests README |
| 171 |
|
| 172 |
This refreshes the documentation of the tests, especially the |
| 173 |
test environment. |
| 174 |
|
| 175 |
* [7cbb439] tests/config.ldif, tests/setup_slapd.sh: Provide a |
| 176 |
script for setting up slapd |
| 177 |
|
| 178 |
The setup_slapd.sh script can be used to set up and start a |
| 179 |
slapd instance in a single (temporary) directory. The slapd |
| 180 |
instance is configured and loaded with test data for use in the |
| 181 |
test environment. |
| 182 |
|
| 183 |
2013-10-19 Arthur de Jong <[email protected]> |
| 184 |
|
| 185 |
* [aeccbfe] tests/test_nsscmds.sh: Fix sortgroup function |
| 186 |
|
| 187 |
This fixes an issue with the sortgroup function which failed to |
| 188 |
handle a group line with only two colons correctly. Such group |
| 189 |
entries have been seen in the wild on FreeBSD. |
| 190 |
|
| 191 |
Also, comment lines in group files are now ignored (also seen |
| 192 |
on FreeBSD). |
| 193 |
|
| 194 |
2013-10-14 Arthur de Jong <[email protected]> |
| 195 |
|
| 196 |
* [0697347] common/dict.c: Use djb2 hash in dict module |
| 197 |
|
| 198 |
This slightly modifies the string hashing function to use the |
| 199 |
djb2 hash. This hash is supposed to be reasonably fast and have |
| 200 |
reasonably few collisions. |
| 201 |
|
| 202 |
2013-10-07 Arthur de Jong <[email protected]> |
| 203 |
|
| 204 |
* [61e96bf] nslcd/cfg.h: Increase NSS_LDAP_CONFIG_MAX_BASES to 31 |
| 205 |
|
| 206 |
This allows more search bases which may be useful in some |
| 207 |
environments. |
| 208 |
|
| 209 |
2013-09-15 Arthur de Jong <[email protected]> |
| 210 |
|
| 211 |
* [2f088ec] common/tio.c: Also support poll() returning EAGAIN |
| 212 |
|
| 213 |
2013-09-13 Arthur de Jong <[email protected]> |
| 214 |
|
| 215 |
* [173d768] configure.ac: Add more python module checks to configure |
| 216 |
|
| 217 |
* [b7ca95a] configure.ac: Make missing Python modules a waring |
| 218 |
|
| 219 |
This avoids having to have all modules installed in the build |
| 220 |
environment. A Python version is still required during build. |
| 221 |
|
| 222 |
* [f36bb81] pynslcd/cache.py, pynslcd/group.py: Remove unneeded |
| 223 |
imports |
| 224 |
|
| 225 |
* [8ae8b9a] Makefile.am, configure.ac, tests/Makefile.am: Cleanups |
| 226 |
and fixes related to automake upgrade |
| 227 |
|
| 228 |
This removes a few legacy workarounds and fixes for older versions |
| 229 |
of automake. This also removes adding specific DEBUG flags for |
| 230 |
tests since subdir objects are handled differently now. |
| 231 |
|
| 232 |
* [2bd2bc4] pam/pam.c: Initialise msg to avoid potential NULL |
| 233 |
pointer dereference |
| 234 |
|
| 235 |
The NULL pointer dereference in the PAM module should not occur due |
| 236 |
to the relationship with the rc value that is handled alongside |
| 237 |
it. This change mostly silences the compiler and protects from |
| 238 |
future changes. |
| 239 |
|
| 240 |
* [dccc9cf] configure.ac: Add configure test for |
| 241 |
{set,get,end}usershell() availability |
| 242 |
|
| 243 |
2013-09-08 Arthur de Jong <[email protected]> |
| 244 |
|
| 245 |
* [4fc4197] autogen.sh: Upgrade to automake 1.14 |
| 246 |
|
| 247 |
* [bc6a18e] nslcd/nslcd.c: Use larger nslcd send buffers |
| 248 |
|
| 249 |
By using bigger write buffers in nslcd we reduce the number of |
| 250 |
writes in nslcd and consequently the number of reads in the NSS |
| 251 |
and PAM modules for bigger responses. |
| 252 |
|
| 253 |
This reduces the number of system calls that are made during |
| 254 |
a request and brings a small performance improvement that is |
| 255 |
mainly measurable in the NSS module. A measurement showed 30-80% |
| 256 |
reduction in the number of system calls in the NSS module and |
| 257 |
around 10% reduction in CPU usage (CPU time, only small reduction |
| 258 |
in wallclock time). |
| 259 |
|
| 260 |
Thanks John Sullivan for pointing this out. |
| 261 |
|
| 262 |
* [58d50bf] configure.ac, man/Makefile.am: Add configure check to |
| 263 |
see whether to install manual pages |
| 264 |
|
| 265 |
This also reworks the manual page generation check in the configure |
| 266 |
script and avoids build errors if no tool for generating manual |
| 267 |
pages is present when working on a Git checkout. |
| 268 |
|
| 269 |
2013-09-04 Arthur de Jong <[email protected]> |
| 270 |
|
| 271 |
* [ce95b41] ldapns.ldif: Reformat LDIF file to follow OpenLDAP format |
| 272 |
|
| 273 |
This fixes a wrapping problem. Thanks to Paul Boven for pointing |
| 274 |
this out. |
| 275 |
|
| 276 |
2013-09-02 Arthur de Jong <[email protected]> |
| 277 |
|
| 278 |
* [8b169f1] tests/test_common.c: Fix permissions of test |
| 279 |
configuration |
| 280 |
|
| 281 |
This sets the permissions on the nslcd-test.conf file while |
| 282 |
running the tests to ensure that the permission checks for the |
| 283 |
bindpwn and rootpwmodpw options do not fail the test. |
| 284 |
|
| 285 |
* [560e5de] .gitignore, tests/Makefile.am, tests/test_tio_timeout.c: |
| 286 |
Add a test for tio timeout calculations |
| 287 |
|
| 288 |
This test checks whether the proposed remaining time to sleep |
| 289 |
is reasonable. |
| 290 |
|
| 291 |
* [db5382e] .gitignore, tests/Makefile.am, tests/test_clock.c: |
| 292 |
Add a test for clock_gettime() supported clocks |
| 293 |
|
| 294 |
This probes the system for available clocks to see if they can |
| 295 |
be reliably used to get a monotonic-like timer (the test doesn't |
| 296 |
verify the monotonic part, just usability). |
| 297 |
|
| 298 |
* [7895739] AUTHORS, common/tio.c, configure.ac: Use clock_gettime() |
| 299 |
instead of gettimeofday() |
| 300 |
|
| 301 |
This avoids problems with system clock changes (though there |
| 302 |
are some safeguards in place to avoid waiting too long on clock |
| 303 |
changes). |
| 304 |
|
| 305 |
Thanks to John Sullivan for pointing this out. |
| 306 |
|
| 307 |
We can't easily use CLOCK_MONOTONIC_RAW or CLOCK_MONOTONIC_COARSE |
| 308 |
even on platforms that define the clock because we can get |
| 309 |
runtime errors. CLOCK_MONOTONIC seems to work on all tested |
| 310 |
platforms that provide it. |
| 311 |
|
| 312 |
* [a683aa8] tests/test_manpages.sh: Small protability fix |
| 313 |
|
| 314 |
* [c8800eb] tests/test_manpages.sh: Improve robustness of |
| 315 |
test_manpages |
| 316 |
|
| 317 |
2013-08-31 Arthur de Jong <[email protected]> |
| 318 |
|
| 319 |
* [644df52] common/tio.c, common/tio.h: Use normal timeout handling |
| 320 |
in tio_skipall() |
| 321 |
|
| 322 |
Use the same mechanism in tio_skipall() as in tio_read(), except |
| 323 |
use a different timeout value. |
| 324 |
|
| 325 |
* [0787d45] common/tio.c: Refactor tio_wait() |
| 326 |
|
| 327 |
This changes the function to accept a file descriptor, an event |
| 328 |
and timeout parameter directly instead of a confusing flag. |
| 329 |
|
| 330 |
* [07a8170] common/tio.c: Fix buffer overflow on interupted read |
| 331 |
|
| 332 |
The tio_read() function will read past its buffer and return |
| 333 |
garbadge to the calling function if the call to read() was |
| 334 |
interrupted by a signal. |
| 335 |
|
| 336 |
The likelyhood of read() being interupted is low because previously |
| 337 |
a call to poll() has determined that data is available to be read. |
| 338 |
|
| 339 |
Thanks to John Sullivan for pointing this out. |
| 340 |
|
| 341 |
See: https://bugzilla.redhat.com/show_bug.cgi?id=1003011 |
| 342 |
|
| 343 |
2013-08-30 Arthur de Jong <[email protected]> |
| 344 |
|
| 345 |
* [4897033] nslcd/common.h: In nslcd, log EPIPE only on debug level |
| 346 |
|
| 347 |
See: https://bugzilla.redhat.com/show_bug.cgi?id=1003011 |
| 348 |
|
| 349 |
* [c9e2f97] common/tio.c, common/tio.h, nss/common.h: Use a timeout |
| 350 |
when skipping remaining result data |
| 351 |
|
| 352 |
When the NSS modules closes the connection and skips any remaining |
| 353 |
result data, wait for up to 500 msec to read any available data. |
| 354 |
|
| 355 |
See: https://bugzilla.redhat.com/show_bug.cgi?id=1003011 |
| 356 |
|
| 357 |
2013-08-27 Bersl <[email protected]> |
| 358 |
|
| 359 |
* [7140d21] AUTHORS, nslcd/group.c, nslcd/passwd.c, nslcd/shadow.c: |
| 360 |
Increase password buffer size |
| 361 |
|
| 362 |
With the smaller buffers some password hashes would be truncated. |
| 363 |
|
| 364 |
2013-08-28 Arthur de Jong <[email protected]> |
| 365 |
|
| 366 |
* [8571bc1] NEWS, README, common/dict.c, compat/attrs.h, |
| 367 |
compat/nss_compat.h, man/nslcd.conf.5.xml, nslcd/myldap.c: |
| 368 |
Fix for common spelling mistake |
| 369 |
|
| 370 |
2013-08-25 Arthur de Jong <[email protected]> |
| 371 |
|
| 372 |
* [890d227] AUTHORS, ChangeLog, NEWS, configure.ac, |
| 373 |
man/chsh.ldap.1.xml, man/getent.ldap.1.xml, man/nslcd.8.xml, |
| 374 |
man/nslcd.conf.5.xml, man/pam_ldap.8.xml, man/pynslcd.8.xml: |
| 375 |
Get files ready for 0.9.1 release |
| 376 |
|
| 377 |
* [f9b4b43] Makefile.am: Have a nicer way of generating the ChangeLog |
| 378 |
|
| 379 |
This adds the commit id, improves the line wrapping and also |
| 380 |
gets rid of the external dependency. |
| 381 |
|
| 382 |
* [321d8a3] pynslcd/pynslcd.py: Handle failure of getpeercred |
| 383 |
more gracefully |
| 384 |
|
| 385 |
* [f18729e] tests/Makefile.am: Only run pynslcd tests if it |
| 386 |
is enabled |
| 387 |
|
| 388 |
* [f54f2ad] configure.ac, m4/ax_python_module.m4: Add configure |
| 389 |
test for Python modules |
| 390 |
|
| 391 |
This uses the AX_PYTHON_MODULE test to check for availability |
| 392 |
of used Python modules. All third-party modules and modules that |
| 393 |
are not a builtin for Python 2.5 are tested. |
| 394 |
|
| 395 |
This also splits the tests for the utils and pynslcd. |
| 396 |
|
| 397 |
* [6f61482] pynslcd/attmap.py, pynslcd/group.py, pynslcd/pynslcd.py, |
| 398 |
pynslcd/tio.py, utils/getent.py, utils/nslcd.py: Rearrange |
| 399 |
Python imports |
| 400 |
|
| 401 |
2013-08-23 Arthur de Jong <[email protected]> |
| 402 |
|
| 403 |
* [f6c20ee] nslcd/nslcd.c: Ignore SIGUSR2 for future compatibility |
| 404 |
|
| 405 |
* [27abbbb] man/Makefile.am, tests/Makefile.am, |
| 406 |
tests/test_manpages.sh: Add a test for the manual pages |
| 407 |
|
| 408 |
This replaces e0491d2 to run xmlto from the man directory. This |
| 409 |
handles the case more gracefully if xmlto is not available. |
| 410 |
|
| 411 |
2013-08-18 Arthur de Jong <[email protected]> |
| 412 |
|
| 413 |
* [494833d] config.guess, config.sub: Update files from latest |
| 414 |
automake |
| 415 |
|
| 416 |
2013-08-21 Arthur de Jong <[email protected]> |
| 417 |
|
| 418 |
* [7b474d0] pynslcd/group.py, pynslcd/passwd.py, pynslcd/shadow.py: |
| 419 |
Have pynslcd handle mapped userPassword |
| 420 |
|
| 421 |
This fixes an error that could occur when the userPassword was |
| 422 |
retrieved from LDAP and insufficient privileges were available |
| 423 |
for reading the attribute. |
| 424 |
|
| 425 |
* [b0358f7] : Retry LDAP servers quickly after receiving SIGUSR1 |
| 426 |
|
| 427 |
When nslcd receives the SIGUSR1 signal it will retry connecting |
| 428 |
to unavailable LDAP servers sooner. |
| 429 |
|
| 430 |
This signal can for example be sent when (re)stablishing a |
| 431 |
network connection. |
| 432 |
|
| 433 |
2013-08-20 Arthur de Jong <[email protected]> |
| 434 |
|
| 435 |
* [ebbe8a6] man/nslcd.8.xml, nslcd/nslcd.c: Handle SIGUSR1 by |
| 436 |
resetting the retry timer |
| 437 |
|
| 438 |
This implements and documents handling of the SIGUSR1 signal in |
| 439 |
nslcd to reset the reconnect_sleeptime and reconnect_retrytime |
| 440 |
timers to re-check availability of the LDAP server. |
| 441 |
|
| 442 |
* [8bdb289] nslcd/myldap.c, nslcd/myldap.h: Implement function |
| 443 |
for resetting reconnect times |
| 444 |
|
| 445 |
This implemens a myldap_immediate_reconnect() function that |
| 446 |
resets the reconnect timer to retry failing connections to the |
| 447 |
LDAP server upon the next search. |
| 448 |
|
| 449 |
This can be used to cut the reconnect_sleeptime and |
| 450 |
reconnect_retrytime sleeping periodss short if we have some |
| 451 |
indication that the LDAP server is available again. |
| 452 |
|
| 453 |
* [d58f163] nslcd/common.h, nslcd/nslcd.c, nslcd/shadow.c: Return |
| 454 |
partial shadow information to non-root users |
| 455 |
|
| 456 |
This also returns everything except the password hash from |
| 457 |
the shadow database to non-root users (nothing was returned |
| 458 |
before). This allows non-root users to do PAM authentication in |
| 459 |
some configurations. |
| 460 |
|
| 461 |
On some systems there is a setgid executable that is allowed to |
| 462 |
read /etc/shadow for authentication by e.g. screensavers. Returning |
| 463 |
no shadow information will cause pam_unix to deny authorisation |
| 464 |
in common configurations. |
| 465 |
|
| 466 |
See: http://bugs.debian.org/706913 |
| 467 |
|
| 468 |
* [34365b4] nslcd/cfg.c: Add cast to int when logging configuration |
| 469 |
summary |
| 470 |
|
| 471 |
2013-08-18 Arthur de Jong <[email protected]> |
| 472 |
|
| 473 |
* [44a38eb] pam/pam.c: Small fix in NEW_AUTHTOK_REQD handling |
| 474 |
|
| 475 |
There is a potential memory leak if the old password is saved |
| 476 |
multiple times. Furthermore, PAM_NEW_AUTHTOK_REQD is only allowed |
| 477 |
as a result of the authorisation phase, not the authentication |
| 478 |
phase so there is no use in checking. |
| 479 |
|
| 480 |
* [d8637bb] pynslcd/pam.py: Fix rootpwmodpw handling in pynslcd |
| 481 |
|
| 482 |
* [13d31b7] pynslcd/common.py: Fix not logging passwords in pynslcd |
| 483 |
(7108b1f) |
| 484 |
|
| 485 |
* [7e90541] tests/nslcd-test.conf, tests/test.ldif: Update files |
| 486 |
from test environment |
| 487 |
|
| 488 |
2013-07-29 Arthur de Jong <[email protected]> |
| 489 |
|
| 490 |
* [724a75f] utils/getent.py: Improve error and help output of |
| 491 |
getent command |
| 492 |
|
| 493 |
2013-08-18 Arthur de Jong <[email protected]> |
| 494 |
|
| 495 |
* [882f7be] tests/Makefile.am, tests/pylint.rc, tests/test_pylint.sh: |
| 496 |
Run pylint as a test |
| 497 |
|
| 498 |
This runs a somewhat limited pylint run against the source |
| 499 |
files. It should at least catch some issues. |
| 500 |
|
| 501 |
* [79209ee] pynslcd/common.py, pynslcd/group.py, pynslcd/pam.py, |
| 502 |
pynslcd/passwd.py: Rename isvalidname() to is_valid_name() |
| 503 |
in pynslcd |
| 504 |
|
| 505 |
2013-08-10 Arthur de Jong <[email protected]> |
| 506 |
|
| 507 |
* [e0491d2] man/Makefile.am: Run xmlto on manual pages as part of |
| 508 |
the tests |
| 509 |
|
| 510 |
2013-08-18 Arthur de Jong <[email protected]> |
| 511 |
|
| 512 |
* [7108b1f] pynslcd/common.py: Do not log passwords in pynslcd |
| 513 |
|
| 514 |
* [cda6dcd] : Implement an option to run in the foreground |
| 515 |
|
| 516 |
This introduces a -n, --nofork option that skips the deamonising |
| 517 |
step on start-up. This may be required for running nslcd from |
| 518 |
upstart. |
| 519 |
|
| 520 |
See: https://bugs.launchpad.net/bugs/806761 |
| 521 |
|
| 522 |
* [1825be6] man/nslcd.8.xml, man/pynslcd.8.xml: Document -n, |
| 523 |
--nofork option |
| 524 |
|
| 525 |
* [82bcfd7] pynslcd/pynslcd.py: -n switch for pynslcd |
| 526 |
|
| 527 |
2013-08-17 Caleb Callaway <[email protected]> |
| 528 |
|
| 529 |
* [14b93b9] nslcd/nslcd.c: -n switch for nslcd (prevents process |
| 530 |
from forking) |
| 531 |
|
| 532 |
2013-08-17 Arthur de Jong <[email protected]> |
| 533 |
|
| 534 |
* [8a3f0f5] : Improvements to pynslcd caching functionality |
| 535 |
|
| 536 |
This fixes most of the existing caching functionality. Cache |
| 537 |
expiry, negative hits and entries going away remain to be |
| 538 |
implemented. |
| 539 |
|
| 540 |
2013-08-16 Arthur de Jong <[email protected]> |
| 541 |
|
| 542 |
* [a066bcb] configure.ac, tests/Makefile.am, |
| 543 |
tests/test_pynslcd_cache.py: Implement tests for caching |
| 544 |
functionality |
| 545 |
|
| 546 |
2013-08-12 Arthur de Jong <[email protected]> |
| 547 |
|
| 548 |
* [d66162a] pynslcd/alias.py, pynslcd/cache.py, pynslcd/group.py, |
| 549 |
pynslcd/host.py, pynslcd/netgroup.py, pynslcd/network.py, |
| 550 |
pynslcd/protocol.py, pynslcd/rpc.py, pynslcd/service.py: Use |
| 551 |
retrieve_by, group_by and group_columns in the cache |
| 552 |
|
| 553 |
This removes custom retrieve() functions and Query classes from |
| 554 |
the database modules and uses retrieve_sql retrieve_by, group_by |
| 555 |
and group_columns to make a custom retrieval query. |
| 556 |
|
| 557 |
In the cache module this completely replaces how the query grouping |
| 558 |
is done. The Query class is now only used inside the cache and the |
| 559 |
CnAliasedQuery, RowGrouper and related classed have been removed. |
| 560 |
|
| 561 |
2013-04-23 Arthur de Jong <[email protected]> |
| 562 |
|
| 563 |
* [bfe22cc] pynslcd/cache.py: Make Cache a context manager |
| 564 |
|
| 565 |
2013-08-12 Arthur de Jong <[email protected]> |
| 566 |
|
| 567 |
* [1b89df5] pynslcd/alias.py, pynslcd/cache.py, pynslcd/group.py, |
| 568 |
pynslcd/host.py, pynslcd/netgroup.py, pynslcd/network.py, |
| 569 |
pynslcd/protocol.py, pynslcd/rpc.py, pynslcd/service.py: Give |
| 570 |
cache tables friendlier names |
| 571 |
|
| 572 |
This also defined the tables for netgroup storage. |
| 573 |
|
| 574 |
2013-08-11 Arthur de Jong <[email protected]> |
| 575 |
|
| 576 |
* [7671276] pynslcd/alias.py, pynslcd/cache.py, pynslcd/group.py, |
| 577 |
pynslcd/host.py, pynslcd/network.py, pynslcd/protocol.py, |
| 578 |
pynslcd/rpc.py, pynslcd/service.py: Explicitly define tables |
| 579 |
used for cache |
| 580 |
|
| 581 |
This introduces the tables property in the Cache object that is |
| 582 |
used to define the used tables. |
| 583 |
|
| 584 |
This also fixes the storing of mulit-valued attributes in |
| 585 |
the cache. |
| 586 |
|
| 587 |
2013-04-16 Arthur de Jong <[email protected]> |
| 588 |
|
| 589 |
* [b0b5723] pynslcd/alias.py, pynslcd/cache.py, pynslcd/ether.py, |
| 590 |
pynslcd/group.py, pynslcd/host.py, pynslcd/netgroup.py, |
| 591 |
pynslcd/network.py, pynslcd/passwd.py, pynslcd/protocol.py, |
| 592 |
pynslcd/rpc.py, pynslcd/service.py, pynslcd/shadow.py: Move |
| 593 |
cache table creation to modules |
| 594 |
|
| 595 |
This also moves the creation of a SQLite database connection to |
| 596 |
a _get_connection() function to ensure the cache is only created |
| 597 |
when the caches are instantiated. |
| 598 |
|
| 599 |
2013-07-30 Arthur de Jong <[email protected]> |
| 600 |
|
| 601 |
* [84d22e6] pynslcd/passwd.py: Fix missing part of d659e83 |
| 602 |
|
| 603 |
2013-07-29 Arthur de Jong <[email protected]> |
| 604 |
|
| 605 |
* [ec53918] pynslcd/group.py, pynslcd/passwd.py: Use cleaner import |
| 606 |
and get rid of uid2dn function in pynslcd |
| 607 |
|
| 608 |
* [d659e83] pynslcd/cfg.py, pynslcd/passwd.py: Handle the nss_min_uid |
| 609 |
option in pynslcd |
| 610 |
|
| 611 |
* [7092d40] pynslcd/cfg.py, pynslcd/group.py: Handle the |
| 612 |
nss_initgroups_ignoreusers option in pynslcd |
| 613 |
|
| 614 |
* [a0e12e6] pynslcd/cfg.py, pynslcd/pam.py: Fix handling of |
| 615 |
pam_password_prohibit_message in pynslcd |
| 616 |
|
| 617 |
* [fa97bcc] pynslcd/Makefile.am, pynslcd/config.py, |
| 618 |
pynslcd/pynslcd.py: Implement config request handling in pynslcd |
| 619 |
|
| 620 |
This allows the PAM module to request the |
| 621 |
pam_password_prohibit_message option for denying password change. |
| 622 |
|
| 623 |
* [a3acbec] pynslcd/pam.py: Implement PAM session handling in pynslcd |
| 624 |
|
| 625 |
Just like in nslcd this doesn't actually do anything with the |
| 626 |
session ids except generating them. |
| 627 |
|
| 628 |
2013-07-26 Arthur de Jong <[email protected]> |
| 629 |
|
| 630 |
* [4031750] pynslcd/search.py: Properly handle start_tls in pynslcd |
| 631 |
|
| 632 |
2013-07-27 Arthur de Jong <[email protected]> |
| 633 |
|
| 634 |
* [5d3f681] configure.ac: Have configure show --disable-utils |
| 635 |
by default |
| 636 |
|
| 637 |
Since the utils are automatically built if Python is available |
| 638 |
--disable is more appropriate a default then --enable. |
| 639 |
|
| 640 |
* [5adc2ca] tests/test_pycompile.sh: Have test_pycompile not write |
| 641 |
any pyc files |
| 642 |
|
| 643 |
We need to avoid writing pyc files because during make distcheck, |
| 644 |
the source directory is read-only. |
| 645 |
|
| 646 |
This also ensures that the test is skipped if the Python |
| 647 |
interpreter is not found. |
| 648 |
|
| 649 |
* [e17730f] README: Dcoumentation updates |
| 650 |
|
| 651 |
This fixes a typo, clarifies the section on the LDAP schema |
| 652 |
values that are supported and updates the differences between |
| 653 |
nss-pam-ldapd and nss_ldap and pam_ldap. |
| 654 |
|
| 655 |
2013-07-26 Arthur de Jong <[email protected]> |
| 656 |
|
| 657 |
* [30ffdb2] tests/Makefile.am, tests/test_pycompile.sh: Test Python |
| 658 |
syntax on make check |
| 659 |
|
| 660 |
* [10eec70] : Merge fixes for reconnect_invalidate option |
| 661 |
|
| 662 |
The branch accidentally got merged before it was fully tested. |
| 663 |
|
| 664 |
* [dce98a5] nslcd/cfg.c, nslcd/invalidator.c, pynslcd/invalidator.py, |
| 665 |
pynslcd/pynslcd.py: Fix errors in invalidator changes |
| 666 |
|
| 667 |
This fixes a few typos and an omission in the configuration file |
| 668 |
parsing code. |
| 669 |
|
| 670 |
* [7c85202] : Make cache invalidation more generic |
| 671 |
|
| 672 |
This changes the nscd_invalidate option into a more generic |
| 673 |
reconnect_invalidate and also allows clearing the nfsidmap cache. |
| 674 |
|
| 675 |
* [e1b0399] man/nslcd.conf.5.xml, nslcd/Makefile.am, nslcd/cfg.c, |
| 676 |
nslcd/cfg.h, nslcd/common.h, nslcd/invalidator.c, nslcd/myldap.c, |
| 677 |
nslcd/nscd.c, nslcd/nslcd.c, pynslcd/Makefile.am, pynslcd/cfg.py, |
| 678 |
pynslcd/invalidator.py, pynslcd/nscd.py, pynslcd/pynslcd.py, |
| 679 |
pynslcd/search.py, tests/Makefile.am: Rename nscd_invalidate |
| 680 |
option to reconnect_invalidate |
| 681 |
|
| 682 |
This also renames the internal nscd module to invalidator for |
| 683 |
both nslcd and pynslcd. The new invalidator module is now no |
| 684 |
longer nscd-specific. |
| 685 |
|
| 686 |
* [6054499] man/nslcd.conf.5.xml, nslcd/attmap.c, nslcd/cfg.c, |
| 687 |
nslcd/cfg.h, nslcd/nscd.c, pynslcd/cfg.py, pynslcd/nscd.py: |
| 688 |
Allow invalidating the nfsidmap cache |
| 689 |
|
| 690 |
This introduces an nfsidmap value for nscd_invalidate which will |
| 691 |
cause the nfsidmap -c command to be run. |
| 692 |
|
| 693 |
2013-07-17 Arthur de Jong <[email protected]> |
| 694 |
|
| 695 |
* [d2e2e40] pynslcd/nscd.py: Fix nscd cache flushing bug in pynslcd |
| 696 |
|
| 697 |
The pynslcd implementation would always clear the passwd nscd |
| 698 |
cache regardless of the provided map. |
| 699 |
|
| 700 |
2013-07-11 Arthur de Jong <[email protected]> |
| 701 |
|
| 702 |
* [5b78508] .gitignore, INSTALL, ar-lib, autogen.sh, compile, |
| 703 |
config.guess, config.sub, configure.ac, depcomp, install-sh, |
| 704 |
missing, mkinstalldirs, py-compile, test-driver: Upgrade to |
| 705 |
automake 1.13 |
| 706 |
|
| 707 |
2013-05-20 Arthur de Jong <[email protected]> |
| 708 |
|
| 709 |
* [ee7b2e9] tests/lookup_shadow.c: Add an explicit cast to int |
| 710 |
in lookup_shadow |
| 711 |
|
| 712 |
2013-04-14 Arthur de Jong <[email protected]> |
| 713 |
|
| 714 |
* [b6f5047] nslcd/nscd.c: Make tests for system call failures a |
| 715 |
little more robustly |
| 716 |
|
| 717 |
2013-05-10 Arthur de Jong <[email protected]> |
| 718 |
|
| 719 |
* [97d35f3] pynslcd/pynslcd.py: Ignore errors in opening NSS module |
| 720 |
|
| 721 |
2013-04-12 Arthur de Jong <[email protected]> |
| 722 |
|
| 723 |
* [b15dc66] pynslcd/cache.py, pynslcd/cfg.py, pynslcd/group.py, |
| 724 |
pynslcd/nscd.py, pynslcd/pynslcd.py, pynslcd/search.py, |
| 725 |
pynslcd/shadow.py, pynslcd/tio.py, pynslcd/usermod.py, |
| 726 |
utils/chsh.py, utils/getent.py, utils/nslcd.py, utils/users.py: |
| 727 |
Python style changes |
| 728 |
|
| 729 |
This tries to conform more closely to PEP8. Imports have been |
| 730 |
checked and, if used only once, moved closer to the use to avoid |
| 731 |
potential import loops. This also includes a few other minor |
| 732 |
changes, like using __main__ for utility scripts and variable |
| 733 |
renames to avoid name clashes. |
| 734 |
|
| 735 |
* [d3c6a66] pynslcd/pam.py: Raise an error with a missing old |
| 736 |
password on password modification |
| 737 |
|
| 738 |
* [f45b24d] utils/nslcd.py: Set FD_CLOEXEC on the client socket |
| 739 |
in utilities |
| 740 |
|
| 741 |
* [bc35197] pynslcd/pam.py: Fix getting caller's uid on password |
| 742 |
change (pynslcd) |
| 743 |
|
| 744 |
2013-04-06 Arthur de Jong <[email protected]> |
| 745 |
|
| 746 |
* [84402e5] utils/Makefile.am: Install utilities in share/nslcd-utils |
| 747 |
|
| 748 |
* [b5b4239] man/Makefile.am: Fix the way manual pages are installed |
| 749 |
|
| 750 |
The :u flag apparently isn't portable across versions of make |
| 751 |
and automake rules complain if a manual page is added twice to |
| 752 |
a target. |
| 753 |
|
| 754 |
2013-04-05 Arthur de Jong <[email protected]> |
| 755 |
|
| 756 |
* [187c626] ChangeLog, NEWS, TODO, configure.ac, |
| 757 |
man/getent.ldap.1.xml, man/nslcd.8.xml, man/nslcd.conf.5.xml, |
| 758 |
man/pam_ldap.8.xml, man/pynslcd.8.xml: Get files ready for |
| 759 |
0.9.0 release |
| 760 |
|
| 761 |
* [2616f43] pynslcd/Makefile.am: Include the usermod.py file in |
| 762 |
the distribution |
| 763 |
|
| 764 |
* [c519729] man/chsh.ldap.1.xml: Fix docbook validation |
| 765 |
|
| 766 |
2013-04-03 Arthur de Jong <[email protected]> |
| 767 |
|
| 768 |
* [1c31305] configure.ac: Ignore missing Python in initial test |
| 769 |
|
| 770 |
* [4b01125] nslcd/nslcd.c: Fix comment |
| 771 |
|
| 772 |
2013-03-30 Arthur de Jong <[email protected]> |
| 773 |
|
| 774 |
* [d7990de] pynslcd/pam.py: Update the shadowLastChange on password |
| 775 |
change in pynslcd |
| 776 |
|
| 777 |
* [ea6bff3] pynslcd/pam.py: Implement password modification |
| 778 |
in pynslcd |
| 779 |
|
| 780 |
* [62a409c] : Implement used modification functionality |
| 781 |
|
| 782 |
This adds user information modification functionality to nslcd |
| 783 |
and pynslcd and implements a chsh.ldap utility that can be |
| 784 |
used to change the login shell of a user (similar to the normal |
| 785 |
chsh command). |
| 786 |
|
| 787 |
The user modification functionality should allow for generic |
| 788 |
modifications of user information. More utility commands to |
| 789 |
perform modifications remain to be implemented. |
| 790 |
|
| 791 |
* [012b185] .gitignore, man/Makefile.am, man/chsh.ldap.1.xml, |
| 792 |
utils/Makefile.am, utils/chsh.py, utils/cmdline.py, utils/nslcd.py, |
| 793 |
utils/shells.py, utils/users.py: Initial version of a chsh.ldap |
| 794 |
utility |
| 795 |
|
| 796 |
* [d0482fb] pynslcd/pynslcd.py, pynslcd/usermod.py: Handle user |
| 797 |
modification requests in pynslcd |
| 798 |
|
| 799 |
Similar to the nslcd implementation, this currently only covers |
| 800 |
modifying the homeDirectory and loginShell attributes. |
| 801 |
|
| 802 |
* [f1895f9] nslcd/Makefile.am, nslcd/common.h, nslcd/nslcd.c, |
| 803 |
nslcd/usermod.c: Handle user modification requests in nslcd |
| 804 |
|
| 805 |
This is currently limited to supporting modification of the |
| 806 |
homeDirectory and loginShell attributes. |
| 807 |
|
| 808 |
Modifications as root currently use the rootpwmoddn and rootpwmodpw |
| 809 |
options. |
| 810 |
|
| 811 |
* [8fb5eb1] nslcd.h: Define a NSLCD_ACTION_USERMOD request |
| 812 |
|
| 813 |
The modification can either be requested by root or by the |
| 814 |
user itself. |
| 815 |
|
| 816 |
Modifications by the user should be done by connecting to the |
| 817 |
LDAP server with the user-supplied credentials. It is expected |
| 818 |
that access controls in the LDAP server prevent unwanted |
| 819 |
modifications. The nslcd process is expected to check whether |
| 820 |
supplied values are sensible. |
| 821 |
|
| 822 |
* [aae36cf] pynslcd/pam.py: Rename authentication function and |
| 823 |
return connection |
| 824 |
|
| 825 |
* [355c2af] configure.ac: Fix test for absence of Python |
| 826 |
|
| 827 |
* [f478830] pynslcd/cfg.py: Mark unsupported pynslcd configuration |
| 828 |
options |
| 829 |
|
| 830 |
* [2b097f7] configure.ac: Preset default configure values |
| 831 |
consistently |
| 832 |
|
| 833 |
* [6ceb1df] configure.ac: Give an error when the Python interpreter |
| 834 |
is missing |
| 835 |
|
| 836 |
2013-03-29 Arthur de Jong <[email protected]> |
| 837 |
|
| 838 |
* [a47b20f] configure.ac: Build command-line utilities by default |
| 839 |
if Python is available |
| 840 |
|
| 841 |
* [adde1d4] : Implement clearing of nscd cache in pynslcd |
| 842 |
|
| 843 |
* [a75cfb9] pynslcd/nscd.py, pynslcd/search.py: Detect and handle |
| 844 |
connection failure and recovery |
| 845 |
|
| 846 |
Logs a connection recovery message and run a nscd cache |
| 847 |
invalidation if configured. |
| 848 |
|
| 849 |
* [585d388] pynslcd/pynslcd.py: Start the nscd invalidator process |
| 850 |
if needed |
| 851 |
|
| 852 |
* [d4c5c96] pynslcd/cfg.py: Parse the nscd_invalidate option |
| 853 |
|
| 854 |
* [11b1739] pynslcd/Makefile.am, pynslcd/nscd.py: Functionality |
| 855 |
for clearing the nscd cache in pynslcd |
| 856 |
|
| 857 |
* [65a65ad] pynslcd/pynslcd.py: Switch to using os.environ instead |
| 858 |
of os.putenv() |
| 859 |
|
| 860 |
The os.putenv() call doesn't update os.environ and Python |
| 861 |
documentation recommends using os.environ. |
| 862 |
|
| 863 |
* [46cf240] pynslcd/pam.py: Rename validate_request to validate |
| 864 |
|
| 865 |
* [7d1e492] pynslcd/pam.py: Also perform authentication search |
| 866 |
using LDAPSearch class |
| 867 |
|
| 868 |
2013-03-28 Arthur de Jong <[email protected]> |
| 869 |
|
| 870 |
* [302c2fa] tests/test_nsscmds.sh: Make the NSS tests dependant |
| 871 |
on the configuration of nsswitch.conf |
| 872 |
|
| 873 |
* [8790b40] tests/test_myldap.c: Do not rely on printf() being |
| 874 |
able to print NULL strings |
| 875 |
|
| 876 |
2013-03-24 Arthur de Jong <[email protected]> |
| 877 |
|
| 878 |
* [932c641] man/nslcd.conf.5.xml: Fix manual page generation |
| 879 |
|
| 880 |
* [07ca836] nslcd/cfg.h: Fix comment for nss_nested_groups config |
| 881 |
option |
| 882 |
|
| 883 |
* [3daa68d] : Implement support for nested groups |
| 884 |
|
| 885 |
* [642064c] tests/test.ldif, tests/test_nsscmds.sh: Add tests for |
| 886 |
nested group functionality |
| 887 |
|
| 888 |
This also includes some changes to the test directory contents |
| 889 |
that were for other tests and functionality. |
| 890 |
|
| 891 |
* [b1b7648] README, man/nslcd.conf.5.xml, nslcd/cfg.c, nslcd/cfg.h, |
| 892 |
nslcd/group.c, pynslcd/cfg.py, pynslcd/group.py: Implement a |
| 893 |
nss_nested_groups configuration option |
| 894 |
|
| 895 |
This option can be used in both nslcd and pynslcd to enable |
| 896 |
recursive group member lookups. By default the functionality is |
| 897 |
disabled. This also updates the documentation. |
| 898 |
|
| 899 |
* [d6a6e8b] pynslcd/common.py, pynslcd/group.py: Implement support |
| 900 |
for nested groups in pynslcd |
| 901 |
|
| 902 |
* [41ba574] nslcd/group.c: Implement support for nested groups |
| 903 |
in nslcd |
| 904 |
|
| 905 |
This differs from the code provided by Steve Hill in that it avoids |
| 906 |
(recursively) performing parallel LDAP searches by queueing groups |
| 907 |
and check for extra members per queued group (in the forward |
| 908 |
lookup) or check for extra parents (for the user to groups lookup). |
| 909 |
|
| 910 |
For the reverse lookup handling the NSLCD_HANDLE macro could no |
| 911 |
longer be used because extra care should be taken to free the |
| 912 |
sets before returning and two search phases are needed. |
| 913 |
|
| 914 |
2013-03-20 Steve Hill <[email protected]> |
| 915 |
|
| 916 |
* [08f5301] AUTHORS, nslcd/group.c: Implement a |
| 917 |
mkfilter_group_bymemberdn() function |
| 918 |
|
| 919 |
This was part of a bigger change to implement nested groups, |
| 920 |
however most of the other parts were re-implemented differently. |
| 921 |
|
| 922 |
For the original changes, see: |
| 923 |
http://lists.arthurdejong.org/nss-pam-ldapd-users/2013/msg00034.html |
| 924 |
|
| 925 |
2013-03-24 Arthur de Jong <[email protected]> |
| 926 |
|
| 927 |
* [edd119c] tests/test.ldif, tests/test.ldif.gz: Unpack the LDIF |
| 928 |
file to make diffs clearer |
| 929 |
|
| 930 |
* [b0785de] nslcd/cfg.h, nslcd/myldap.c: spelling fixes |
| 931 |
|
| 932 |
2013-03-22 Arthur de Jong <[email protected]> |
| 933 |
|
| 934 |
* [402d3f3] nslcd/service.c: fix service request logging |
| 935 |
|
| 936 |
2013-03-19 Jakub Hrozek <[email protected]> |
| 937 |
|
| 938 |
* [f21efd6] nss/common.h: NSS: Return TRYAGAIN on zero-length buffer |
| 939 |
|
| 940 |
One of our customers was running into a situation where glibc |
| 941 |
provided a zero buffer, which is a condition that is retriable |
| 942 |
and the nss module should return NSS_STATUS_TRYAGAIN not |
| 943 |
NSS_STATUS_UNAVAIL. |
| 944 |
|
| 945 |
2013-03-11 Arthur de Jong <[email protected]> |
| 946 |
|
| 947 |
* [7926326] nss/shadow.c: fix the text representation of shadow |
| 948 |
information for nscd on Solaris |
| 949 |
|
| 950 |
* [83c5788] .gitignore, tests/Makefile.am, tests/lookup_shadow.c: |
| 951 |
implement a lookup_shadow test command for use on systems that |
| 952 |
don't allow querying shadow via getent |
| 953 |
|
| 954 |
2013-03-10 Arthur de Jong <[email protected]> |
| 955 |
|
| 956 |
* [fa27d94] nslcd/cfg.c, nslcd/nscd.c: fix a few compiler warnings |
| 957 |
|
| 958 |
* [0b5b4d1] configure.ac: guess the value for --with-pam-seclib-dir |
| 959 |
if it is not specified |
| 960 |
|
| 961 |
2013-03-10 Arthur de Jong <[email protected]> |
| 962 |
|
| 963 |
* [24c565c] tests/test_pamcmds.sh: small portability fix in |
| 964 |
test_pamcmds.sh |
| 965 |
|
| 966 |
* [6a92621] nslcd/service.c: only log protocol name if it is present |
| 967 |
|
| 968 |
* [f7c6771] compat/ldap_parse_passwordpolicy_control.c, configure.ac: |
| 969 |
also support systems without bet_get_enum() |
| 970 |
|
| 971 |
2013-03-09 Arthur de Jong <[email protected]> |
| 972 |
|
| 973 |
* [ba5f39f] pynslcd/pynslcd.py: log hex value of action id to make |
| 974 |
debugging easier |
| 975 |
|
| 976 |
* [11ca816] pynslcd/pam.py: ensure consistent naming of DN variables |
| 977 |
|
| 978 |
* [116d215] pynslcd/attmap.py, pynslcd/group.py, |
| 979 |
pynslcd/netgroup.py, pynslcd/pam.py, pynslcd/search.py, |
| 980 |
pynslcd/service.py, pynslcd/shadow.py: clean up imports and use |
| 981 |
ldap.filter.escape_filter_chars() directly |
| 982 |
|
| 983 |
* [ac30060] pynslcd/pam.py, pynslcd/pynslcd.py, pynslcd/search.py: |
| 984 |
move get_connection function to search module as Connection class |
| 985 |
as subclass of ReconnectLDAPObject to automatically reconnect |
| 986 |
to the LDAP server |
| 987 |
|
| 988 |
* [4e60340] pynslcd/Makefile.am, pynslcd/alias.py, pynslcd/common.py, |
| 989 |
pynslcd/ether.py, pynslcd/group.py, pynslcd/host.py, |
| 990 |
pynslcd/netgroup.py, pynslcd/network.py, pynslcd/pam.py, |
| 991 |
pynslcd/passwd.py, pynslcd/protocol.py, pynslcd/rpc.py, |
| 992 |
pynslcd/search.py, pynslcd/service.py, pynslcd/shadow.py: move |
| 993 |
Search class to search module |
| 994 |
|
| 995 |
* [975ee2c] pynslcd/cfg.py: fix default logging configuration |
| 996 |
setting in pynslcd |
| 997 |
|
| 998 |
* [8a67c9f] common/tio.c: fix the description of the |
| 999 |
tio_time_remaining() function |
| 1000 |
|
| 1001 |
* [d19f1df] man/nslcd.conf.5.xml: document the nscd_invalidate option |
| 1002 |
|
| 1003 |
* [bf64710] nslcd/myldap.c, nslcd/nscd.c, nslcd/nslcd.c: start the |
| 1004 |
nscd invalidator and invalidate the nscd cache after reconnecting |
| 1005 |
to the LDAP server after failure |
| 1006 |
|
| 1007 |
* [d413a64] nslcd/cfg.c, nslcd/cfg.h: implement parsing of the |
| 1008 |
nscd_invalidate option |
| 1009 |
|
| 1010 |
* [008f8a9] configure.ac, nslcd/Makefile.am, nslcd/common.h, |
| 1011 |
nslcd/nscd.c, tests/Makefile.am: implement functionality to send |
| 1012 |
a cache invalidation signal to nscd |
| 1013 |
|
| 1014 |
* [9a6f5b2] nslcd/common.c, nslcd/common.h, nslcd/nslcd.c: move |
| 1015 |
signame() function to common.c to make it available to all modules |
| 1016 |
|
| 1017 |
2013-03-03 Arthur de Jong <[email protected]> |
| 1018 |
|
| 1019 |
* [646dfa8] man/nslcd.conf.5.xml: document the trimming expressions |
| 1020 |
in the nslcd.conf(5) manual page |
| 1021 |
|
| 1022 |
* [54a3dba] pynslcd/expr.py: support trimming expressions with |
| 1023 |
full shell glob matching in pynslcd |
| 1024 |
|
| 1025 |
* [8655355] tests/test_expr.c: add tests for trimming expressions |
| 1026 |
|
| 1027 |
2013-01-04 Arthur de Jong <[email protected]> |
| 1028 |
|
| 1029 |
* [6c05b76] common/expr.c: update the trimming expressions code |
| 1030 |
to follow the new coding style |
| 1031 |
|
| 1032 |
2012-12-03 Thorsten Glaser <[email protected]> |
| 1033 |
|
| 1034 |
* [3731964] AUTHORS, common/expr.c: allow trimming expressions |
| 1035 |
with ${foo#bar} syntax in nslcd |
| 1036 |
|
| 1037 |
2013-03-01 Arthur de Jong <[email protected]> |
| 1038 |
|
| 1039 |
* [f56f926] nslcd/myldap.c, nslcd/myldap.h, nslcd/pam.c: return |
| 1040 |
the password policy bind information via PAM |
| 1041 |
|
| 1042 |
2013-01-04 Arthur de Jong <[email protected]> |
| 1043 |
|
| 1044 |
* [5fce062] compat/Makefile.am, compat/ldap_compat.h, |
| 1045 |
compat/ldap_passwordpolicy_err2txt.c, configure.ac: provide a |
| 1046 |
basic replacement implementation of ldap_passwordpolicy_err2txt() |
| 1047 |
for systems that don't have it |
| 1048 |
|
| 1049 |
* [37151df] compat/Makefile.am, compat/ldap_compat.h, |
| 1050 |
compat/ldap_parse_passwordpolicy_control.c, configure.ac: provide |
| 1051 |
a replacement implementation of ldap_parse_passwordpolicy_control() |
| 1052 |
for systems that don't have it |
| 1053 |
|
| 1054 |
2013-03-01 Arthur de Jong <[email protected]> |
| 1055 |
|
| 1056 |
* [1c2ab50] compat/ldap_compat.h, configure.ac, nslcd/myldap.c: |
| 1057 |
request and parse password policy controls when doing user |
| 1058 |
authentication in nslcd |
| 1059 |
|
| 1060 |
2013-01-18 Arthur de Jong <[email protected]> |
| 1061 |
|
| 1062 |
* [f2c49e6] nslcd/myldap.c: pass the session along to the do_bind() |
| 1063 |
function |
| 1064 |
|
| 1065 |
2013-03-03 Arthur de Jong <[email protected]> |
| 1066 |
|
| 1067 |
* [117327e] configure.ac: add some missing checks to the configure |
| 1068 |
script |
| 1069 |
|
| 1070 |
2013-03-01 Arthur de Jong <[email protected]> |
| 1071 |
|
| 1072 |
* [b4afe7c] nslcd/pam.c: log a more meaningful error in nslcd when |
| 1073 |
trying to authenticate as administrator when rootpwmoddn is not set |
| 1074 |
|
| 1075 |
* [31f9098] nslcd/common.h, nslcd/pam.c, nslcd/shadow.c: move |
| 1076 |
update_lastchange() function from shadow to pam code |
| 1077 |
|
| 1078 |
* [1a1bb07] utils/getent.py: move parsing to command line arguments |
| 1079 |
to main body |
| 1080 |
|
| 1081 |
2013-02-28 Arthur de Jong <[email protected]> |
| 1082 |
|
| 1083 |
* [38fb524] TODO: update TODO (setnetgrent() returns an error |
| 1084 |
since r1874) |
| 1085 |
|
| 1086 |
2013-02-27 Arthur de Jong <[email protected]> |
| 1087 |
|
| 1088 |
* [798820e] man/nslcd.conf.5.xml: include information about when |
| 1089 |
some of the options were added |
| 1090 |
|
| 1091 |
* [11283a5] nss/common.c: add missing include statement for NULL |
| 1092 |
definition |
| 1093 |
|
| 1094 |
2013-02-23 Arthur de Jong <[email protected]> |
| 1095 |
|
| 1096 |
* [12076c7] nslcd/nslcd.c, pynslcd/pynslcd.py: log version |
| 1097 |
information from the NSS module |
| 1098 |
|
| 1099 |
* [3155cdf] nss/common.c, nss/exports.freebsd, nss/exports.glibc, |
| 1100 |
nss/exports.solaris: define and export an _nss_ldap_version symbol |
| 1101 |
|
| 1102 |
* [61a3fce] pynslcd/ether.py: also search for alternative macAddress |
| 1103 |
representation in pynslcd |
| 1104 |
|
| 1105 |
2013-02-12 Arthur de Jong <[email protected]> |
| 1106 |
|
| 1107 |
* [a9aea20] nslcd/nslcd.c: extra sanity check to ensure not too |
| 1108 |
many file descriptors are open |
| 1109 |
|
| 1110 |
2013-02-23 Arthur de Jong <[email protected]> |
| 1111 |
|
| 1112 |
* [bfdf7cd] nslcd.h: clarify NSLCD_ACTION_SERVICE_* request |
| 1113 |
parameter description |
| 1114 |
|
| 1115 |
* [1c6d856] man/nslcd.conf.5.xml, nslcd/cfg.c, tests/test_common.c: |
| 1116 |
allow names with one character in default validnames option and |
| 1117 |
allow parentheses (taken from Fedora packages) |
| 1118 |
|
| 1119 |
* [d54243a] man/nslcd.conf.5.xml: document the log option |
| 1120 |
|
| 1121 |
* [c75599d] pynslcd/cfg.py, pynslcd/pynslcd.py: handle the log |
| 1122 |
configuration option in pynslcd |
| 1123 |
|
| 1124 |
* [efca5ca] nslcd/cfg.c, nslcd/log.c, nslcd/log.h, nslcd/nslcd.c: |
| 1125 |
handle the log configuration option in nslcd |
| 1126 |
|
| 1127 |
* [22be9b0] nslcd/log.c, nslcd/log.h: implement functions for |
| 1128 |
configuring alternative logging |
| 1129 |
|
| 1130 |
2013-02-12 Arthur de Jong <[email protected]> |
| 1131 |
|
| 1132 |
* [c12768a] man/getent.ldap.1.xml: fix docbook tag for file name |
| 1133 |
|
| 1134 |
2013-01-05 Arthur de Jong <[email protected]> |
| 1135 |
|
| 1136 |
* [60f1d85] Makefile.am: generate ChangeLog with git2cl |
| 1137 |
|
| 1138 |
* [ba93d8f] ChangeLog, ChangeLog-2012: archive 2012 changelog |
| 1139 |
messages into a year file including the change from Subversion |
| 1140 |
|
| 1141 |
2013-01-28 Arthur de Jong <[email protected]> |
| 1142 |
|
| 1143 |
* [91440f7] .gitignore, man/Makefile.am, man/getent.ldap.1.xml: |
| 1144 |
add getent.ldap(1) manual page |
| 1145 |
|
| 1146 |
* [ded7bd2] utils/Makefile.am, utils/cmdline.py, utils/getent.py, |
| 1147 |
utils/nslcd.py: implement a getent command to query nslcd while |
| 1148 |
bypassing NSS stack |
| 1149 |
|
| 1150 |
2013-01-26 Arthur de Jong <[email protected]> |
| 1151 |
|
| 1152 |
* [3117668] .gitignore, Makefile.am, configure.ac, utils/Makefile.am: |
| 1153 |
add an --enable-utils option to configure to build command-line |
| 1154 |
utilities |
| 1155 |
|
| 1156 |
2013-01-09 Arthur de Jong <[email protected]> |
| 1157 |
|
| 1158 |
* [7c01898] pynslcd/cache.py, pynslcd/common.py: disable pynslcd |
| 1159 |
cache for now |
| 1160 |
|
| 1161 |
2013-01-27 Arthur de Jong <[email protected]> |
| 1162 |
|
| 1163 |
* [b9395c8] nslcd.h, nslcd/common.h, nslcd/netgroup.c, nslcd/nslcd.c, |
| 1164 |
pynslcd/netgroup.py: implement a netgroup_all request |
| 1165 |
|
| 1166 |
2013-01-18 Arthur de Jong <[email protected]> |
| 1167 |
|
| 1168 |
* [0ae8e56] nslcd/nslcd.c: make checking dlsym() result a little |
| 1169 |
safer |
| 1170 |
|
| 1171 |
* [fb5d587] compat/ldap_passwd_s.c: fix copyright year |
| 1172 |
|
| 1173 |
* [16db596] common/tio.c: restructure timeout calculation in tio |
| 1174 |
to reduce the number of times gettimeofday() is called |
| 1175 |
|
| 1176 |
* [b01cd22] nslcd/log.c: use pthreads thread-local storage as |
| 1177 |
fallback mechanism if compiler doesn't provide a keyword for TLS |
| 1178 |
|
| 1179 |
* [d86497b] configure.ac, m4/ax_tls.m4, nslcd/log.c, nss/aliases.c, |
| 1180 |
nss/ethers.c, nss/group.c, nss/hosts.c, nss/netgroup.c, |
| 1181 |
nss/networks.c, nss/passwd.c, nss/protocols.c, nss/rpc.c, |
| 1182 |
nss/services.c, nss/shadow.c: use the AX_TLS macro to find |
| 1183 |
correct thread-local storage class compiler directive |
| 1184 |
|
| 1185 |
* [fa62cd3] nslcd/cfg.c, nslcd/cfg.h: dump full nslcd configuration |
| 1186 |
at debug level on start-up |
| 1187 |
|
| 1188 |
2013-01-16 Arthur de Jong <[email protected]> |
| 1189 |
|
| 1190 |
* [2765100] man/Makefile.am: fix the way manual pages are generated |
| 1191 |
and distributed |
| 1192 |
|
| 1193 |
2013-01-14 Arthur de Jong <[email protected]> |
| 1194 |
|
| 1195 |
* [2caeef4] man/nslcd.conf.5.xml, nslcd/cfg.c, pynslcd/cfg.py, |
| 1196 |
tests/test_cfg.c: support children search scope for systems that |
| 1197 |
have it |
| 1198 |
|
| 1199 |
* [4197ec3] pynslcd/cfg.py: fix parsing of scope option in pynslcd |
| 1200 |
|
| 1201 |
* [5e0bb05] tests/test_tio.c: support systems without ETIME |
| 1202 |
|
| 1203 |
* [b5b6c48] configure.ac, tests/lookup_netgroup.c: check whether |
| 1204 |
setnetgrent() returns int or void (for FreeBSD) |
| 1205 |
|
| 1206 |
2013-01-12 Arthur de Jong <[email protected]> |
| 1207 |
|
| 1208 |
* [0a5ac8b] nslcd/cfg.c, tests/test_cfg.c: reorganise configuration |
| 1209 |
file parsing code |
| 1210 |
|
| 1211 |
* [82b31fe] nslcd/myldap.c: have myldap_get_ranged_values() return |
| 1212 |
a list of values instead of a set |
| 1213 |
|
| 1214 |
* [388821a] nslcd/cfg.c, nslcd/group.c, nslcd/passwd.c, |
| 1215 |
nslcd/shadow.c: check result of set_tolist() to ensure that |
| 1216 |
memory allocation problems are logged |
| 1217 |
|
| 1218 |
* [cdae946] nslcd/myldap.c: fix memory leak in |
| 1219 |
myldap_get_values_len() when using ranged attributes (very |
| 1220 |
unlikely to occur) |
| 1221 |
|
| 1222 |
* [9b11d41] nslcd/myldap.c: fix a problem in memory handling in |
| 1223 |
myldap_get_values_len() if malloc() would fail |
| 1224 |
|
| 1225 |
* [2a73fa1] configure.ac: drop -Wcase-qual when using |
| 1226 |
--enable-warnings because it was causing too much noise |
| 1227 |
|
| 1228 |
2013-01-10 Arthur de Jong <[email protected]> |
| 1229 |
|
| 1230 |
* [4689d5f] nslcd/myldap.c: fix typo in comment |
| 1231 |
|
| 1232 |
2013-01-06 Arthur de Jong <[email protected]> |
| 1233 |
|
| 1234 |
* [eb86f87] pynslcd/pam.py: request and parse password policy |
| 1235 |
controls when doing user authentication in pynslcd |
| 1236 |
|
| 1237 |
* [28aeaa4] pam/pam.c: do not recheck the user password in first |
| 1238 |
password phase if it was stored in the authentication phase |
| 1239 |
|
| 1240 |
* [ba18be7] nslcd/pam.c: perform search for pam_authz_search on |
| 1241 |
all search bases |
| 1242 |
|
| 1243 |
2013-01-05 Arthur de Jong <[email protected]> |
| 1244 |
|
| 1245 |
* [65e184d] pynslcd/pam.py: some simplifications in the current |
| 1246 |
pynslcd PAM request handling |
| 1247 |
|
| 1248 |
* [8d054c8] nslcd/myldap.c, tests/test_cfg.c: update FIXMEs |
| 1249 |
|
| 1250 |
* [086a1a5] nslcd/ether.c: change ethernet address formatting from |
| 1251 |
FIXME to note |
| 1252 |
|
| 1253 |
* [c89c41b] pam/pam.c: save the old password if either the |
| 1254 |
authentication or the authorisation response is NEW_AUTHTOK_REQD |
| 1255 |
|
| 1256 |
* [33518d5] nslcd/myldap.c: inline most is_valid_...() functions |
| 1257 |
|
| 1258 |
* [5242233] compat/ldap_initialize.c: remove not needed define |
| 1259 |
|
| 1260 |
* [7a2b63f] common/nslcd-prot.h: log hex values when debugging |
| 1261 |
the protocol |
| 1262 |
|
| 1263 |
2013-01-01 Arthur de Jong <[email protected]> |
| 1264 |
|
| 1265 |
* [82010e2] nslcd/myldap.c, nslcd/myldap.h, nslcd/pam.c: log and |
| 1266 |
return a diagnostic message instead of just the LDAP error on |
| 1267 |
password change failure |
| 1268 |
|
| 1269 |
* [2f6f6a2] nslcd/pam.c: retry updating the lastChange attribute |
| 1270 |
with the normal nslcd LDAP connection if the update with the |
| 1271 |
user's connection failed |
| 1272 |
|
| 1273 |
* [864c522] pynslcd/pam.py: update pynslcd PAM protocol handling |
| 1274 |
to be in line with r1865 |