Commit graph

1581 commits

Author SHA1 Message Date
HAMANO Tsukasa
f7c76e2daf ITS#10214 Reduce library dependencies
Currently, slapd links libsystemd to notify service state to systemd.
However, libsystemd link several unnecessary libraries, which increases security risks.
The systemd documentation provides a method to send state notifications to systemd using a simple protocol without the need to link against libsystemd.

https://www.freedesktop.org/software/systemd/man/devel/sd_notify.html
2024-05-09 17:10:49 +00:00
Quanah Gibson-Mount
2eadd1524a Happy New Year! 2024-03-26 19:46:02 +00:00
Ondřej Kuzník
1a732ee952 ITS#10123 Adjust our prototypes for both K&R and C2x compatibility 2024-01-11 22:02:55 +00:00
Ondřej Kuzník
5936d72122 ITS#9045 rlock only if there may be other threads
We can't rlock if we've registered ourselves as a writer. We can only
figure that out by checking if we're the thread that initiated the
pause: is the server paused already?
2023-01-30 18:59:26 +00:00
Connor Smith
acf30be29a ITS#9925 Fix some ancient #ifdef checks
Use #elif defined(...) for HAVE_WINSOCK and MACOS. All other instances
of these macros use #ifdef or similar. A compiler may warn about them
not being defined.

In libraries/liblber/sockbuf.c, (DOS && PCNFS) and (DOS && NCSA) were
replaced with HAVE_PCNFS and HAVE_NCSA, respectively. It seems logical
to do the same at the only remaining occurrence of DOS, PCNFS, and NCSA.

Use #if HARDCODE_DATA consistently, replacing two instances of #ifdef.
HARDCODE_DATA is always defined, and this way you can set HARDCODE_DATA
to 0 and have it work, rather than it going down the wrong branch and
failing in these two cases.
2022-10-13 16:01:57 +00:00
Orgad Shaneh
41adeb4129 ITS#9790 Fix build with old GCC
Versions 4.1 and 4.3 show the following error:

In file included from ../../include/lutil.h:21,
                 from passwd.c:60:
../../include/ac/socket.h:247: error: redefinition of typedef 'Sockaddr'
../../include/ldap_pvt.h:188: error: previous declaration of 'Sockaddr' was here
2022-02-02 17:11:25 +00:00
Quanah Gibson-Mount
6e5204fdae Happy New Year! 2022-01-07 18:42:51 +00:00
Quanah Gibson-Mount
ee916dfba6 Revert "ITS#8958 rename ldap_pvt_thread_pool_pausecheck()"
This reverts commit 22d58179f1.
2021-08-16 17:28:46 +00:00
Howard Chu
22d58179f1 ITS#8958 rename ldap_pvt_thread_pool_pausecheck()
to ..._pausewait() since that's what it really does.
Add ..._pausequery() that only checks and doesn't wait.
2021-08-16 16:34:42 +00:00
Michael Ströder
7645e78ce0 ITS#9542 fix AuthZ Identity control OIDs
Did not match RFC3829
2021-05-03 15:07:03 +00:00
Nadezhda Ivanova
32a278d077 ITS#9502 Implement LDAP_OPT_TCP_USER_TIMEOUT 2021-04-30 16:52:27 +00:00
Quanah Gibson-Mount
d8f42e73b5 Merge remote-tracking branch 'origin/master' into OPENLDAP_REL_ENG_2_5 2021-04-21 01:31:00 +00:00
Quanah Gibson-Mount
7307d7763b ITS#8707 -- Regenerate configure 2021-04-21 01:30:29 +00:00
Howard Chu
2a3b64f4e6 ITS#9518 add LDAP_OPT_X_TLS_PROTOCOL_MAX option
OpenSSL only
2021-04-09 18:12:40 +01:00
Quanah Gibson-Mount
8d5ef3316f Merge remote-tracking branch 'origin/master' into OPENLDAP_REL_ENG_2_5 2021-03-31 19:44:38 +00:00
Quanah Gibson-Mount
fcc1410f98 ITS#9513 - Regenerate configure 2021-03-31 19:44:22 +00:00
Howard Chu
94fbd96826 ITS#9513 Change all lutil time structs to use nanoseconds
Instead of microseconds
2021-03-31 18:53:50 +00:00
Quanah Gibson-Mount
b518a597b0 Merge remote-tracking branch 'origin/master' into OPENLDAP_REL_ENG_2_5 2021-03-31 17:19:19 +00:00
Quanah Gibson-Mount
2ddcb121a3 ITS#9437 - Regenerate configure 2021-03-31 16:11:18 +00:00
Ondřej Kuzník
e36d1e31c5 ITS#9001 manual changes 2021-03-30 15:46:40 +01:00
Quanah Gibson-Mount
c5022c9041 ITS#5365, ITS#9470 - Regenerate configure 2021-03-29 23:09:36 +00:00
Howard Chu
bc0d62db23 Revert "ITS#8847 more fallout from ldap_pvt_sockaddrstr move"
This reverts commit f2ddf89e3c.

