1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
|
2014-03-12 Arthur de Jong <arthur@arthurdejong.org>
* [1ec7739] INSTALL, missing, test-driver: Update files from
recent automake
2014-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [44764f0] tests/Makefile.am, tests/test_myldap.sh,
tests/test_nsscmds.sh: Run the correct executables for the tests
This fixes issues with running the tests when using a separate
build directory (fixes ef0eddaa).
2014-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [77444ac] tests/test_myldap.sh: Fix nslcd-test.conf permissions
for test
This ensures that configuration file is not world readable when
the tests are run. This avoids test failure for the use of the
rootpwmodpw option.
2014-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [96e4171] common/nslcd-prot.h: Interpret transferred integers
as signed again
This fixes an issue with unsigned values ending up in signed
fields and missing sign extension.
See: https://bugs.debian.org/739330
2014-01-27 Nalin Dahyabhai <nalin@redhat.com>
* [2d35feb] nss/hosts.c, nss/networks.c: Use right h_errnop for
retrying with larger buffer
The libc nsswitch code expects h_errno to be set to NETDB_INTERNAL
when it needs to try again with a larger buffer.
Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
2014-01-27 Lukas Slebodnik <lslebodn@redhat.com>
* [8532f40] nss/hosts.c, nss/networks.c: Fix crash when retrieving
large networks entries
If NSS_STATUS_TRYAGAIN is returned from read_one_hostent or
read_one_netent then fp will be closed and function tio_skipall
will be called with NULL pointer. It could happend in functions:
_nss_ldap_getnetbyname_r _nss_ldap_getnetbyaddr_r
_nss_ldap_gethostbyname2_r _nss_ldap_gethostbyaddr_r
Fixes r548 (aka afd5d9b).
2014-01-30 Davy Defaud <davy.defaud@free.fr>
* [4211961] nslcd/group.c: Support builtin Windows groups
This maps the gid (gidNumber) to an AD SID for builtin
groups when searching a group by gid (RID) between 544 and
552. In that case the SID prefix is not the domain's prefix
(S-1-5-21-dddddd-dddddd-dddddd) but the BUILTIN SID prefix
(1-5-32).
For example, if you add a user to the Administrators builtin
group (S-1-5-32-544), now you should be able to get this group
through nslcd, instead of receiving an error message.
2014-01-25 Arthur de Jong <arthur@arthurdejong.org>
* [f6a0675] configure.ac: Add test for krb5 thread safety
This adds a test that checks the return value of
krb5_is_thread_safe() to see if krb5 is thread safe (during build)
and issues a warning if it is not.
nslcd does not directly link to krb5 but the library may be
loaded (by GSSAPI) if Kerberos is used to authenticate nslcd to
the LDAP server.
2014-01-25 Francois Tigeot <ftigeot@wolfpond.org>
* [043838c] configure.ac: Also detect DragonFly as BSD
This fixes the detection of DragonFly as requiring the freebsd
NSS interface flavour.
2014-01-24 joshuashire <joshuashire@hotmail.com>
* [2181cca] nslcd/shadow.c: Update shadow.c to resolve pwdLastSet
issue
We read the date into the buffer to the specified length to get it
to the Unix time (i.e. seconds) from its AD value of nanoseconds,
then convert it to days for shadow. If we use date rather than
buffer we end up trying to convert the original nanosecond value.
2014-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [c6c317e] : Implement deref control handling
This uses the LDAP_CONTROL_X_DEREF control as described in
draft-masarati-ldap-deref-00 to request the LDAP server to
dereference group member attribute values to uid attribute values.
This should reduce the number of searches that are required for
expanding group members that use the member attribute.
This mechanism could also be used to extract information on
nested groups but the gains are less clear there.
Not all LDAP servers support this control. In OpenLDAP, load the
(currently undocumented) deref overlay and enable it for the
database to take advantage of this improvement.
There is a functional difference when using this control. Any
returned deferred uid value returned by the LDAP server is accepted
as a member. No checks are performed to see if the user matches
the search base and search filters set for passwd entries.
2014-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [309b4bb] README: Update documentation
This documents the way the deref controls are used.
2014-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [cecc024] nslcd/group.c: Use myldap_get_deref_values() to get
member uids
This uses information from the deref control (if available)
to get the username for each of the members of the group. Any
missing deref member attribute values will be seen as nested
groups and will be traversed if nested group support is enabled.
2014-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [c973834] configure.ac, nslcd/myldap.c, nslcd/myldap.h: Provide
a myldap_get_deref_values() function
This function looks for deref response controls
(LDAP_CONTROL_X_DEREF) in the entry and returns the information
from the dereferenced attribute in two lists: dereferenced values
and attribute values that could not be dereferenced.
2014-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [3992e15] nslcd/group.c: Skip member attributes in bymember search
This changes the group by member searches to not request the
member attributes. This will speed up result parsing by a fraction
because less data is transferred but will also cause the deref
control not to be added to these searches.
2013-12-28 Arthur de Jong <arthur@arthurdejong.org>
* [15ee2fc] compat/Makefile.am, compat/derefctrl.c,
compat/ldap_compat.h, configure.ac: Provide replacement
ldap_create_deref_control()
This adds a test for a bug in OpenLDAP that allocated a
LDAP_CONTROL_PAGEDRESULTS control instead of a LDAP_CONTROL_X_DEREF
control.
2014-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [547e479] configure.ac, nslcd/myldap.c: Request attribute deref
via search control
This uses the LDAP_CONTROL_X_DEREF control as descibed in
draft-masarati-ldap-deref-00 to request the LDAP server to
dereference member attribute values to uid attribute values in
order to avoid doing extra searches.
This control is currently only added for group search by looking
for the member attribute in the search.
2014-01-04 Arthur de Jong <arthur@arthurdejong.org>
* [c22eb08] nslcd/myldap.c: Rename entry property to indicate
storage type
This changes entrye->rangedattributevalues to entry->buffers
because the propery is not only used for ranged attribute values
but for anything that can be freed with free().
2014-01-03 Arthur de Jong <arthur@arthurdejong.org>
* [f009c96] nslcd/myldap.c: Ignore missing page controls
Since we could get arbitrray controls and are only interested
in page controls we ignore failures to find page controls.
2014-01-03 Arthur de Jong <arthur@arthurdejong.org>
* [4f6dfdd] nslcd/myldap.c: Use do_try_search() also for paged
searches
This also changes do_try_search() to support building continued
paged controls and lays the groundwork for adding more search
controls.
2014-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [be94912] nslcd/attmap.c, nslcd/group.c, pynslcd/group.py:
Support blanking the member attribute
This allows remapping the member attribute to an empty string
which removes support for that attribute. This can reduce the
number of search operations if the attribute is not used.
2014-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [0d3fa5d] nslcd/group.c: Fix typo
2014-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [8e74848] nslcd/group.c, nss/netgroup.c, tests/test_set.c:
Fix memory leaks related to set_pop()
Some pieces of code did not properly free() the value returned
by set_pop().
The leak in group code was related to the introduction of nested
group functionality in 41ba574 (merged in 3daa68d) so should
only be present in releases 0.9.0 forward.
The leak in the netgroup code only ended up in the Solaris
version of the NSS module and was introduced in 4ea9ad1 (merged in
5c8779d). This leak is present in all releases from 0.8.0 forward.
2014-01-04 Arthur de Jong <arthur@arthurdejong.org>
* [3288942] tests/test_myldap.c: Fix compiler warnings in the
myldap test
2014-01-02 Arthur de Jong <arthur@arthurdejong.org>
* [2b8fbc2] : Only exit nslcd when daemon is ready
This removes a race condition between the exit of the initial
nslcd process (as started by the init script) and nslcd services
being ready.
2014-01-02 Arthur de Jong <arthur@arthurdejong.org>
* [3afedc4] compat/Makefile.am, compat/daemon.c, compat/daemon.h,
configure.ac: Remove daemon() replacement function
2014-01-02 Arthur de Jong <arthur@arthurdejong.org>
* [907d49d] configure.ac, nslcd/daemonize.c: Close daemon pipe
file descriptor on fork or exec
This tries to avoid child processes ending up with a copy of
the pipe file descriptor that is used to signal readiness of
the daemon.
2014-01-02 Arthur de Jong <arthur@arthurdejong.org>
* [42a1a3d] nslcd/Makefile.am, nslcd/daemonize.c, nslcd/daemonize.h,
nslcd/nslcd.c: Properly daemonise nslcd and only exit when ready
This introduces a new daemonize module that provides functions for
closing all file descriptors, redirecting stdin/stdout/stderr to
/dev/null and a function for backgrounding an application while
only exiting the original process after the daemon process has
indicated readiness.
This is used to exit the original process only after the listening
socket has been set up and the worker threads have been started.
2013-12-28 Arthur de Jong <arthur@arthurdejong.org>
* [e3f0453] configure.ac: Re-organise ldap function tests
2013-12-21 Arthur de Jong <arthur@arthurdejong.org>
* [3ce5ef9] : Make dn2uid cache tuneable
This introduces a new cache configuration option that allows
setting positive and negative cache lifetimes for the dn2uid cache.
2013-12-21 Arthur de Jong <arthur@arthurdejong.org>
* [19f3cc3] tests/test_cfg.c: Add a test for new configuration option
2013-12-21 Arthur de Jong <arthur@arthurdejong.org>
* [09969cf] man/nslcd.conf.5.xml: Document cache option in
manual page
2013-12-21 Arthur de Jong <arthur@arthurdejong.org>
* [a0c90d2] nslcd/passwd.c: Use dn2uid cache options
The configuration values are used in the cache to determine
positive and negative hit TTLs. This also allows completely
disabling the cache.
2013-12-21 Arthur de Jong <arthur@arthurdejong.org>
* [99ad1b4] nslcd/cfg.c, nslcd/cfg.h: Implement a cache configuration
option
This adds the cache nslcd.conf configuration option to configure
the dn2uid cache in nslcd with a positive and negative cache
lifetime.
2013-12-19 Arthur de Jong <arthur@arthurdejong.org>
* [82bac61] nslcd/passwd.c: Have positive and negative cache timeouts
The positive value determines the time a found entry is valid,
the negative timeout determines the lifetime of not found entries.
2013-12-19 Arthur de Jong <arthur@arthurdejong.org>
* [b9ec6df] nslcd/cfg.c: Support printing children search scope
This fixes 2caeef4.
2013-12-18 Arthur de Jong <arthur@arthurdejong.org>
* [9f02853] nslcd/alias.c, nslcd/common.c, nslcd/common.h,
nslcd/ether.c, nslcd/group.c, nslcd/host.c, nslcd/myldap.c,
nslcd/netgroup.c, nslcd/network.c, nslcd/pam.c, nslcd/passwd.c,
nslcd/protocol.c, nslcd/rpc.c, nslcd/service.c, nslcd/shadow.c,
nslcd/usermod.c: Centralise buffer sizes
Common buffer sizes are now stored centrally so it can be easily
and consistently updated if required. Some buffers remain with
locally defined sizes that do not match a global buffer size.
2013-11-25 Arthur de Jong <arthur@arthurdejong.org>
* [23a41ce] compat/pam_get_authtok.c, compat/pam_prompt.c,
configure.ac, pam/pam.c: Add a test for pam_get_item() argument
type
This checks whether pam_get_item() takes a const void ** or void
** item value argument and defines a PAM_ITEM_CONST macro that
is const when it should. This avoids some compiler warnings.
2013-10-30 Arthur de Jong <arthur@arthurdejong.org>
* [81bfb8b] ChangeLog, NEWS, configure.ac, man/chsh.ldap.1.xml,
man/getent.ldap.1.xml, man/nslcd.8.xml, man/nslcd.conf.5.xml,
man/pam_ldap.8.xml, man/pynslcd.8.xml: Get files ready for
0.9.2 release
2013-10-29 Arthur de Jong <arthur@arthurdejong.org>
* [ef0edda] tests/test_myldap.sh, tests/test_nsscmds.sh,
tests/test_pamcmds.expect: Portability fixes to environment tests
This mostly tries to reduce the influences of the test environment
(local users and groups) on the tests. This uses another username
(vsefcovic) in the PAM tests instead of the user arthur to avoid
clashes with existing users.
The PAM tests are skipped if passwd claims that it cannot modify
LDAP passwords (for FreeBSD).
2013-10-29 Arthur de Jong <arthur@arthurdejong.org>
* [f8af48f] compat/ldap_parse_passwordpolicy_control.c,
nslcd/common.c, nslcd/config.c, nslcd/group.c, nslcd/nslcd.c,
nslcd/pam.c, nslcd/protocol.c, nslcd/rpc.c, nslcd/service.c,
nss/bsdnss.c, nss/ethers.c, nss/group.c, nss/netgroup.c,
nss/networks.c, nss/passwd.c, nss/protocols.c, nss/rpc.c,
nss/services.c, pam/pam.c: Fix a number of compiler warnings
This includes a number of small fixes for issues that were
formerly masked by the incorrect AC_LANG_PROGRAM check.
2013-10-29 Arthur de Jong <arthur@arthurdejong.org>
* [88801f9] configure.ac: Add -Werror=implicit if compiler
supports it
2013-10-29 Arthur de Jong <arthur@arthurdejong.org>
* [933bf8e] configure.ac: Fix usage of AC_LANG_PROGRAM
Apparently the macro got changed a long time ago to provide a
main() definition. This bug caused the extra warning flags to
not be added.
2013-10-29 Arthur de Jong <arthur@arthurdejong.org>
* [6028226] compat/Makefile.am, compat/shell.h, configure.ac,
nslcd/usermod.c: Compatibility definitions for
{set,get,end}usershell()
This provides compatibility definitions for systems that don't
have these functions (some Solaris flavours).
2013-10-28 Arthur de Jong <arthur@arthurdejong.org>
* [ed4cf47] nslcd/nslcd.c: Start invalidator after locking pidfile
This causes the pidfile to be written as the first thing after
daemonising nslcd to minimise the race between service script
completion and pidfile being locked.
2013-10-27 Arthur de Jong <arthur@arthurdejong.org>
* [503644b] HACKING, README: Update documentation
2013-10-27 Arthur de Jong <arthur@arthurdejong.org>
* [6be316e] autogen.sh, configure.ac: Specify m4 directory in
configure script
2013-10-25 Arthur de Jong <arthur@arthurdejong.org>
* [1d8db24] nslcd/myldap.c, pynslcd/search.py: Also run invalidators
on initial connect
This also invalidates the caches configured with
reconnect_invalidate on the first successful search. This should
handle the case more gracefully where caches were filled with
negative hits before nslcd was running.
2013-10-25 Arthur de Jong <arthur@arthurdejong.org>
* [ee8737f] tests/Makefile.am: Distribute setup_slapd.sh and
associated files
2013-10-22 Arthur de Jong <arthur@arthurdejong.org>
* [e28e937] tests/test_myldap.sh, tests/testenv.sh: Improve
portability of ldap test
This supports old ldapsearch commands that don't support the -x
and -H options and ldapsearch commands that don't exit with a
failure code if nothing is found.
This also switches the test_myldap test to use the testenv check
for the LDAP server.
2013-10-20 Arthur de Jong <arthur@arthurdejong.org>
* [8cc354a] tests/test_pamcmds.expect: Handle other responses
in test_pamcmds
This extends test_pamcmds to handle other pam/su/passwd errors
and responses (as seen on CentOS 5). Also switch to stronger
password when changing the test user's password to avoid problems
with password strength checks.
2013-10-20 Arthur de Jong <arthur@arthurdejong.org>
* [0a95557] tests/Makefile.am, tests/in_testenv.sh,
tests/test_nsscmds.sh, tests/test_pamcmds.expect,
tests/test_pamcmds.sh, tests/testenv.sh: Make script to check
test environment
This changes the in_testenv.sh script into testenv.sh which has
more checks and a few functions to configure the test environment.
2013-10-20 Arthur de Jong <arthur@arthurdejong.org>
* [1899e9a] tests/test.ldif: Remove unnecessary attributes from
test.ldif
2013-10-20 Arthur de Jong <arthur@arthurdejong.org>
* [cebc2a1] tests/README: Update tests README
This refreshes the documentation of the tests, especially the
test environment.
2013-10-20 Arthur de Jong <arthur@arthurdejong.org>
* [7cbb439] tests/config.ldif, tests/setup_slapd.sh: Provide a
script for setting up slapd
The setup_slapd.sh script can be used to set up and start a
slapd instance in a single (temporary) directory. The slapd
instance is configured and loaded with test data for use in the
test environment.
2013-10-19 Arthur de Jong <arthur@arthurdejong.org>
* [aeccbfe] tests/test_nsscmds.sh: Fix sortgroup function
This fixes an issue with the sortgroup function which failed to
handle a group line with only two colons correctly. Such group
entries have been seen in the wild on FreeBSD.
Also, comment lines in group files are now ignored (also seen
on FreeBSD).
2013-10-14 Arthur de Jong <arthur@arthurdejong.org>
* [0697347] common/dict.c: Use djb2 hash in dict module
This slightly modifies the string hashing function to use the
djb2 hash. This hash is supposed to be reasonably fast and have
reasonably few collisions.
2013-10-07 Arthur de Jong <arthur@arthurdejong.org>
* [61e96bf] nslcd/cfg.h: Increase NSS_LDAP_CONFIG_MAX_BASES to 31
This allows more search bases which may be useful in some
environments.
2013-09-15 Arthur de Jong <arthur@arthurdejong.org>
* [2f088ec] common/tio.c: Also support poll() returning EAGAIN
2013-09-13 Arthur de Jong <arthur@arthurdejong.org>
* [173d768] configure.ac: Add more python module checks to configure
2013-09-13 Arthur de Jong <arthur@arthurdejong.org>
* [b7ca95a] configure.ac: Make missing Python modules a waring
This avoids having to have all modules installed in the build
environment. A Python version is still required during build.
2013-09-13 Arthur de Jong <arthur@arthurdejong.org>
* [f36bb81] pynslcd/cache.py, pynslcd/group.py: Remove unneeded
imports
2013-09-13 Arthur de Jong <arthur@arthurdejong.org>
* [8ae8b9a] Makefile.am, configure.ac, tests/Makefile.am: Cleanups
and fixes related to automake upgrade
This removes a few legacy workarounds and fixes for older versions
of automake. This also removes adding specific DEBUG flags for
tests since subdir objects are handled differently now.
2013-09-13 Arthur de Jong <arthur@arthurdejong.org>
* [2bd2bc4] pam/pam.c: Initialise msg to avoid potential NULL
pointer dereference
The NULL pointer dereference in the PAM module should not occur due
to the relationship with the rc value that is handled alongside
it. This change mostly silences the compiler and protects from
future changes.
2013-09-13 Arthur de Jong <arthur@arthurdejong.org>
* [dccc9cf] configure.ac: Add configure test for
{set,get,end}usershell() availability
2013-09-08 Arthur de Jong <arthur@arthurdejong.org>
* [4fc4197] autogen.sh: Upgrade to automake 1.14
2013-09-08 Arthur de Jong <arthur@arthurdejong.org>
* [bc6a18e] nslcd/nslcd.c: Use larger nslcd send buffers
By using bigger write buffers in nslcd we reduce the number of
writes in nslcd and consequently the number of reads in the NSS
and PAM modules for bigger responses.
This reduces the number of system calls that are made during
a request and brings a small performance improvement that is
mainly measurable in the NSS module. A measurement showed 30-80%
reduction in the number of system calls in the NSS module and
around 10% reduction in CPU usage (CPU time, only small reduction
in wallclock time).
Thanks John Sullivan for pointing this out.
2013-09-08 Arthur de Jong <arthur@arthurdejong.org>
* [58d50bf] configure.ac, man/Makefile.am: Add configure check to
see whether to install manual pages
This also reworks the manual page generation check in the configure
script and avoids build errors if no tool for generating manual
pages is present when working on a Git checkout.
2013-09-04 Arthur de Jong <arthur@arthurdejong.org>
* [ce95b41] ldapns.ldif: Reformat LDIF file to follow OpenLDAP format
This fixes a wrapping problem. Thanks to Paul Boven for pointing
this out.
2013-09-02 Arthur de Jong <arthur@arthurdejong.org>
* [8b169f1] tests/test_common.c: Fix permissions of test
configuration
This sets the permissions on the nslcd-test.conf file while
running the tests to ensure that the permission checks for the
bindpwn and rootpwmodpw options do not fail the test.
2013-09-02 Arthur de Jong <arthur@arthurdejong.org>
* [560e5de] .gitignore, tests/Makefile.am, tests/test_tio_timeout.c:
Add a test for tio timeout calculations
This test checks whether the proposed remaining time to sleep
is reasonable.
2013-09-02 Arthur de Jong <arthur@arthurdejong.org>
* [db5382e] .gitignore, tests/Makefile.am, tests/test_clock.c:
Add a test for clock_gettime() supported clocks
This probes the system for available clocks to see if they can
be reliably used to get a monotonic-like timer (the test doesn't
verify the monotonic part, just usability).
2013-09-01 Arthur de Jong <arthur@arthurdejong.org>
* [7895739] AUTHORS, common/tio.c, configure.ac: Use clock_gettime()
instead of gettimeofday()
This avoids problems with system clock changes (though there
are some safeguards in place to avoid waiting too long on clock
changes).
Thanks to John Sullivan for pointing this out.
We can't easily use CLOCK_MONOTONIC_RAW or CLOCK_MONOTONIC_COARSE
even on platforms that define the clock because we can get
runtime errors. CLOCK_MONOTONIC seems to work on all tested
platforms that provide it.
2013-09-02 Arthur de Jong <arthur@west.nl>
* [a683aa8] tests/test_manpages.sh: Small protability fix
2013-09-01 Arthur de Jong <arthur@arthurdejong.org>
* [c8800eb] tests/test_manpages.sh: Improve robustness of
test_manpages
2013-08-31 Arthur de Jong <arthur@arthurdejong.org>
* [644df52] common/tio.c, common/tio.h: Use normal timeout handling
in tio_skipall()
Use the same mechanism in tio_skipall() as in tio_read(), except
use a different timeout value.
2013-08-31 Arthur de Jong <arthur@arthurdejong.org>
* [0787d45] common/tio.c: Refactor tio_wait()
This changes the function to accept a file descriptor, an event
and timeout parameter directly instead of a confusing flag.
2013-08-31 Arthur de Jong <arthur@arthurdejong.org>
* [07a8170] common/tio.c: Fix buffer overflow on interupted read
The tio_read() function will read past its buffer and return
garbadge to the calling function if the call to read() was
interrupted by a signal.
The likelyhood of read() being interupted is low because previously
a call to poll() has determined that data is available to be read.
Thanks to John Sullivan for pointing this out.
See: https://bugzilla.redhat.com/show_bug.cgi?id=1003011
2013-08-30 Arthur de Jong <arthur@arthurdejong.org>
* [4897033] nslcd/common.h: In nslcd, log EPIPE only on debug level
See: https://bugzilla.redhat.com/show_bug.cgi?id=1003011
2013-08-30 Arthur de Jong <arthur@arthurdejong.org>
* [c9e2f97] common/tio.c, common/tio.h, nss/common.h: Use a timeout
when skipping remaining result data
When the NSS modules closes the connection and skips any remaining
result data, wait for up to 500 msec to read any available data.
See: https://bugzilla.redhat.com/show_bug.cgi?id=1003011
2013-08-27 Bersl <bersl2@bersl2.info>
* [7140d21] AUTHORS, nslcd/group.c, nslcd/passwd.c, nslcd/shadow.c:
Increase password buffer size
With the smaller buffers some password hashes would be truncated.
2013-08-28 Arthur de Jong <arthur@arthurdejong.org>
* [8571bc1] NEWS, README, common/dict.c, compat/attrs.h,
compat/nss_compat.h, man/nslcd.conf.5.xml, nslcd/myldap.c:
Fix for common spelling mistake
2013-08-25 Arthur de Jong <arthur@arthurdejong.org>
* [890d227] AUTHORS, ChangeLog, NEWS, configure.ac,
man/chsh.ldap.1.xml, man/getent.ldap.1.xml, man/nslcd.8.xml,
man/nslcd.conf.5.xml, man/pam_ldap.8.xml, man/pynslcd.8.xml:
Get files ready for 0.9.1 release
2013-08-25 Arthur de Jong <arthur@arthurdejong.org>
* [f9b4b43] Makefile.am: Have a nicer way of generating the ChangeLog
This adds the commit id, improves the line wrapping and also
gets rid of the external dependency.
2013-08-25 Arthur de Jong <arthur@arthurdejong.org>
* [321d8a3] pynslcd/pynslcd.py: Handle failure of getpeercred
more gracefully
2013-08-25 Arthur de Jong <arthur@arthurdejong.org>
* [f18729e] tests/Makefile.am: Only run pynslcd tests if it
is enabled
2013-08-25 Arthur de Jong <arthur@arthurdejong.org>
* [f54f2ad] configure.ac, m4/ax_python_module.m4: Add configure
test for Python modules
This uses the AX_PYTHON_MODULE test to check for availability
of used Python modules. All third-party modules and modules that
are not a builtin for Python 2.5 are tested.
This also splits the tests for the utils and pynslcd.
2013-08-25 Arthur de Jong <arthur@arthurdejong.org>
* [6f61482] pynslcd/attmap.py, pynslcd/group.py, pynslcd/pynslcd.py,
pynslcd/tio.py, utils/getent.py, utils/nslcd.py: Rearrange
Python imports
2013-08-23 Arthur de Jong <arthur@arthurdejong.org>
* [f6c20ee] nslcd/nslcd.c: Ignore SIGUSR2 for future compatibility
2013-08-23 Arthur de Jong <arthur@arthurdejong.org>
* [27abbbb] man/Makefile.am, tests/Makefile.am,
tests/test_manpages.sh: Add a test for the manual pages
This replaces e0491d2 to run xmlto from the man directory. This
handles the case more gracefully if xmlto is not available.
2013-08-18 Arthur de Jong <arthur@arthurdejong.org>
* [494833d] config.guess, config.sub: Update files from latest
automake
2013-08-21 Arthur de Jong <arthur@arthurdejong.org>
* [7b474d0] pynslcd/group.py, pynslcd/passwd.py, pynslcd/shadow.py:
Have pynslcd handle mapped userPassword
This fixes an error that could occur when the userPassword was
retrieved from LDAP and insufficient privileges were available
for reading the attribute.
2013-08-21 Arthur de Jong <arthur@arthurdejong.org>
* [b0358f7] : Retry LDAP servers quickly after receiving SIGUSR1
When nslcd receives the SIGUSR1 signal it will retry connecting
to unavailable LDAP servers sooner.
This signal can for example be sent when (re)stablishing a
network connection.
2013-08-20 Arthur de Jong <arthur@arthurdejong.org>
* [ebbe8a6] man/nslcd.8.xml, nslcd/nslcd.c: Handle SIGUSR1 by
resetting the retry timer
This implements and documents handling of the SIGUSR1 signal in
nslcd to reset the reconnect_sleeptime and reconnect_retrytime
timers to re-check availability of the LDAP server.
2013-08-20 Arthur de Jong <arthur@arthurdejong.org>
* [8bdb289] nslcd/myldap.c, nslcd/myldap.h: Implement function
for resetting reconnect times
This implemens a myldap_immediate_reconnect() function that
resets the reconnect timer to retry failing connections to the
LDAP server upon the next search.
This can be used to cut the reconnect_sleeptime and
reconnect_retrytime sleeping periodss short if we have some
indication that the LDAP server is available again.
2013-08-20 Arthur de Jong <arthur@arthurdejong.org>
* [d58f163] nslcd/common.h, nslcd/nslcd.c, nslcd/shadow.c: Return
partial shadow information to non-root users
This also returns everything except the password hash from
the shadow database to non-root users (nothing was returned
before). This allows non-root users to do PAM authentication in
some configurations.
On some systems there is a setgid executable that is allowed to
read /etc/shadow for authentication by e.g. screensavers. Returning
no shadow information will cause pam_unix to deny authorisation
in common configurations.
See: http://bugs.debian.org/706913
2013-08-20 Arthur de Jong <arthur@arthurdejong.org>
* [34365b4] nslcd/cfg.c: Add cast to int when logging configuration
summary
2013-08-18 Arthur de Jong <arthur@arthurdejong.org>
* [44a38eb] pam/pam.c: Small fix in NEW_AUTHTOK_REQD handling
There is a potential memory leak if the old password is saved
multiple times. Furthermore, PAM_NEW_AUTHTOK_REQD is only allowed
as a result of the authorisation phase, not the authentication
phase so there is no use in checking.
2013-08-18 Arthur de Jong <arthur@arthurdejong.org>
* [d8637bb] pynslcd/pam.py: Fix rootpwmodpw handling in pynslcd
2013-08-18 Arthur de Jong <arthur@arthurdejong.org>
* [13d31b7] pynslcd/common.py: Fix not logging passwords in pynslcd
(7108b1f)
2013-08-18 Arthur de Jong <arthur@arthurdejong.org>
* [7e90541] tests/nslcd-test.conf, tests/test.ldif: Update files
from test environment
2013-07-29 Arthur de Jong <arthur@arthurdejong.org>
* [724a75f] utils/getent.py: Improve error and help output of
getent command
2013-08-18 Arthur de Jong <arthur@arthurdejong.org>
* [882f7be] tests/Makefile.am, tests/pylint.rc, tests/test_pylint.sh:
Run pylint as a test
This runs a somewhat limited pylint run against the source
files. It should at least catch some issues.
2013-08-18 Arthur de Jong <arthur@arthurdejong.org>
* [79209ee] pynslcd/common.py, pynslcd/group.py, pynslcd/pam.py,
pynslcd/passwd.py: Rename isvalidname() to is_valid_name()
in pynslcd
2013-08-10 Arthur de Jong <arthur@arthurdejong.org>
* [e0491d2] man/Makefile.am: Run xmlto on manual pages as part of
the tests
2013-08-18 Arthur de Jong <arthur@arthurdejong.org>
* [7108b1f] pynslcd/common.py: Do not log passwords in pynslcd
2013-08-18 Arthur de Jong <arthur@arthurdejong.org>
* [cda6dcd] : Implement an option to run in the foreground
This introduces a -n, --nofork option that skips the deamonising
step on start-up. This may be required for running nslcd from
upstart.
See: https://bugs.launchpad.net/bugs/806761
2013-08-18 Arthur de Jong <arthur@arthurdejong.org>
* [1825be6] man/nslcd.8.xml, man/pynslcd.8.xml: Document -n,
--nofork option
2013-08-18 Arthur de Jong <arthur@arthurdejong.org>
* [82bcfd7] pynslcd/pynslcd.py: -n switch for pynslcd
2013-08-17 Caleb Callaway <enlightened.despot@gmail.com>
* [14b93b9] nslcd/nslcd.c: -n switch for nslcd (prevents process
from forking)
2013-08-17 Arthur de Jong <arthur@arthurdejong.org>
* [8a3f0f5] : Improvements to pynslcd caching functionality
This fixes most of the existing caching functionality. Cache
expiry, negative hits and entries going away remain to be
implemented.
2013-08-16 Arthur de Jong <arthur@arthurdejong.org>
* [a066bcb] configure.ac, tests/Makefile.am,
tests/test_pynslcd_cache.py: Implement tests for caching
functionality
2013-08-12 Arthur de Jong <arthur@arthurdejong.org>
* [d66162a] pynslcd/alias.py, pynslcd/cache.py, pynslcd/group.py,
pynslcd/host.py, pynslcd/netgroup.py, pynslcd/network.py,
pynslcd/protocol.py, pynslcd/rpc.py, pynslcd/service.py: Use
retrieve_by, group_by and group_columns in the cache
This removes custom retrieve() functions and Query classes from
the database modules and uses retrieve_sql retrieve_by, group_by
and group_columns to make a custom retrieval query.
In the cache module this completely replaces how the query grouping
is done. The Query class is now only used inside the cache and the
CnAliasedQuery, RowGrouper and related classed have been removed.
2013-04-23 Arthur de Jong <arthur@arthurdejong.org>
* [bfe22cc] pynslcd/cache.py: Make Cache a context manager
2013-08-12 Arthur de Jong <arthur@arthurdejong.org>
* [1b89df5] pynslcd/alias.py, pynslcd/cache.py, pynslcd/group.py,
pynslcd/host.py, pynslcd/netgroup.py, pynslcd/network.py,
pynslcd/protocol.py, pynslcd/rpc.py, pynslcd/service.py: Give
cache tables friendlier names
This also defined the tables for netgroup storage.
2013-08-11 Arthur de Jong <arthur@arthurdejong.org>
* [7671276] pynslcd/alias.py, pynslcd/cache.py, pynslcd/group.py,
pynslcd/host.py, pynslcd/network.py, pynslcd/protocol.py,
pynslcd/rpc.py, pynslcd/service.py: Explicitly define tables
used for cache
This introduces the tables property in the Cache object that is
used to define the used tables.
This also fixes the storing of mulit-valued attributes in
the cache.
2013-04-16 Arthur de Jong <arthur@arthurdejong.org>
* [b0b5723] pynslcd/alias.py, pynslcd/cache.py, pynslcd/ether.py,
pynslcd/group.py, pynslcd/host.py, pynslcd/netgroup.py,
pynslcd/network.py, pynslcd/passwd.py, pynslcd/protocol.py,
pynslcd/rpc.py, pynslcd/service.py, pynslcd/shadow.py: Move
cache table creation to modules
This also moves the creation of a SQLite database connection to
a _get_connection() function to ensure the cache is only created
when the caches are instantiated.
2013-07-30 Arthur de Jong <arthur@arthurdejong.org>
* [84d22e6] pynslcd/passwd.py: Fix missing part of d659e83
2013-07-29 Arthur de Jong <arthur@arthurdejong.org>
* [ec53918] pynslcd/group.py, pynslcd/passwd.py: Use cleaner import
and get rid of uid2dn function in pynslcd
2013-07-29 Arthur de Jong <arthur@arthurdejong.org>
* [d659e83] pynslcd/cfg.py, pynslcd/passwd.py: Handle the nss_min_uid
option in pynslcd
2013-07-29 Arthur de Jong <arthur@arthurdejong.org>
* [7092d40] pynslcd/cfg.py, pynslcd/group.py: Handle the
nss_initgroups_ignoreusers option in pynslcd
2013-07-27 Arthur de Jong <arthur@arthurdejong.org>
* [a0e12e6] pynslcd/cfg.py, pynslcd/pam.py: Fix handling of
pam_password_prohibit_message in pynslcd
2013-07-29 Arthur de Jong <arthur@arthurdejong.org>
* [fa97bcc] pynslcd/Makefile.am, pynslcd/config.py,
pynslcd/pynslcd.py: Implement config request handling in pynslcd
This allows the PAM module to request the
pam_password_prohibit_message option for denying password change.
2013-07-27 Arthur de Jong <arthur@arthurdejong.org>
* [a3acbec] pynslcd/pam.py: Implement PAM session handling in pynslcd
Just like in nslcd this doesn't actually do anything with the
session ids except generating them.
2013-07-26 Arthur de Jong <arthur@arthurdejong.org>
* [4031750] pynslcd/search.py: Properly handle start_tls in pynslcd
2013-07-27 Arthur de Jong <arthur@arthurdejong.org>
* [5d3f681] configure.ac: Have configure show --disable-utils
by default
Since the utils are automatically built if Python is available
--disable is more appropriate a default then --enable.
2013-07-27 Arthur de Jong <arthur@arthurdejong.org>
* [5adc2ca] tests/test_pycompile.sh: Have test_pycompile not write
any pyc files
We need to avoid writing pyc files because during make distcheck,
the source directory is read-only.
This also ensures that the test is skipped if the Python
interpreter is not found.
2013-07-27 Arthur de Jong <arthur@arthurdejong.org>
* [e17730f] README: Dcoumentation updates
This fixes a typo, clarifies the section on the LDAP schema
values that are supported and updates the differences between
nss-pam-ldapd and nss_ldap and pam_ldap.
2013-07-26 Arthur de Jong <arthur@arthurdejong.org>
* [30ffdb2] tests/Makefile.am, tests/test_pycompile.sh: Test Python
syntax on make check
2013-07-26 Arthur de Jong <arthur@arthurdejong.org>
* [10eec70] : Merge fixes for reconnect_invalidate option
The branch accidentally got merged before it was fully tested.
2013-07-26 Arthur de Jong <arthur@arthurdejong.org>
* [dce98a5] nslcd/cfg.c, nslcd/invalidator.c, pynslcd/invalidator.py,
pynslcd/pynslcd.py: Fix errors in invalidator changes
This fixes a few typos and an omission in the configuration file
parsing code.
2013-07-26 Arthur de Jong <arthur@arthurdejong.org>
* [7c85202] : Make cache invalidation more generic
This changes the nscd_invalidate option into a more generic
reconnect_invalidate and also allows clearing the nfsidmap cache.
2013-07-26 Arthur de Jong <arthur@arthurdejong.org>
* [e1b0399] man/nslcd.conf.5.xml, nslcd/Makefile.am, nslcd/cfg.c,
nslcd/cfg.h, nslcd/common.h, nslcd/invalidator.c, nslcd/myldap.c,
nslcd/nscd.c, nslcd/nslcd.c, pynslcd/Makefile.am, pynslcd/cfg.py,
pynslcd/invalidator.py, pynslcd/nscd.py, pynslcd/pynslcd.py,
pynslcd/search.py, tests/Makefile.am: Rename nscd_invalidate
option to reconnect_invalidate
This also renames the internal nscd module to invalidator for
both nslcd and pynslcd. The new invalidator module is now no
longer nscd-specific.
2013-07-26 Arthur de Jong <arthur@arthurdejong.org>
* [6054499] man/nslcd.conf.5.xml, nslcd/attmap.c, nslcd/cfg.c,
nslcd/cfg.h, nslcd/nscd.c, pynslcd/cfg.py, pynslcd/nscd.py:
Allow invalidating the nfsidmap cache
This introduces an nfsidmap value for nscd_invalidate which will
cause the nfsidmap -c command to be run.
2013-07-17 Arthur de Jong <arthur@arthurdejong.org>
* [d2e2e40] pynslcd/nscd.py: Fix nscd cache flushing bug in pynslcd
The pynslcd implementation would always clear the passwd nscd
cache regardless of the provided map.
2013-07-11 Arthur de Jong <arthur@arthurdejong.org>
* [5b78508] .gitignore, INSTALL, ar-lib, autogen.sh, compile,
config.guess, config.sub, configure.ac, depcomp, install-sh,
missing, mkinstalldirs, py-compile, test-driver: Upgrade to
automake 1.13
2013-05-20 Arthur de Jong <arthur@arthurdejong.org>
* [ee7b2e9] tests/lookup_shadow.c: Add an explicit cast to int
in lookup_shadow
2013-04-14 Arthur de Jong <arthur@arthurdejong.org>
* [b6f5047] nslcd/nscd.c: Make tests for system call failures a
little more robustly
2013-05-10 Arthur de Jong <arthur@arthurdejong.org>
* [97d35f3] pynslcd/pynslcd.py: Ignore errors in opening NSS module
2013-04-12 Arthur de Jong <arthur@arthurdejong.org>
* [b15dc66] pynslcd/cache.py, pynslcd/cfg.py, pynslcd/group.py,
pynslcd/nscd.py, pynslcd/pynslcd.py, pynslcd/search.py,
pynslcd/shadow.py, pynslcd/tio.py, pynslcd/usermod.py,
utils/chsh.py, utils/getent.py, utils/nslcd.py, utils/users.py:
Python style changes
This tries to conform more closely to PEP8. Imports have been
checked and, if used only once, moved closer to the use to avoid
potential import loops. This also includes a few other minor
changes, like using __main__ for utility scripts and variable
renames to avoid name clashes.
2013-04-12 Arthur de Jong <arthur@arthurdejong.org>
* [d3c6a66] pynslcd/pam.py: Raise an error with a missing old
password on password modification
2013-04-12 Arthur de Jong <arthur@arthurdejong.org>
* [f45b24d] utils/nslcd.py: Set FD_CLOEXEC on the client socket
in utilities
2013-04-12 Arthur de Jong <arthur@arthurdejong.org>
* [bc35197] pynslcd/pam.py: Fix getting caller's uid on password
change (pynslcd)
2013-04-06 Arthur de Jong <arthur@arthurdejong.org>
* [84402e5] utils/Makefile.am: Install utilities in share/nslcd-utils
2013-04-06 Arthur de Jong <arthur@arthurdejong.org>
* [b5b4239] man/Makefile.am: Fix the way manual pages are installed
The :u flag apparently isn't portable across versions of make
and automake rules complain if a manual page is added twice to
a target.
2013-04-05 Arthur de Jong <arthur@arthurdejong.org>
* [187c626] ChangeLog, NEWS, TODO, configure.ac,
man/getent.ldap.1.xml, man/nslcd.8.xml, man/nslcd.conf.5.xml,
man/pam_ldap.8.xml, man/pynslcd.8.xml: Get files ready for
0.9.0 release
2013-04-05 Arthur de Jong <arthur@arthurdejong.org>
* [2616f43] pynslcd/Makefile.am: Include the usermod.py file in
the distribution
2013-04-05 Arthur de Jong <arthur@arthurdejong.org>
* [c519729] man/chsh.ldap.1.xml: Fix docbook validation
2013-04-03 Arthur de Jong <arthur@arthurdejong.org>
* [1c31305] configure.ac: Ignore missing Python in initial test
2013-04-03 Arthur de Jong <arthur@arthurdejong.org>
* [4b01125] nslcd/nslcd.c: Fix comment
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [d7990de] pynslcd/pam.py: Update the shadowLastChange on password
change in pynslcd
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [ea6bff3] pynslcd/pam.py: Implement password modification
in pynslcd
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [62a409c] : Implement used modification functionality
This adds user information modification functionality to nslcd
and pynslcd and implements a chsh.ldap utility that can be
used to change the login shell of a user (similar to the normal
chsh command).
The user modification functionality should allow for generic
modifications of user information. More utility commands to
perform modifications remain to be implemented.
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [012b185] .gitignore, man/Makefile.am, man/chsh.ldap.1.xml,
utils/Makefile.am, utils/chsh.py, utils/cmdline.py, utils/nslcd.py,
utils/shells.py, utils/users.py: Initial version of a chsh.ldap
utility
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [d0482fb] pynslcd/pynslcd.py, pynslcd/usermod.py: Handle user
modification requests in pynslcd
Similar to the nslcd implementation, this currently only covers
modifying the homeDirectory and loginShell attributes.
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [f1895f9] nslcd/Makefile.am, nslcd/common.h, nslcd/nslcd.c,
nslcd/usermod.c: Handle user modification requests in nslcd
This is currently limited to supporting modification of the
homeDirectory and loginShell attributes.
Modifications as root currently use the rootpwmoddn and rootpwmodpw
options.
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [8fb5eb1] nslcd.h: Define a NSLCD_ACTION_USERMOD request
The modification can either be requested by root or by the
user itself.
Modifications by the user should be done by connecting to the
LDAP server with the user-supplied credentials. It is expected
that access controls in the LDAP server prevent unwanted
modifications. The nslcd process is expected to check whether
supplied values are sensible.
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [aae36cf] pynslcd/pam.py: Rename authentication function and
return connection
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [355c2af] configure.ac: Fix test for absence of Python
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [f478830] pynslcd/cfg.py: Mark unsupported pynslcd configuration
options
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [2b097f7] configure.ac: Preset default configure values
consistently
2013-03-30 Arthur de Jong <arthur@arthurdejong.org>
* [6ceb1df] configure.ac: Give an error when the Python interpreter
is missing
2013-03-29 Arthur de Jong <arthur@arthurdejong.org>
* [a47b20f] configure.ac: Build command-line utilities by default
if Python is available
2013-03-29 Arthur de Jong <arthur@arthurdejong.org>
* [adde1d4] : Implement clearing of nscd cache in pynslcd
2013-03-29 Arthur de Jong <arthur@arthurdejong.org>
* [a75cfb9] pynslcd/nscd.py, pynslcd/search.py: Detect and handle
connection failure and recovery
Logs a connection recovery message and run a nscd cache
invalidation if configured.
2013-03-29 Arthur de Jong <arthur@arthurdejong.org>
* [585d388] pynslcd/pynslcd.py: Start the nscd invalidator process
if needed
2013-03-09 Arthur de Jong <arthur@arthurdejong.org>
* [d4c5c96] pynslcd/cfg.py: Parse the nscd_invalidate option
2013-03-29 Arthur de Jong <arthur@arthurdejong.org>
* [11b1739] pynslcd/Makefile.am, pynslcd/nscd.py: Functionality
for clearing the nscd cache in pynslcd
2013-03-29 Arthur de Jong <arthur@arthurdejong.org>
* [65a65ad] pynslcd/pynslcd.py: Switch to using os.environ instead
of os.putenv()
The os.putenv() call doesn't update os.environ and Python
documentation recommends using os.environ.
2013-03-29 Arthur de Jong <arthur@arthurdejong.org>
* [46cf240] pynslcd/pam.py: Rename validate_request to validate
2013-03-29 Arthur de Jong <arthur@arthurdejong.org>
* [7d1e492] pynslcd/pam.py: Also perform authentication search
using LDAPSearch class
2013-03-28 Arthur de Jong <arthur@arthurdejong.org>
* [302c2fa] tests/test_nsscmds.sh: Make the NSS tests dependant
on the configuration of nsswitch.conf
2013-03-28 Arthur de Jong <arthur@arthurdejong.org>
* [8790b40] tests/test_myldap.c: Do not rely on printf() being
able to print NULL strings
2013-03-24 Arthur de Jong <arthur@arthurdejong.org>
* [932c641] man/nslcd.conf.5.xml: Fix manual page generation
2013-03-24 Arthur de Jong <arthur@arthurdejong.org>
* [07ca836] nslcd/cfg.h: Fix comment for nss_nested_groups config
option
2013-03-24 Arthur de Jong <arthur@arthurdejong.org>
* [3daa68d] : Implement support for nested groups
2013-03-24 Arthur de Jong <arthur@arthurdejong.org>
* [642064c] tests/test.ldif, tests/test_nsscmds.sh: Add tests for
nested group functionality
This also includes some changes to the test directory contents
that were for other tests and functionality.
2013-03-24 Arthur de Jong <arthur@arthurdejong.org>
* [b1b7648] README, man/nslcd.conf.5.xml, nslcd/cfg.c, nslcd/cfg.h,
nslcd/group.c, pynslcd/cfg.py, pynslcd/group.py: Implement a
nss_nested_groups configuration option
This option can be used in both nslcd and pynslcd to enable
recursive group member lookups. By default the functionality is
disabled. This also updates the documentation.
2013-03-24 Arthur de Jong <arthur@arthurdejong.org>
* [d6a6e8b] pynslcd/common.py, pynslcd/group.py: Implement support
for nested groups in pynslcd
2013-03-24 Arthur de Jong <arthur@arthurdejong.org>
* [41ba574] nslcd/group.c: Implement support for nested groups
in nslcd
This differs from the code provided by Steve Hill in that it avoids
(recursively) performing parallel LDAP searches by queueing groups
and check for extra members per queued group (in the forward
lookup) or check for extra parents (for the user to groups lookup).
For the reverse lookup handling the NSLCD_HANDLE macro could no
longer be used because extra care should be taken to free the
sets before returning and two search phases are needed.
2013-03-20 Steve Hill <steve@opendium.com>
* [08f5301] AUTHORS, nslcd/group.c: Implement a
mkfilter_group_bymemberdn() function
This was part of a bigger change to implement nested groups,
however most of the other parts were re-implemented differently.
For the original changes, see:
http://lists.arthurdejong.org/nss-pam-ldapd-users/2013/msg00034.html
2013-03-24 Arthur de Jong <arthur@arthurdejong.org>
* [edd119c] tests/test.ldif, tests/test.ldif.gz: Unpack the LDIF
file to make diffs clearer
2013-03-24 Arthur de Jong <arthur@arthurdejong.org>
* [b0785de] nslcd/cfg.h, nslcd/myldap.c: spelling fixes
2013-03-22 Arthur de Jong <arthur@arthurdejong.org>
* [402d3f3] nslcd/service.c: fix service request logging
2013-03-19 Jakub Hrozek <jhrozek@redhat.com>
* [f21efd6] nss/common.h: NSS: Return TRYAGAIN on zero-length buffer
One of our customers was running into a situation where glibc
provided a zero buffer, which is a condition that is retriable
and the nss module should return NSS_STATUS_TRYAGAIN not
NSS_STATUS_UNAVAIL.
2013-03-11 Arthur de Jong <arthur@arthurdejong.org>
* [7926326] nss/shadow.c: fix the text representation of shadow
information for nscd on Solaris
2013-03-11 Arthur de Jong <arthur@arthurdejong.org>
* [83c5788] .gitignore, tests/Makefile.am, tests/lookup_shadow.c:
implement a lookup_shadow test command for use on systems that
don't allow querying shadow via getent
2013-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [fa27d94] nslcd/cfg.c, nslcd/nscd.c: fix a few compiler warnings
2013-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [0b5b4d1] configure.ac: guess the value for --with-pam-seclib-dir
if it is not specified
2013-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [24c565c] tests/test_pamcmds.sh: small portability fix in
test_pamcmds.sh
2013-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [6a92621] nslcd/service.c: only log protocol name if it is present
2013-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [f7c6771] compat/ldap_parse_passwordpolicy_control.c, configure.ac:
also support systems without bet_get_enum()
2013-03-09 Arthur de Jong <arthur@arthurdejong.org>
* [ba5f39f] pynslcd/pynslcd.py: log hex value of action id to make
debugging easier
2013-03-09 Arthur de Jong <arthur@arthurdejong.org>
* [11ca816] pynslcd/pam.py: ensure consistent naming of DN variables
2013-03-09 Arthur de Jong <arthur@arthurdejong.org>
* [116d215] pynslcd/attmap.py, pynslcd/group.py,
pynslcd/netgroup.py, pynslcd/pam.py, pynslcd/search.py,
pynslcd/service.py, pynslcd/shadow.py: clean up imports and use
ldap.filter.escape_filter_chars() directly
2013-03-09 Arthur de Jong <arthur@arthurdejong.org>
* [ac30060] pynslcd/pam.py, pynslcd/pynslcd.py, pynslcd/search.py:
move get_connection function to search module as Connection class
as subclass of ReconnectLDAPObject to automatically reconnect
to the LDAP server
2013-03-09 Arthur de Jong <arthur@arthurdejong.org>
* [4e60340] pynslcd/Makefile.am, pynslcd/alias.py, pynslcd/common.py,
pynslcd/ether.py, pynslcd/group.py, pynslcd/host.py,
pynslcd/netgroup.py, pynslcd/network.py, pynslcd/pam.py,
pynslcd/passwd.py, pynslcd/protocol.py, pynslcd/rpc.py,
pynslcd/search.py, pynslcd/service.py, pynslcd/shadow.py: move
Search class to search module
2013-03-09 Arthur de Jong <arthur@arthurdejong.org>
* [975ee2c] pynslcd/cfg.py: fix default logging configuration
setting in pynslcd
2013-03-09 Arthur de Jong <arthur@arthurdejong.org>
* [8a67c9f] common/tio.c: fix the description of the
tio_time_remaining() function
2013-03-08 Arthur de Jong <arthur@arthurdejong.org>
* [d19f1df] man/nslcd.conf.5.xml: document the nscd_invalidate option
2013-03-09 Arthur de Jong <arthur@arthurdejong.org>
* [bf64710] nslcd/myldap.c, nslcd/nscd.c, nslcd/nslcd.c: start the
nscd invalidator and invalidate the nscd cache after reconnecting
to the LDAP server after failure
2013-03-08 Arthur de Jong <arthur@arthurdejong.org>
* [d413a64] nslcd/cfg.c, nslcd/cfg.h: implement parsing of the
nscd_invalidate option
2013-03-09 Arthur de Jong <arthur@arthurdejong.org>
* [008f8a9] configure.ac, nslcd/Makefile.am, nslcd/common.h,
nslcd/nscd.c, tests/Makefile.am: implement functionality to send
a cache invalidation signal to nscd
2013-03-09 Arthur de Jong <arthur@arthurdejong.org>
* [9a6f5b2] nslcd/common.c, nslcd/common.h, nslcd/nslcd.c: move
signame() function to common.c to make it available to all modules
2013-03-03 Arthur de Jong <arthur@arthurdejong.org>
* [646dfa8] man/nslcd.conf.5.xml: document the trimming expressions
in the nslcd.conf(5) manual page
2013-03-03 Arthur de Jong <arthur@arthurdejong.org>
* [54a3dba] pynslcd/expr.py: support trimming expressions with
full shell glob matching in pynslcd
2013-03-03 Arthur de Jong <arthur@arthurdejong.org>
* [8655355] tests/test_expr.c: add tests for trimming expressions
2013-01-04 Arthur de Jong <arthur@arthurdejong.org>
* [6c05b76] common/expr.c: update the trimming expressions code
to follow the new coding style
2012-12-03 Thorsten Glaser <t.glaser@tarent.de>
* [3731964] AUTHORS, common/expr.c: allow trimming expressions
with ${foo#bar} syntax in nslcd
2013-03-01 Arthur de Jong <arthur@arthurdejong.org>
* [f56f926] nslcd/myldap.c, nslcd/myldap.h, nslcd/pam.c: return
the password policy bind information via PAM
2013-01-04 Arthur de Jong <arthur@arthurdejong.org>
* [5fce062] compat/Makefile.am, compat/ldap_compat.h,
compat/ldap_passwordpolicy_err2txt.c, configure.ac: provide a
basic replacement implementation of ldap_passwordpolicy_err2txt()
for systems that don't have it
2013-01-04 Arthur de Jong <arthur@arthurdejong.org>
* [37151df] compat/Makefile.am, compat/ldap_compat.h,
compat/ldap_parse_passwordpolicy_control.c, configure.ac: provide
a replacement implementation of ldap_parse_passwordpolicy_control()
for systems that don't have it
2013-03-01 Arthur de Jong <arthur@arthurdejong.org>
* [1c2ab50] compat/ldap_compat.h, configure.ac, nslcd/myldap.c:
request and parse password policy controls when doing user
authentication in nslcd
2013-01-18 Arthur de Jong <arthur@arthurdejong.org>
* [f2c49e6] nslcd/myldap.c: pass the session along to the do_bind()
function
2013-03-03 Arthur de Jong <arthur@arthurdejong.org>
* [117327e] configure.ac: add some missing checks to the configure
script
2013-03-01 Arthur de Jong <arthur@arthurdejong.org>
* [b4afe7c] nslcd/pam.c: log a more meaningful error in nslcd when
trying to authenticate as administrator when rootpwmoddn is not set
2013-03-01 Arthur de Jong <arthur@arthurdejong.org>
* [31f9098] nslcd/common.h, nslcd/pam.c, nslcd/shadow.c: move
update_lastchange() function from shadow to pam code
2013-03-01 Arthur de Jong <arthur@arthurdejong.org>
* [1a1bb07] utils/getent.py: move parsing to command line arguments
to main body
2013-02-28 Arthur de Jong <arthur@arthurdejong.org>
* [38fb524] TODO: update TODO (setnetgrent() returns an error
since r1874)
2013-02-27 Arthur de Jong <arthur@arthurdejong.org>
* [798820e] man/nslcd.conf.5.xml: include information about when
some of the options were added
2013-02-27 Arthur de Jong <arthur@arthurdejong.org>
* [11283a5] nss/common.c: add missing include statement for NULL
definition
2013-02-23 Arthur de Jong <arthur@arthurdejong.org>
* [12076c7] nslcd/nslcd.c, pynslcd/pynslcd.py: log version
information from the NSS module
2013-02-23 Arthur de Jong <arthur@arthurdejong.org>
* [3155cdf] nss/common.c, nss/exports.freebsd, nss/exports.glibc,
nss/exports.solaris: define and export an _nss_ldap_version symbol
2013-02-23 Arthur de Jong <arthur@arthurdejong.org>
* [61a3fce] pynslcd/ether.py: also search for alternative macAddress
representation in pynslcd
2013-02-12 Arthur de Jong <arthur@arthurdejong.org>
* [a9aea20] nslcd/nslcd.c: extra sanity check to ensure not too
many file descriptors are open
2013-02-23 Arthur de Jong <arthur@arthurdejong.org>
* [bfdf7cd] nslcd.h: clarify NSLCD_ACTION_SERVICE_* request
parameter description
2013-02-23 Arthur de Jong <arthur@arthurdejong.org>
* [1c6d856] man/nslcd.conf.5.xml, nslcd/cfg.c, tests/test_common.c:
allow names with one character in default validnames option and
allow parentheses (taken from Fedora packages)
2013-02-23 Arthur de Jong <arthur@arthurdejong.org>
* [d54243a] man/nslcd.conf.5.xml: document the log option
2013-02-23 Arthur de Jong <arthur@arthurdejong.org>
* [c75599d] pynslcd/cfg.py, pynslcd/pynslcd.py: handle the log
configuration option in pynslcd
2013-02-23 Arthur de Jong <arthur@arthurdejong.org>
* [efca5ca] nslcd/cfg.c, nslcd/log.c, nslcd/log.h, nslcd/nslcd.c:
handle the log configuration option in nslcd
2013-02-23 Arthur de Jong <arthur@arthurdejong.org>
* [22be9b0] nslcd/log.c, nslcd/log.h: implement functions for
configuring alternative logging
2013-02-12 Arthur de Jong <arthur@arthurdejong.org>
* [c12768a] man/getent.ldap.1.xml: fix docbook tag for file name
2013-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [60f1d85] Makefile.am: generate ChangeLog with git2cl
2013-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [ba93d8f] ChangeLog, ChangeLog-2012: archive 2012 changelog
messages into a year file including the change from Subversion
2013-01-28 Arthur de Jong <arthur@arthurdejong.org>
* [91440f7] .gitignore, man/Makefile.am, man/getent.ldap.1.xml:
add getent.ldap(1) manual page
2013-01-28 Arthur de Jong <arthur@arthurdejong.org>
* [ded7bd2] utils/Makefile.am, utils/cmdline.py, utils/getent.py,
utils/nslcd.py: implement a getent command to query nslcd while
bypassing NSS stack
2013-01-26 Arthur de Jong <arthur@arthurdejong.org>
* [3117668] .gitignore, Makefile.am, configure.ac, utils/Makefile.am:
add an --enable-utils option to configure to build command-line
utilities
2013-01-09 Arthur de Jong <arthur@arthurdejong.org>
* [7c01898] pynslcd/cache.py, pynslcd/common.py: disable pynslcd
cache for now
2013-01-27 Arthur de Jong <arthur@arthurdejong.org>
* [b9395c8] nslcd.h, nslcd/common.h, nslcd/netgroup.c, nslcd/nslcd.c,
pynslcd/netgroup.py: implement a netgroup_all request
2013-01-18 Arthur de Jong <arthur@arthurdejong.org>
* [0ae8e56] nslcd/nslcd.c: make checking dlsym() result a little
safer
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1925
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-18 Arthur de Jong <arthur@arthurdejong.org>
* [fb5d587] compat/ldap_passwd_s.c: fix copyright year
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1924
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-18 Arthur de Jong <arthur@arthurdejong.org>
* [16db596] common/tio.c: restructure timeout calculation in tio
to reduce the number of times gettimeofday() is called
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1923
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-18 Arthur de Jong <arthur@arthurdejong.org>
* [b01cd22] nslcd/log.c: use pthreads thread-local storage as
fallback mechanism if compiler doesn't provide a keyword for TLS
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1922
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-18 Arthur de Jong <arthur@arthurdejong.org>
* [d86497b] configure.ac, m4/ax_tls.m4, nslcd/log.c, nss/aliases.c,
nss/ethers.c, nss/group.c, nss/hosts.c, nss/netgroup.c,
nss/networks.c, nss/passwd.c, nss/protocols.c, nss/rpc.c,
nss/services.c, nss/shadow.c: use the AX_TLS macro to find
correct thread-local storage class compiler directive
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1921
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-18 Arthur de Jong <arthur@arthurdejong.org>
* [fa62cd3] nslcd/cfg.c, nslcd/cfg.h: dump full nslcd configuration
at debug level on start-up
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1920
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-16 Arthur de Jong <arthur@arthurdejong.org>
* [2765100] man/Makefile.am: fix the way manual pages are generated
and distributed
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1918
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-14 Arthur de Jong <arthur@arthurdejong.org>
* [2caeef4] man/nslcd.conf.5.xml, nslcd/cfg.c, pynslcd/cfg.py,
tests/test_cfg.c: support children search scope for systems that
have it
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1917
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-14 Arthur de Jong <arthur@arthurdejong.org>
* [4197ec3] pynslcd/cfg.py: fix parsing of scope option in pynslcd
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1916
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-14 Arthur de Jong <arthur@arthurdejong.org>
* [5e0bb05] tests/test_tio.c: support systems without ETIME
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1915
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-14 Arthur de Jong <arthur@arthurdejong.org>
* [b5b6c48] configure.ac, tests/lookup_netgroup.c: check whether
setnetgrent() returns int or void (for FreeBSD)
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1914
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-12 Arthur de Jong <arthur@arthurdejong.org>
* [0a5ac8b] nslcd/cfg.c, tests/test_cfg.c: reorganise configuration
file parsing code
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1913
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-12 Arthur de Jong <arthur@arthurdejong.org>
* [82b31fe] nslcd/myldap.c: have myldap_get_ranged_values() return
a list of values instead of a set
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1912
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-12 Arthur de Jong <arthur@arthurdejong.org>
* [388821a] nslcd/cfg.c, nslcd/group.c, nslcd/passwd.c,
nslcd/shadow.c: check result of set_tolist() to ensure that
memory allocation problems are logged
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1911
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-12 Arthur de Jong <arthur@arthurdejong.org>
* [cdae946] nslcd/myldap.c: fix memory leak in
myldap_get_values_len() when using ranged attributes (very
unlikely to occur)
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1910
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-12 Arthur de Jong <arthur@arthurdejong.org>
* [9b11d41] nslcd/myldap.c: fix a problem in memory handling in
myldap_get_values_len() if malloc() would fail
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1909
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-12 Arthur de Jong <arthur@arthurdejong.org>
* [2a73fa1] configure.ac: drop -Wcase-qual when using
--enable-warnings because it was causing too much noise
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1908
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-10 Arthur de Jong <arthur@arthurdejong.org>
* [4689d5f] nslcd/myldap.c: fix typo in comment
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1906
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-06 Arthur de Jong <arthur@arthurdejong.org>
* [eb86f87] pynslcd/pam.py: request and parse password policy
controls when doing user authentication in pynslcd
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1905
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-06 Arthur de Jong <arthur@arthurdejong.org>
* [28aeaa4] pam/pam.c: do not recheck the user password in first
password phase if it was stored in the authentication phase
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1904
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-06 Arthur de Jong <arthur@arthurdejong.org>
* [ba18be7] nslcd/pam.c: perform search for pam_authz_search on
all search bases
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1903
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [65e184d] pynslcd/pam.py: some simplifications in the current
pynslcd PAM request handling
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1902
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [8d054c8] nslcd/myldap.c, tests/test_cfg.c: update FIXMEs
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1901
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [086a1a5] nslcd/ether.c: change ethernet address formatting from
FIXME to note
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1900
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [c89c41b] pam/pam.c: save the old password if either the
authentication or the authorisation response is NEW_AUTHTOK_REQD
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1899
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [33518d5] nslcd/myldap.c: inline most is_valid_...() functions
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1898
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [5242233] compat/ldap_initialize.c: remove not needed define
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1897
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-05 Arthur de Jong <arthur@arthurdejong.org>
* [7a2b63f] common/nslcd-prot.h: log hex values when debugging
the protocol
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1896
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-01 Arthur de Jong <arthur@arthurdejong.org>
* [82010e2] nslcd/myldap.c, nslcd/myldap.h, nslcd/pam.c: log and
return a diagnostic message instead of just the LDAP error on
password change failure
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1895
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-01 Arthur de Jong <arthur@arthurdejong.org>
* [2f6f6a2] nslcd/pam.c: retry updating the lastChange attribute
with the normal nslcd LDAP connection if the update with the
user's connection failed
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1894
ef36b2f9-881f-0410-afb5-c4e39611909c
2013-01-01 Arthur de Jong <arthur@arthurdejong.org>
* [864c522] pynslcd/pam.py: update pynslcd PAM protocol handling
to be in line with r1865
git-svn-id:
http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1893
ef36b2f9-881f-0410-afb5-c4e39611909c
|