1
0
forked from pool/openldap2

10 Commits

Author SHA256 Message Date
2b25111fde Accepting request 1289248 from network:ldap
- Update to release 2.6.10

OBS-URL: https://build.opensuse.org/request/show/1289248
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openldap2?expand=0&rev=187
2025-07-01 09:33:33 +00:00
OBS User unknown
06ef6e16e2 [info=8849bdc7f53d6864961ab9c429afcd426556ecfc3ac154a85ba333e876a56a88]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=329
2025-06-30 09:20:50 +00:00
OBS User unknown
53f90016d5 [info=e4cb13fb18d83721463fa05e51a5ffbd7eef1f95c1571e6cd17242e9c70d8afb]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=328
2025-06-23 12:18:11 +00:00
2b74094981 Accepting request 1192647 from network:ldap
- Add back two hunks from gcc14.patch as gcc14-v2.patch.  Not all
  bugs that gcc14.patch fixed were dealt with in the upstream --
  one bug is caused by
  0016-Clear-shared-key-only-in-close-function.patch and one bug
  still remains in the upstream.

OBS-URL: https://build.opensuse.org/request/show/1192647
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openldap2?expand=0&rev=186
2024-08-10 17:06:05 +00:00
OBS User unknown
2c2fb5ffd4 [info=4029e81ba39bc3ad0647ae62172b9493d12e854b52820d5370ac5771cabae5ba]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=327
2024-08-08 16:17:23 +00:00
510b36d2e1 Accepting request 1190628 from network:ldap
- Update to relese 2.6.8

OBS-URL: https://build.opensuse.org/request/show/1190628
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openldap2?expand=0&rev=185
2024-08-01 20:03:47 +00:00
OBS User unknown
a45efc1eb5 [info=8f998cd85104beab1c2213b0cf5f7feef907d8925abdcf712f80fea621e003a1]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=326
2024-07-31 08:32:27 +00:00
OBS User unknown
4bccfc5bf6 [info=2f39dde991f1384b1d8ba2cad90d0170550808df6730ff46499157fa5368b379]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=325
2024-07-31 07:58:58 +00:00
543fc1553d [info=03c6657a1fe8e99dda492f4d9dec8aeefd5773d9e97365112500ec7c6ac3df4c]
OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=324
2024-07-31 05:03:35 +00:00
17245dd92c Accepting request 1190307 from home:jamborm:gcc14test-m
- Backported one hunk from upstream commit fb9e6a81bbee as
  openldap2-fb9e6a81bbee.patch to fix incompatible pointer type being
  passed to a function which is diagnosed as an error by GCC 14.

If the request is OK, please forward it to Factory soon so that we can
switch the default compiler.  Thanks!

OBS-URL: https://build.opensuse.org/request/show/1190307
OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=323
2024-07-31 04:59:13 +00:00
10 changed files with 106 additions and 125 deletions

4
_scmsync.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
mtime: 1751275232
commit: 8849bdc7f53d6864961ab9c429afcd426556ecfc3ac154a85ba333e876a56a88
url: https://src.opensuse.org/jengelh/openldap2
revision: master

3
build.specials.obscpio Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b94496b760fa86a34a7030b77969d4bc5f14c9a5ce3be048cdd2e0c6282bdbc8
size 256

25
gcc14-v2.patch Normal file
View File

@@ -0,0 +1,25 @@
Index: openldap-2.6.7/contrib/slapd-modules/cloak/cloak.c
===================================================================
--- openldap-2.6.7.orig/contrib/slapd-modules/cloak/cloak.c
+++ openldap-2.6.7/contrib/slapd-modules/cloak/cloak.c
@@ -242,6 +242,7 @@ cloak_search_response_cb( Operation *op,
else
me->e_attrs = a->a_next;
+ extern void attr_clean(Attribute *);
attr_clean( a );
}
Index: openldap-2.6.7/libraries/liblmdb/mdb.c
===================================================================
--- openldap-2.6.7.orig/libraries/liblmdb/mdb.c
+++ openldap-2.6.7/libraries/liblmdb/mdb.c
@@ -5161,7 +5161,7 @@ mdb_env_close0(MDB_env *env, int excl)
// No need to call desctructor anymore, as all pid
// values are cleared below.
- env->me_txkey = NULL;
+ memset(&env->me_txkey, 0, sizeof(env->me_txkey));
#ifdef _WIN32
/* Delete our key from the global list */