Move Sockaddr def to ac/socket.h instead.
2021-03-27 10:38:59 +00:00
Howard Chu
829263c454 ITS#8847 move lutil_sockaddrstr() to ldap_pvt_sockaddrstr() 2021-03-26 13:45:26 +00:00
HoweverAT
9d594a118e ITS#8847 Add SOCKET_BIND_ADDRESSES Option 2021-03-25 18:47:11 +00:00
Howard Chu
bb6844e296 ITS#7295 don't init TLS threads by default
Do it explicitly in servers
2021-03-21 15:26:57 +00:00
Quanah Gibson-Mount
025ea56238 Merge remote-tracking branch 'origin/master' into OPENLDAP_REL_ENG_2_5 2021-03-15 23:15:08 +00:00
Quanah Gibson-Mount
cae02685c9 ITS#9453 - Regenerate configure 2021-03-12 16:00:59 +00:00
Ondřej Kuzník
568239731f ITS#8345 Remove LDIF_KLUDGE and defer defaults to _wrap() 2021-03-03 10:37:19 +00:00
Quanah Gibson-Mount
e6ca2ac1d6 Merge remote-tracking branch 'origin/master' into OPENLDAP_REL_ENG_2_5 2021-02-26 22:22:12 +00:00
Quanah Gibson-Mount
4fdddbc139 Regenerate for ITS#9438 2021-02-26 22:21:48 +00:00
Quanah Gibson-Mount
1dc0fc1197 Merge remote-tracking branch 'origin/master' into OPENLDAP_REL_ENG_2_5 2021-02-26 22:20:28 +00:00
Quanah Gibson-Mount
a84d11dcce ITS#9422 - Update for TLS v1.3 2021-02-25 21:32:58 +00:00
Quanah Gibson-Mount
49b2b22cfd Merge remote-tracking branch 'origin/master' into OPENLDAP_REL_ENG_2_5 2021-02-24 23:26:07 +00:00
Quanah Gibson-Mount
273ff432c5 Regenerate configure 2021-02-24 23:16:43 +00:00
Paul B. Henson
146889f205 ITS#9419 Add support for HAProxy proxy protocol v2 2021-02-24 18:11:09 +00:00
Paul B. Henson
dcca73370b Move slap_sockaddrstr into liblutil 2021-02-24 18:11:09 +00:00
Quanah Gibson-Mount
ce2c5173bd ITS#9161 - Fix various typos
Fix a number of different typos across the code base
2021-02-17 18:42:46 +00:00
Quanah Gibson-Mount
a0f2b003d5 Happy New Year! 2021-01-11 19:30:43 +00:00
Quanah Gibson-Mount
efaf9a4a17 Happy New Year! 2021-01-11 19:25:53 +00:00
Quanah Gibson-Mount
ac84c6a68e Merge remote-tracking branch 'origin/master' into OPENLDAP_REL_ENG_2_5 2020-11-20 16:19:13 +00:00
Quanah Gibson-Mount
1aef660f0b ITS#8747 - Regenreate for lloadd 2020-11-20 16:18:15 +00:00
Quanah Gibson-Mount
0b762becd4 Merge remote-tracking branch 'origin/master' into OPENLDAP_REL_ENG_2_5 2020-11-17 19:09:18 +00:00
Ondřej Kuzník
46ddb4039c lloadd ahoy 2020-11-17 17:15:40 +00:00
Quanah Gibson-Mount
fcc64517c4 regenerate for configure.ac 2020-10-14 19:29:35 +00:00
Quanah Gibson-Mount
bf2a1e11be Merge remote-tracking branch 'origin/master' into OPENLDAP_REL_ENG_2_5 2020-10-01 16:28:45 +00:00
Howard Chu
80a545b5ed Partially Revert "ITS#8486 use kbtree for sessionlog"
This mostly reverts commit 1915cb968a.
Too many concurrency issues. Retains the improvement to
syncprov_sessionlog_cmp
2020-09-30 15:11:31 +00:00
Howard Chu
1915cb968a ITS#8486 use kbtree for sessionlog
Saves about 20% CPU time and RAM
2020-09-25 00:07:50 +00:00
Howard Chu
c3131eb5a3 ITS#9348 replace all uses of STRERROR with AC_STRERROR_R
Avoid using sys_errlist unless there's no other choice
2020-09-24 23:34:36 +00:00
Quanah Gibson-Mount
2be22ecd00 Merge remote-tracking branch 'origin/master' into OPENLDAP_REL_ENG_2_5 2020-09-21 20:55:50 +00:00
Quanah Gibson-Mount
a3f186880c ITS#9351 - Always build back-monitor as a static backend 2020-09-21 16:52:33 +00:00