Name: openldap Version: 2.6.9 Release: 1mamba Group: System/Servers Summary: An open source implementation of the Lightweight Directory Access Protocol Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.openldap.org Source0: ftp://ftp.openldap.org/pub/OpenLDAP/%{name}-release/%{name}-%{version}.tgz Source2: %{name}-logrotate Source3: %{name}-2.2.15-conf Source4: openldap.service Source5: openldap.tmpfiles Source6: openldap.sysusers # patch from Novell developers (evolution-exchange-2.4.0/docs/openldap-ntlm.diff) Patch0: %{name}-2.4.6-evolution-ntlm.patch Patch2: %{name}-2.4.24-default_config.patch Patch3: openldap-2.4.44-liblmdb-soname.patch Patch4: openldap-2.4.43-liblmdb-installdirs.patch License: OpenLDAP Public License ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libltdl-devel BuildRequires: libopenssl-devel BuildRequires: libsasl2-devel BuildRequires: libuuid-devel BuildRequires: libxcrypt-devel ## AUTOBUILDREQ-END BuildRequires: libsasl-devel >= 2.1.26 BuildRequires: libreadline-devel >= 4.3 BuildRequires: systemd-devel Requires: libopenldap = %{version}-%{release} %description OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol. %package -n lib%{name} Summary: OpenLDAP libraries Group: System/Libraries # requires latest SASL libraries Requires: libsasl >= 2.1.25 %description -n lib%{name} OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol. This package contains the OpenLDAP libraries. %package -n lib%{name}-devel Summary: OpenLDAP development files Group: Development/Libraries Requires: libopenldap = %{version}-%{release} %description -n lib%{name}-devel OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol. This package contains static libraries and header files need for development. %package clients Summary: OpenLDAP clients Group: System/Libraries Requires: libopenldap = %{version}-%{release} %description clients OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol. This package contains the OpenLDAP clients and related files. %package server Summary: OpenLDAP server Group: System/Libraries Requires: libopenldap = %{version}-%{release} Provides: openldap-servers Obsoletes: openldap-servers < 2.5.5 %description server OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol. This package contains the OpenLDAP server and related files. %package -n liblmdb Summary: OpenLDAP lmdb library Group: System/Libraries %description -n liblmdb OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol. This package contains the lmdb library. %package -n liblmdb-tools Summary: OpenLDAP lmdb library tools Group: System/Tools Requires: liblmdb = %{version}-%{release} %description -n liblmdb-tools OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol. This package contains the lmdb library tools. %package -n liblmdb-devel Summary: liblmdb development files Group: Development/Libraries Requires: liblmdb = %{version}-%{release} %description -n liblmdb-devel OpenLDAP is an open source implementation of the Lightweight Directory Access Protocol. This package contains static libraries and header files needed for development. %debug_package %prep %setup -q #-D -T #:<< _EOF %patch 2 -p1 %build #:<< _EOF %configure \ --libexecdir=%{_sbindir} \ --localstatedir=%{_localstatedir} \ --with-cyrus-sasl \ --enable-slapd \ --enable-crypt \ --enable-lmpasswd \ --enable-spasswd \ --enable-passwd \ --enable-modules \ --enable-rewrite \ --enable-dynamic \ --enable-mdb # --enable-rlookups \ %make CC=%{_host}-gcc %make #-C libraries/liblmdb SOLIBS="-Wl,-soname,liblmdb.so.0" %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall # Fix missing -x permission chmod +x %{buildroot}%{_libdir}/lib*.so.* install -d %{buildroot}/var/lib/%{name}-data install -D -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} install -D -m 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/openldap.conf install -D -m0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/openldap.conf rm -f %{buildroot}%{_sysconfdir}/%{name}/*.default rm -f %{buildroot}%{_sysconfdir}/%{name}/schema/*.default # allow client requests without client certificate echo "TLS_REQCERT allow" >> \ %{buildroot}%{_sysconfdir}/openldap/ldap.conf #ln -s liblber.so %{buildroot}%{_libdir}/liblber.so.2 #ln -s libldap.so %{buildroot}%{_libdir}/libldap.so.2 #ln -s libldap_r.so %{buildroot}%{_libdir}/libldap_r.so.2 #chmod 755 %{buildroot}%{_libdir}/*.so.* cat > %{buildroot}/var/lib/openldap-data/DB_CONFIG << _EOF set_cachesize 0 150000000 1 set_lg_regionmax 262144 set_lg_bsize 2097152 #set_lg_dir /var/log/bdb set_flags DB_LOG_AUTOREMOVE _EOF rm -f %{buildroot}/var/openldap-data/DB_CONFIG.example #% makeinstall -C libraries/liblmdb prefix=%{_prefix} libdir=%{_libdir} #ln -s liblmdb.so.0 %{buildroot}%{_libdir}/liblmdb.so %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pre -n %{name}-server %sysusers_create_package openldap %{SOURCE6} %tmpfiles_create_package openldap %{SOURCE5} : %post -n %{name}-server %systemd_post slapd : %preun -n %{name}-server %systemd_preun slapd : %postun -n %{name}-server %systemd_postun_with_restart slapd : %files -n lib%{name} %defattr(-,root,root) %{_libdir}/liblber.so.* %{_libdir}/libldap.so.* %doc COPYRIGHT LICENSE %files -n lib%{name}-devel %defattr(-,root,root) %{_includedir}/openldap.h %{_includedir}/lber.h %{_includedir}/lber_types.h %{_includedir}/ldap.h %{_includedir}/ldap_*.h %{_includedir}/ldif.h %{_includedir}/slapi-plugin.h %{_libdir}/liblber.a %{_libdir}/liblber.so %{_libdir}/libldap.a %{_libdir}/libldap.so %{_libdir}/pkgconfig/lber.pc %{_libdir}/pkgconfig/ldap.pc %doc ANNOUNCEMENT CHANGES README %files clients %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/openldap/ldap.conf %{_bindir}/ldapexop %{_bindir}/ldapadd %{_bindir}/ldapdelete %{_bindir}/ldapmodify %{_bindir}/ldapmodrdn %{_bindir}/ldappasswd %{_bindir}/ldapsearch %{_bindir}/ldapurl %{_bindir}/ldapvc #%{_bindir}/saucer #%{_bindir}/ud %{_mandir}/man1/* %{_mandir}/man5/* %files server %defattr(-,root,root) %dir %{_sysconfdir}/openldap #%{_sysconfdir}/openldap/DB_CONFIG.example %{_sysconfdir}/openldap/slapd.ldif %config(noreplace) %attr(640,root,ldap) %{_sysconfdir}/openldap/slapd.conf %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/openldap %dir %{_sysconfdir}/openldap/schema %{_sysconfdir}/openldap/schema/* %{_bindir}/ldapcompare %{_bindir}/ldapwhoami %{_sbindir}/slapacl %{_sbindir}/slapadd %{_sbindir}/slapauth %{_sbindir}/slapcat %{_sbindir}/slapd %{_sbindir}/slapdn %{_sbindir}/slapindex %{_sbindir}/slapmodify %{_sbindir}/slappasswd %{_sbindir}/slapschema %{_sbindir}/slaptest %{_unitdir}/slapd.service %{_tmpfilesdir}/openldap.conf %{_sysusersdir}/openldap.conf %dir %attr(700,ldap,ldap) /var/lib/openldap-data %config(noreplace) /var/lib/openldap-data/DB_CONFIG %{_mandir}/man3/* %{_mandir}/man8/* %changelog * Wed Nov 27 2024 Automatic Build System 2.6.9-1mamba - automatic version update by autodist * Sun Jun 23 2024 Silvan Calarco 2.6.8-2mamba - provide sysusers file for ldap user and group creation and restore tmpfiles.d for /run * Tue Jun 04 2024 Automatic Build System 2.6.8-1mamba - automatic version update by autodist * Tue Jan 30 2024 Automatic Build System 2.6.7-1mamba - automatic version update by autodist * Tue Aug 01 2023 Automatic Build System 2.6.6-1mamba - automatic version update by autodist * Tue Jul 11 2023 Automatic Build System 2.6.5-1mamba - automatic version update by autodist * Sat Feb 11 2023 Automatic Build System 2.6.4-1mamba - automatic version update by autodist * Fri Jul 15 2022 Automatic Build System 2.6.3-1mamba - automatic version update by autodist * Thu May 05 2022 Automatic Build System 2.6.2-1mamba - automatic version update by autodist * Fri Jan 21 2022 Automatic Build System 2.6.1-1mamba - automatic version update by autodist * Mon Nov 01 2021 Automatic Build System 2.6.0-1mamba - automatic version update by autodist * Tue Oct 12 2021 Automatic Build System 2.5.8-1mamba - automatic version update by autodist * Fri Aug 20 2021 Automatic Build System 2.5.7-1mamba - automatic version update by autodist * Wed Jul 28 2021 Automatic Build System 2.5.6-1mamba - automatic version update by autodist * Thu Jun 10 2021 Automatic Build System 2.5.5-1mamba - automatic version update by autodist * Wed Mar 17 2021 Automatic Build System 2.4.58-1mamba - automatic version update by autodist * Tue Jan 19 2021 Automatic Build System 2.4.57-1mamba - automatic version update by autodist * Wed Nov 11 2020 Automatic Build System 2.4.56-1mamba - automatic version update by autodist * Tue Oct 27 2020 Automatic Build System 2.4.55-1mamba - automatic version update by autodist * Tue Oct 13 2020 Automatic Build System 2.4.54-1mamba - automatic version update by autodist * Tue Sep 08 2020 Automatic Build System 2.4.53-1mamba - automatic version update by autodist * Sat Aug 29 2020 Automatic Build System 2.4.52-1mamba - automatic version update by autodist * Wed Aug 12 2020 Automatic Build System 2.4.51-1mamba - automatic version update by autodist * Wed Apr 29 2020 Automatic Build System 2.4.50-1mamba - automatic version update by autodist * Fri Jan 31 2020 Automatic Build System 2.4.49-1mamba - automatic version update by autodist * Fri Nov 22 2019 Silvan Calarco 2.4.48-2mamba - added debug package * Thu Aug 01 2019 Automatic Build System 2.4.48-1mamba - automatic version update by autodist * Thu May 02 2019 Automatic Build System 2.4.47-1mamba - automatic version update by autodist * Sat Jun 18 2016 Automatic Build System 2.4.44-1mamba - automatic version update by autodist * Sat Jan 02 2016 Silvan Calarco 2.4.43-3mamba - fix soname of liblmdb.so.0 * Fri Jan 01 2016 Silvan Calarco 2.4.43-2mamba - build and provide liblmdb * Tue Dec 01 2015 Automatic Build System 2.4.43-1mamba - automatic version update by autodist * Sun Aug 16 2015 Automatic Build System 2.4.42-1mamba - automatic version update by autodist * Wed Jul 01 2015 Automatic Build System 2.4.41-1mamba - automatic version update by autodist * Thu May 14 2015 Silvan Calarco 2.4.40-2mamba - rebuilt with libsasl 2.1.26 * Tue Sep 30 2014 Automatic Build System 2.4.40-1mamba - automatic version update by autodist * Tue Jan 28 2014 Automatic Build System 2.4.39-1mamba - automatic version update by autodist * Mon Nov 18 2013 Automatic Build System 2.4.38-1mamba - automatic version update by autodist * Mon Oct 28 2013 Automatic Build System 2.4.37-1mamba - automatic version update by autodist * Mon Aug 19 2013 Automatic Build System 2.4.36-1mamba - automatic version update by autodist * Sat Apr 27 2013 Silvan Calarco 2.4.35-3mamba - move pid to /run, remove timeout in service file, add tmpfiles.d file for /run/openldap * Fri Apr 12 2013 Silvan Calarco 2.4.35-2mamba - added systemd service file * Mon Apr 01 2013 Automatic Build System 2.4.35-1mamba - automatic version update by autodist * Thu Mar 07 2013 Automatic Build System 2.4.34-1mamba - automatic version update by autodist * Wed Oct 10 2012 Automatic Build System 2.4.33-1mamba - automatic version update by autodist * Wed Aug 01 2012 Automatic Build System 2.4.32-1mamba - automatic version update by autodist * Wed May 02 2012 Silvan Calarco 2.4.31-2mamba - rebuilt with libsasl 2.1.25 * Tue Apr 24 2012 Automatic Build System 2.4.31-1mamba - automatic version update by autodist * Mon Mar 12 2012 Automatic Build System 2.4.30-1mamba - automatic version update by autodist * Mon Jul 25 2011 Automatic Build System 2.4.26-1mamba - automatic version update by autodist * Sun Jun 19 2011 Automatic Build System 2.4.25-1mamba - automatic update by autodist * Wed Mar 09 2011 Silvan Calarco 2.4.24-1mamba - update to 2.4.24 - remove slurpd support in initscript - restore upstream slapd.conf * Mon Jul 19 2010 Automatic Build System 2.4.23-1mamba - automatic update to 2.4.23 by autodist * Tue Jun 29 2010 Automatic Build System 2.4.22-2mamba - automatic rebuild by autodist * Mon Jun 21 2010 Automatic Build System 2.4.22-1mamba - automatic update by autodist * Tue Feb 09 2010 Automatic Build System 2.4.21-1mamba - automatic update by autodist * Fri Nov 06 2009 Silvan Calarco 2.4.19-2mamba - rebuilt with evolution patch for ntlm support * Fri Oct 23 2009 Automatic Build System 2.4.19-1mamba - automatic update by autodist * Thu Oct 01 2009 Automatic Build System 2.4.18-1mamba - automatic update by autodist * Wed Jul 29 2009 Automatic Build System 2.4.17-1mamba - automatic update by autodist * Sun Apr 12 2009 Silvan Calarco 2.4.16-1mamba - automatic update to 2.4.16 by autodist * Mon Mar 02 2009 Silvan Calarco 2.4.15-1mamba - automatic update by autodist * Tue Dec 30 2008 Silvan Calarco 2.4.13-1mamba - automatic update by autodist * Sun Sep 07 2008 Silvan Calarco 2.4.11-1mamba - automatic update to 2.4.11 by autodist * Tue Jun 17 2008 Silvan Calarco 2.4.10-1mamba - update to 2.4.10 - libopenldap: removed strict requirement for libsasl with version * Fri Feb 15 2008 Silvan Calarco 2.4.7-2mamba - remove libopenldap dependency on initscripts * Mon Jan 21 2008 Silvan Calarco 2.4.7-1mamba - update to 2.4.7 - /etc/ldap.conf moved from server to library package * Wed May 24 2006 Davide Madrisan 2.2.30-2qilnx - fixed a stack-based buffer overflow discovered by Secunia (qibug#175) * Wed Dec 21 2005 Silvan Calarco 2.2.30-1qilnx - update to version 2.2.30 by autospec * Mon Nov 07 2005 Stefano Cotta Ramusino 2.2.29-1qilnx - update to version 2.2.29 by autospec * Fri Sep 16 2005 Davide Madrisan 2.2.27-3qilnx - patch for NTLM support * Thu Sep 15 2005 Davide Madrisan 2.2.27-2qilnx - rebuilt to fix: libldap_r.so: undefined reference to `pthread_kill' * Wed Jun 15 2005 Silvan Calarco 2.2.27-1qilnx - update to version 2.2.27 by autospec * Tue Jan 11 2005 Silvan Calarco 2.2.20-1qilnx - update to version 2.2.20 by autospec * Thu Dec 09 2004 Silvan Calarco 2.2.19-3qilnx - don't start service on install - use condrestart instead of restart on update * Mon Dec 06 2004 Silvan Calarco 2.2.19-2qilnx - test build for upgrade * Mon Dec 06 2004 Silvan Calarco 2.2.19-1qilnx - new version build * Thu Oct 28 2004 Silvan Calarco 2.2.18-2qilnx - added ldap update scripts for update from version 2.1 to 2.2 (=libdb4 to libdb42) * Thu Oct 28 2004 Silvan Calarco 2.2.18-1qilnx - new version build * Fri Jul 09 2004 Silvan Calarco 2.1.30-2qilnx - require user authentication to read passwords * Thu Apr 22 2004 Davide Madrisan 2.1.30-1qilnx - new version rebuild * Mon Apr 05 2004 Davide Madrisan 2.1.29-1qilnx - new version rebuild * Sat Mar 20 2004 Silvan Calarco 2.1.27-1qilnx - new version build - logrotate added * Wed Feb 11 2004 Silvan Calarco 2.1.26-2qilnx - added initscript code to execute db_recover before ldap server * Tue Feb 03 2004 Silvan Calarco 2.1.26-1qilnx - new version rebuild - added initscript code to remove bdb cache files on service startup * Wed Jan 21 2004 Silvan Calarco 2.1.25-1qilnx - new version rebuild * Mon Nov 24 2003 Silvan Calarco 2.1.23-3qilnx - changed default password scheme to SSHA (was cleartext) - removed initscript reload (not supported by slapd) * Fri Nov 21 2003 Davide Madrisan 2.1.23-2qilnx - added missing 'Requires'; specfile updates; added documentation and OpenLDAP license files * Thu Nov 13 2003 Silvan Calarco 2.1.23-1qilnx - new version rebuild - added compilation flags for features including sasl * Mon Sep 29 2003 Silvan Calarco 2.1.22-4qilnx - added configure and make C_INCLUDE_PATH to support db4 includes - removed ldap log dir waiting for a way that doesn't use syslog but its own directory * Mon Sep 15 2003 Silvan Calarco 2.1.22-3qilnx - added support for crypt password * Fri Jul 25 2003 Silvan Calarco 2.1.22-2qilnx - modified ldap.conf and initscript to correctly support TLS connections * Thu Jul 24 2003 Silvan Calarco 2.1.22-1qilnx - first build for 2.1.22 * Fri Jun 27 2003 Silvan Calarco 2.1.17-8qilnx - deactivated misc.schema from default configuration * Wed Jun 25 2003 Silvan Calarco 2.1.17-7qilnx - added "new-style" %%post and %%pre scripts * Wed Jun 11 2003 Silvan Calarco 2.1.17-6qilnx - fixed initscript chkconfig configuration * Fri Jun 06 2003 Silvan Calarco 2.1.17-5qilnx - added schema includes in slapd.conf - removed .orig config files * Tue May 27 2003 Silvan Calarco 2.1.17-4qilnx - added ldap user creation * Tue May 27 2003 Silvan Calarco 2.1.17-3qilnx - added configuration file patch to support pid dir and lib dir (logdir doesn't work yet!) * Tue May 06 2003 Silvan Calarco 2.1.17-2qilnx - added build requirements - fixed sysconfdir location * Tue Apr 22 2003 Luca Tinelli - first build