View File

@@ -1,91 +0,0 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2024-05-25 09:45:23.081724037 +0200
Codefixes needed for gcc 14:
mdb.c:5115:31: error: assignment to "pthread_key_t" {aka "unsigned int"} from
"void *" makes integer from pointer without a cast [-Wint-conversion]
Workarounds for:
constraint.c:560:43: error: assignment to "constraint **" from incompatible pointer type "void **" [-Wincompatible-pointer-types]
for ( app = &on->on_bi.bi_private; *app; app = &(*app)->ap_next )
dyngroup.c:114:27: error: assignment to "adpair **" from incompatible pointer type "void **" [-Wincompatible-pointer-types]
for ( app = &on->on_bi.bi_private; *app; app = &(*app)->ap_next )
valsort.c:204:19: error: assignment to "valsort_info **" from incompatible pointer type "void **" [-Wincompatible-pointer-types]
for ( vip = &on->on_bi.bi_private; *vip; vip = &(*vip)->vi_next )
cloak.c:245:25: error: implicit declaration of function "attr_clean"; did you mean "entry_clean"? [-Wimplicit-function-declaration]
attr_clean( a );
---
contrib/slapd-modules/cloak/cloak.c | 1 +
libraries/liblmdb/mdb.c | 2 +-
servers/slapd/overlays/constraint.c | 2 +-
servers/slapd/overlays/dyngroup.c | 2 +-
servers/slapd/overlays/valsort.c | 2 +-
5 files changed, 5 insertions(+), 4 deletions(-)
Index: openldap-2.6.7/contrib/slapd-modules/cloak/cloak.c
===================================================================
--- openldap-2.6.7.orig/contrib/slapd-modules/cloak/cloak.c
+++ openldap-2.6.7/contrib/slapd-modules/cloak/cloak.c
@@ -242,6 +242,7 @@ cloak_search_response_cb( Operation *op,
else
me->e_attrs = a->a_next;
+ extern void attr_clean(Attribute *);
attr_clean( a );
}
Index: openldap-2.6.7/libraries/liblmdb/mdb.c
===================================================================
--- openldap-2.6.7.orig/libraries/liblmdb/mdb.c
+++ openldap-2.6.7/libraries/liblmdb/mdb.c
@@ -5161,7 +5161,7 @@ mdb_env_close0(MDB_env *env, int excl)
// No need to call desctructor anymore, as all pid
// values are cleared below.
- env->me_txkey = NULL;
+ memset(&env->me_txkey, 0, sizeof(env->me_txkey));
#ifdef _WIN32
/* Delete our key from the global list */
Index: openldap-2.6.7/servers/slapd/overlays/constraint.c
===================================================================
--- openldap-2.6.7.orig/servers/slapd/overlays/constraint.c
+++ openldap-2.6.7/servers/slapd/overlays/constraint.c
@@ -557,7 +557,7 @@ done:;
a2->restrict_filter = ap.restrict_filter;
a2->restrict_val = ap.restrict_val;
- for ( app = &on->on_bi.bi_private; *app; app = &(*app)->ap_next )
+ for ( app = (constraint **)&on->on_bi.bi_private; *app; app = &(*app)->ap_next )
/* Get to the end */ ;
a2->ap_next = *app;
Index: openldap-2.6.7/servers/slapd/overlays/dyngroup.c
===================================================================
--- openldap-2.6.7.orig/servers/slapd/overlays/dyngroup.c
+++ openldap-2.6.7/servers/slapd/overlays/dyngroup.c
@@ -111,7 +111,7 @@ static int dgroup_cf( ConfigArgs *c )
*/
a2 = ch_malloc( sizeof(adpair) );
- for ( app = &on->on_bi.bi_private; *app; app = &(*app)->ap_next )
+ for ( app = (adpair **)&on->on_bi.bi_private; *app; app = &(*app)->ap_next )
/* Get to the end */ ;
a2->ap_mem = ap.ap_mem;
Index: openldap-2.6.7/servers/slapd/overlays/valsort.c
===================================================================
--- openldap-2.6.7.orig/servers/slapd/overlays/valsort.c
+++ openldap-2.6.7/servers/slapd/overlays/valsort.c
@@ -201,7 +201,7 @@ valsort_cf_func(ConfigArgs *c) {
return(1);
}
- for ( vip = &on->on_bi.bi_private; *vip; vip = &(*vip)->vi_next )
+ for ( vip = (valsort_info **)&on->on_bi.bi_private; *vip; vip = &(*vip)->vi_next )
/* Get to the end */ ;
vi = ch_malloc( sizeof(valsort_info) );

BIN
openldap-2.6.10.tgz (Stored with Git LFS) Normal file

Binary file not shown.

16
openldap-2.6.10.tgz.asc Normal file
View File

@@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEPOJptTmLyLeFZF6Yf2fV/Rzhy84FAmgvrH4ACgkQf2fV/Rzh
y85BtA/+LSreJHsPBI5lLEC5AdOlo/03YJO1stcClGGaXm4//r4DyvbbUTyaEvnS
yAzfALCWhjLWez1nSRZXJWu1uQF+LVckucYUdeQamdhMe/O+Qrww7hTCwHk3e0WX
D9wkK290kJM1I0YW+XYa9R5f8SWRxsX9IPMGWQWukSBFjNv67iv04drj48mo7YQt
+yI7koJLkcDaVwsHtV8JrSEJPxcYMYn0YEVZUlYqH7av4B6eeEgJV9IRYAmSTebP
65vLfjflHv7+pV0cxk7Y0h9AVqsxcSSYs6l4deGv9qPxkWsdTdwGHM6tkQbkhux7
P+GR7fGQqnkxDNaYp15aI+UavJXnIuKcJWXdqj3B1AmEH3wqrG/2GT+R6JduX8vP
t+py6+55J7xBGDM3NAa+ushhege/viivUkoE5vLQXwkdLNpdUqKC074RL9cr59Aj
yVoHj3gIn3Ztx2GDBVZc/CHjOs3OEuaTmiEzTzchht0lTt/m0DgHDK3SUATXqqZB
x5WAswguZBcUuvNOaDHuXNHMzTUGrCHRS6exopcMe90Q0sPctLXafQPNcHgfwcpo
fT/ZWQBjm1PTmrQtr/SGnX2l2UK2eYh0XmT+B042NouaE4cYhiRTiMfLOa0Qo9d5
QELM9ySo9bHMhxJ75kBQGPnmad05gwRMILx4QHccBSZnsrKSEy0=
=vD2H
-----END PGP SIGNATURE-----

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cd775f625c944ed78a3da18a03b03b08eea73c8aabc97b41bb336e9a10954930
size 6484944

View File

@@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEPOJptTmLyLeFZF6Yf2fV/Rzhy84FAmW4AwsACgkQf2fV/Rzh
y84CgQ/9GAtC9/jUMEb+PJYnCKCil07gxl6yxwjzUUy6mQZt59hwqXFRRkG/cqKj
mie25RGVTyCCzaz9TMo8RplrqvVL2CGZrE3NzorCivh5VNWZws61b+c+7aSHu0qd
VSLpn3FMAhOdY3FBqmuPMj1mT0S7iJ5pA181YXYmLhiWlerYl5FyMjmaQddht+OB
ctTG3l/9/BDW5vyTxtBZSnY20h70r1gzKn3x8zQ4kJApJZPEiMsJBne7ywOmezzt
p1SgqExSVedlVig3AGqia+zlCcROJxVXqDSZenISrzXMQzdIc2WmEwo+q5WF4Kwh
aw3w8BVnoO6Jv4B9Ye5fokSTLKJ1hbLFE+f9s1M5lM3+vmtSSl0sU0glDkwe2UFK
ZCeMcsrQTRTsFOFaY/JgAqlD5Q66etVCM6Jobqt2fsdGKnregcu5SGvS0P9rRS/h
JRdkqPbndE05sZZxt8hBE4Sc1GIMeW9usA2GQaATK1xtq9pAWSF4UJ+y2aKxY6vI
sGBRrtJ7zRjrM17k4xGe0kMqP0y4mqKRfm2QYDK/64UplhMgrUzods+NU1NpfHWb
FlCOreubgjMeGl8wUpYTFNTO2GU74AjFnnpqU50v+5tHGqQ3rNq0VXwSifxj1ttK
0w7DXLD4qVA1rjyK3fBTaIfvOFCc6ukhQiFq0cYUOBS3VDhz7lU=
=2j7h
-----END PGP SIGNATURE-----

View File

@@ -1,3 +1,48 @@
-------------------------------------------------------------------
Mon Jun 23 11:22:32 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 2.6.10
* ldap.conf:TIMEOUT and NETWORK_TIMEOUT config directives now
have the desired effect for TLS connections (previously ignored)
* Reject attempts to modify cn=schema,cn=config objects
* Fixed a slapo-nestgroup leak in nestgroup_memberFilter
* Fixed a slapo-translucent regression with subordinate
databases / and when requesting attributes
* Adjusted slappw-argon2 defaults to be more secure
* Added slapd microsecond timestamp format for local logging
* Fixed libldap ldap_result behavior with LDAP_MSG_RECEIVED
-------------------------------------------------------------------
Wed Aug 7 11:42:49 UTC 2024 - Filip Kastl <filip.kastl@suse.com>
- Add back two hunks from gcc14.patch as gcc14-v2.patch. Not all
bugs that gcc14.patch fixed were dealt with in the upstream --
one bug is caused by
0016-Clear-shared-key-only-in-close-function.patch and one bug
still remains in the upstream.
-------------------------------------------------------------------
Wed Jul 31 05:11:48 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to relese 2.6.8
* slapd: ability to log directly to a file bypassing syslog
* back-ndb has been retired
* back-sql and back-perl have been deprecated
* lloadd enhancments:
* Additional load balancing strategies
* Additional options to improve coherence with certain
controls and extended operations
* Ability to log directly to a file bypassing syslog
- Delete gcc14.patch, openldap2-fb9e6a81bbee.patch (merged)
- Drop rcslapd symlink
-------------------------------------------------------------------
Mon Jul 29 17:06:34 UTC 2024 - Martin Jambor <mjambor@suse.com>
- Backported one hunk from upstream commit fb9e6a81bbee as
openldap2-fb9e6a81bbee.patch to fix incompatible pointer type being
passed to a function which is diagnosed as an error by GCC 14.
-------------------------------------------------------------------
Sat May 25 07:46:05 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
@@ -2240,7 +2285,6 @@ Mon Jun 30 16:32:10 CEST 2008 - rhafer@suse.de
- Adjust BuildRequires for older Distributions
-------------------------------------------------------------------
Fri Jun 27 10:57:53 CEST 2008 - coolo@suse.de
- make sure the subpacks are only in one spec file declared

View File

@@ -1,7 +1,7 @@
#
# spec file for package openldap2
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,9 +26,9 @@
%endif
Name: openldap2%{name_suffix}
Version: 2.6.7
Version: 2.6.10
Release: 0
Summary: An open source implementation of the Lightweight Directory Access Protocol
Summary: An implementation of the Lightweight Directory Access Protocol
License: OLDAP-2.8
Group: Productivity/Networking/LDAP/Servers
URL: https://www.openldap.org
@@ -56,7 +56,7 @@ Patch3: 0003-LDAPI-socket-location.dif
Patch5: 0005-pie-compile.dif
Patch8: 0008-In-monitor-backend-do-not-return-Connection0-entries.patch
Patch16: 0016-Clear-shared-key-only-in-close-function.patch
Patch17: gcc14.patch
Patch17: gcc14-v2.patch
BuildRequires: argon2-devel
BuildRequires: cyrus-sasl-devel
BuildRequires: db-devel
@@ -92,7 +92,7 @@ Lightweight Directory Access Protocol v3 (LDAPv3).
The server provides several database backends and overlays.
%package back-perl
Summary: OpenLDAP Perl Back-End
Summary: OpenLDAP Perl backend
Group: Productivity/Networking/LDAP/Servers
Requires: openldap2 = %{version}
Requires: perl = %{perl_version}
@@ -102,7 +102,7 @@ The OpenLDAP Perl back-end allows you to execute Perl code specific to
different LDAP operations.
%package back-sock
Summary: OpenLDAP Socket Back-End
Summary: OpenLDAP Socket backend
Group: Productivity/Networking/LDAP/Servers
Requires: openldap2 = %{version}
Provides: openldap2:/usr/share/man/man5/slapd-sock.5.gz
@@ -112,7 +112,7 @@ The OpenLDAP socket back-end allows you to handle LDAP requests and
results with an external process listening on a Unix domain socket.
%package back-meta
Summary: OpenLDAP Meta Back-End
Summary: OpenLDAP Meta backend
Group: Productivity/Networking/LDAP/Servers
Requires: openldap2 = %{version}
Provides: openldap2:/usr/share/man/man5/slapd-meta.5.gz
@@ -124,7 +124,7 @@ these servers can be presented as belonging to a single Directory
Information Tree (DIT).
%package back-sql
Summary: OpenLDAP SQL Back-End
Summary: OpenLDAP SQL backend
Group: Productivity/Networking/LDAP/Servers
Requires: openldap2 = %{version}
@@ -185,12 +185,11 @@ OpenLDAP client utilities such as ldapadd, ldapsearch, ldapmodify.
%package devel
Summary: Libraries, Header Files and Documentation for OpenLDAP
# bug437293
Group: Development/Libraries/C and C++
%ifarch ppc64
# bug437293
Obsoletes: openldap2-devel-64bit
%endif
#
Conflicts: openldap-devel
Requires: libldap2 = %{version}
Recommends: cyrus-sasl-devel
@@ -391,11 +390,8 @@ rm -f %{buildroot}/etc/openldap/schema/README
rm -f %{buildroot}/etc/openldap/slapd.ldif*
mv servers/slapd/back-sql/rdbms_depend servers/slapd/back-sql/examples
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcslapd
rm -f %{buildroot}%{_libdir}/openldap/*.a
rm -f %{buildroot}/usr/share/man/man5/slapd-dnssrv.5
rm -f %{buildroot}/usr/share/man/man5/slapd-ndb.5
rm -f %{buildroot}/usr/share/man/man5/slapd-null.5
rm -f %{buildroot}/usr/share/man/man5/slapd-passwd.5
rm -f %{buildroot}/usr/share/man/man5/slapd-shell.5
@@ -455,7 +451,6 @@ ln -fs libldap.so "%{buildroot}%{_libdir}/libldap_r.so"
%dir %{_sysconfdir}/openldap/schema
%{_fillupdir}/sysconfig.openldap
%{_sbindir}/slap*
%{_sbindir}/rcslapd
%{_libdir}/openldap/back_ldap*
%{_libdir}/openldap/back_mdb*
%{_libdir}/openldap/back_relay*
@@ -470,6 +465,7 @@ ln -fs libldap.so "%{buildroot}%{_libdir}/libldap_r.so"
%{_libdir}/openldap/dynlist*
%{_libdir}/openldap/homedir*
%{_libdir}/openldap/memberof*
%{_libdir}/openldap/nestgroup*
%{_libdir}/openldap/otp*
%{_libdir}/openldap/pcache*
%{_libdir}/openldap/ppolicy*